By krisrobinson on
Anyone know what could be causing this error?
My custom theme works fine until used as an anonymous user in maintenance mode. Custom theme is the problem though.
I just don't know why it would be causing issues with template_preprocess_maintenance_page ... I'm not even using custom maintenance-page.tpl.php and my settings.php is setting $conf[maintenance_theme] = 'bartik'. If i set bartik as my default theme my maintenance page is displayed, if my custom theme is set, maintenance page is WSD, after switching back to bartik as default theme, this error is displayed:
Recoverable fatal error: Object of class stdClass could not be converted to string in template_preprocess_maintenance_page() (line 2708 of theme.inc).
Line 2708:
isset($variables[$region]) ? $variables[$region] .= $region_content : $variables[$region] = $region_content;
Comments
Still got this problem,
Still got this problem, anyone got any clues? It would be much appreciated. Thanks.
I might have a solution for
I might have a solution for you. When adding regions for my Omega subtheme, I named one of the regions "user". For some reason, when the region is named this way and system is looking for regions for the maintenance page, it extracts the current user entity from the database, not the user region. The user entity is an object though and therefore the error.
Simple fix - rename the region machine name to something else.
So the clue for you is to check the region names in your .info file.
I am using the Bootstrap
I am using the Bootstrap Theme and I named one of the regions 'User', renaming it resolved the error. Thanks.
Nailed it
Thanks for this answer. Just fixed my problem, too.
Having the same issue
I have omega-subtheme which should be used on the maintenance page as well. My Drupal-core version is 7.14.
Here is an issue for this
Here is an issue for this bug: http://drupal.org/node/1809136