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.

CommentFileSizeAuthor
#5 chatroom-theme_pageout.patch896 bytessjovanig
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

morenstrat’s picture

I 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:

$page = $existing['page'];
$page['theme paths'][] = drupal_get_path('module', 'chatroom');
Anonymous’s picture

Assigned: Unassigned »

thanks for the report.

which theme are you using?

could you do a step-by-step to reproduce this from a fresh install?

morenstrat’s picture

I'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.

joekrukosky’s picture

Version: 6.x-2.9 » 6.x-2.12

I 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:

:4:{s:6:"%error";s:7:"warning";s:8:"%message";s:199:"include() [function.include]: Failed opening './sites/all/modules/chatroom/modules/system/page.tpl.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php')";s:5:"%file";s:53:"/home/cfwadmin/public_html/d6sites/includes/theme.inc";s:5:"%line";i:1066;}

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.

sjovanig’s picture

FileSize
896 bytes

I 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.

Anonymous’s picture

Assigned: » Unassigned