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

kordewiner’s picture

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

Dries Arnolds’s picture

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

j0nathan’s picture

Hi,
Just to mention there is a forum topic related to this:
http://drupal.org/node/732154

j0nathan’s picture

Hi,
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.

krystianbuczak’s picture

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

Arquer’s picture

Title: Call to undefined functions in garland/maintenance-page.tpl.php » Call to undefined functions in amity island/page.tpl.php on line 26

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

Pomliane’s picture

Title: Call to undefined functions in amity island/page.tpl.php on line 26 » Call to undefined functions in garland/maintenance-page.tpl.php

Amity Island is NOT part of the core, please post Amity Island issues in its issue queue.

munyiva’s picture

Component: update system » ajax system

Thanks this sorted it out

rfay’s picture

Component: ajax system » database update system
Anonymous’s picture

Version: 6.16 » 6.20
Component: database update system » theme system
Anonymous’s picture

Same 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?

Status: Active » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.

ashok.gharpankar’s picture

Issue summary: View changes

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