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.
Putting site into maintenance mode generates:
Catchable fatal error: Object of class stdClass could not be converted to string in /home/site/public_html/includes/theme.inc on line 2710
Custom theme generated by Omega Tools 7.x-3.0-rc4. The theme works fine for any other page.
Looking for ways to debug this. It doesn't seem to be a common issue on drupal.org.
Comments
Comment #1
tauno CreditAttribution: tauno commentedDo you have a region with the id of user? If so that might be causing the error on the maintenance page since the maintenance page adds the user object to the variables array while line 2710 expects $variables['user'] to be a string.
Comment #2
espurnesI had the same problem in Omega 7.x-4.3 and it was solved by renaming a custom region called "user" to "user_region".
Thank you tauno.
Comment #3
espurnes