Hello,
When I attempted to run update.php to achieve 6.16 update, I got this:
Fatal error: Call to undefined function phptemplate_get_ie_styles() in /example.com/themes/garland/maintenance-page.tpl.php on line 23
Once this function got - temporarily - removed another error appeared:
Fatal error: Call to undefined function phptemplate_body_class() in /example.com/themes/garland/maintenance-page.tpl.php on line 24
All things went finally fine after this one was removed too.
Once the update process complete and the maintenance-page.tpl.php file restored in its initial state, the errors don' t occur anymore.
Thanks for your attention.
Pomliane
Comments
Comment #1
kordewiner CreditAttribution: kordewiner commentedI got
Fatal error: Call to undefined function phptemplate_body_class() in xxx/themes/garland/maintenance-page.tpl.php on line 26
with update.php on two of my _German_ language sites (themes: Contented7 and Multiflex-3). I changed the default language at /admin/settings/language to English and the fatal error didn't occurre. My other German (and English) language sites (multisite-installation) made no problems.
The problem is mentioned on http://www.drupalcenter.de/node/25739 (German language) too.
Comment #2
Dries ArnoldsSame error here. Some people attributed this to the absence of the Minelli theme, but Minelli is present in my installation.
Update.php also doesn't run regardless of the error as some people suggested.
I can confirm that changing the language back to English and running the update then, fixes the problem. Afterwards you can just change back.
Comment #3
j0nathan CreditAttribution: j0nathan commentedHi,
Just to mention there is a forum topic related to this:
http://drupal.org/node/732154
Comment #4
j0nathan CreditAttribution: j0nathan commentedHi,
Same issue.
I changed the default language from French to English to be able to update from Drupal 6.15 to Drupal 6.16 and then I changed the default language back to French.
Comment #5
krystianbuczak CreditAttribution: krystianbuczak commentedThere is no need to declare body_class function in a template files. PHPtemplate 6x offers a new way - there is a variable $body_classes which can be printed in body tag (see http://drupal.org/node/171906)
Edit maintenance-page.tpl.php in Garland theme folder in order to change the way body classes are displayed. Simply change line 26
<body<?php print phptemplate_body_class($left, $right); ?>>
to<body class="<?php print $body_classes; ?>">
... and update your Drupal.
Comment #6
Arquer CreditAttribution: Arquer commentedThanks I get the same Error
"Fatal error themes/amity island/page.tpl.php on line 26"
i was deleting few themes on themes folder. When occurs; But Changing the line 26 to
<body class="<?php print $body_classes; ?>">
Solve it...Thanks delizyd
And Update the theme.
Comment #7
Pomliane CreditAttribution: Pomliane commentedAmity Island is NOT part of the core, please post Amity Island issues in its issue queue.
Comment #8
munyivaThanks this sorted it out
Comment #9
rfayComment #10
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #11
Anonymous (not verified) CreditAttribution: Anonymous commentedSame issue for me, but if I delete the function in the garland maintenance-theme, the theme i see is my custom maintenace-theme.
Why the garland is included if it is not in use?
Comment #13
ashok.gharpankar CreditAttribution: ashok.gharpankar as a volunteer commentedI had encountered the same issue, Solution was
In maintenance-page.tpl.php in theme folder, on line 26 change the code from print phptemplate_body_class($left, $right); > to print $body_classes; ">
That's it! Cheers!