Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #2
TrevorBradley CreditAttribution: TrevorBradley commentedSetting the bootstrap parent theme to default, then switching back to my own subtheme seems to have made the error go away.
Comment #3
markhalliwellThis 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?Comment #4
TrevorBradley CreditAttribution: TrevorBradley commentedIt'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.
Comment #5
Tritof CreditAttribution: Tritof commentedWow, 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.