After upgrading to 6.7 or 6.8, update.php gives:

Fatal error: Call to undefined function phptemplate_get_ie_styles() in /**************/themes/garland/maintenance-page.tpl.php on line 23

Front page is without theme.
admin page:

# warning: array_map() [function.array-map]: Argument #2 should be an array in /***************/modules/system/system.module on line 975.
# warning: array_keys() [function.array-keys]: The first argument should be an array in /*************/includes/theme.inc on line 1760.
# warning: Invalid argument supplied for foreach() in /*******************/includes/theme.inc on line 1760.

I tried to change theme, after:

* warning: include_once(./) [function.include-once]: failed to open stream: Success in /**************/includes/theme.inc on line 155.
* warning: include_once() [function.include]: Failed opening './' for inclusion (include_path='.:') in /***************/httpdocs/includes/theme.inc on line 155.

but update.php is always:

Fatal error: Call to undefined function phptemplate_get_ie_styles() in /var/www/vhosts/pdmelzo.it/httpdocs/themes/garland/maintenance-page.tpl.php on line 23

What is the problem?

Comments

gpk’s picture

Did you select a core theme e.g. Garland as the site default (and the default for user 1's account, if appropriate) before performing the upgrade?

TyraelTLK’s picture

Yes.

gpk’s picture

Is Garland's template.php file http://api.drupal.org/api/file/themes/garland/template.php/6/source present and can it be read by the webserver's PHP process (i.e. what are the permissions on it)?

mrgoltra’s picture

I was wondering if you copied the update files over to your folder without deleting the previous version or did you delete the previous version before copying the update over?

TyraelTLK’s picture

Status: Active » Closed (fixed)

redLED on IRC helped me.
Probably some change in my ftp client (I updated filezilla) or server (new plesk version).

cgdigitaltreats’s picture

I like fireftp in the firefox add on module.

Antonio

danko’s picture

Version: 6.8 » 6.9
Component: base system » install system

I've had the same problem after transferring a local site to a hosting server. You should check:
1) Is a database transferred successfully. Check the system table - it should contain data. I had an issue of php timeout while importing a sql file with phpmyadmin - it said that in the case of timeout you should resubmit your sql file; I did that and it worked.
2) Does a theme set in the database as a current theme actually exist on the server (sites/all/themes/)

BruisedGhost’s picture

Had the same problem, it seemed to be due to the engines dir not inside of my themes folder, once I added the engins directory and its contents and reran cron manually the error went away