Getting this error after an upgrade to the latest bootstrap. My site uses a Bootstrap subtheme.

Warning: include_once(***/public_html/sites/all/themes/bootstrap/templates/menu/menu-local-task.func.php): failed to open stream: No such file or directory in include_once() (line 1065 of ***/public_html/includes/theme.inc).

(***'s mine)

If I go to /sites/all/themes/bootstrap/templates/menu/. I see a menu-local-tasks.func.php file, but not a menu-local-task.func.php file.

"drush cc all" doesn't seem to make the problem go away.

Any ideas on how to fix this one?

Comments

TrevorBradley created an issue. See original summary.

TrevorBradley’s picture

Setting the bootstrap parent theme to default, then switching back to my own subtheme seems to have made the error go away.

markhalliwell’s picture

Category: Bug report » Support request
Status: Active » Closed (works as designed)

This is just a theme registry caching issue. The file was removed and the theme registry just needs to be rebuilt so it detects that this file is no longer there. It's weird that drush cc all didn't fix it though... memcache?

TrevorBradley’s picture

It's a vanilla Apache server on Ubuntu 16.04.

Just a note that drush cc all is *also* required - just swapping themes back and forth isn't sufficient.

Hmm...

I've got another site on the same server also with a bootstrap subtheme experiencing the same problem.

That's very interesting. "drush cc all" once appeared to cause the problem again, spewing even more errors. Running "drush cc all" a second time seems to have cleared it up completely. I didn't need to swap the theme.

It's possible that the first "drush cc all" triggers the error during the cache clear spewing out more errors, and I wasn't thoroughly testing enough.

Tritof’s picture

Wow, thank you for pointing the option to disable the theme ! After some time spent on that issue, I completely disabled bootstrap and my subtheme, cleared the cache, update bootstrap, and reactivated the subtheme. And finally I could do that update.