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.
include(./sites/all/modules/chatroom/modules/system/page.tpl.php): failed to open stream: No such file or directory in /var/www/includes/theme.inc on line 1066.
include(): Failed opening './sites/all/modules/chatroom/modules/system/page.tpl.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/includes/theme.inc on line 1066.
As a result, I get a white screen of death.
When I copy modules/system/page.tpl.php to the theme directory or disable the chatroom module, everything works fine.
Comment | File | Size | Author |
---|---|---|---|
#5 | chatroom-theme_pageout.patch | 896 bytes | sjovanig |
Comments
Comment #1
morenstratI dont't know much about the Drupal theming engine, but it seems like the problem is how the popout template is added in chatroom.theme.inc on lines 14 and 15:
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedthanks for the report.
which theme are you using?
could you do a step-by-step to reproduce this from a fresh install?
Comment #3
morenstratI'm using a custom theme, which does not provide a page.tpl.php.
I only have a .info and a style.css file, which, according to the theming guide, should be okay because only the .info file is required.
So, in order to reproduce the problem, you just have to create a custom theme with a valid .info file and activate this theme.
Comment #4
joekrukoskyI recently ran into this issue under slightly different circumstances. I accidently deleted my default theme and ended up with the WSOD (totally blank). After looking at the watchdog table it indicated:
Even after deleting the chatroom folder from modules the error persisted. To solve this I had to reinstall the chatroom module and add the /chatroom/modules/system folder structure and copy the page.tpl.php file in from the drupal system folder. This was the only way to stop the WSOD. Then I was able to go to themes and enable a default theme.
Comment #5
sjovanig CreditAttribution: sjovanig commentedI created a patch that solves the problem.
I use 'hook_theme_registry_alter()' in order to insert chatroom path to 'page' template instead of re-defining 'page' theme.
Comment #6
Anonymous (not verified) CreditAttribution: Anonymous commented