Fatal error: Call to undefined function: phptemplate_get_ie_styles()
My database keeps saying it's out of date. When I try to update it I get the following error:
Fatal error: Call to undefined function: phptemplate_get_ie_styles() in /home/kilro2/public_html/aifunction/main/themes/garland/maintenance-page.tpl.php on line 23
I dont understand why It is pulling the garland theme I am using a different one so I am sure that may be a problem. I am also recieving the error below on my home page which may be related:
* user warning: Unknown column 'img_titles' in 'field list' query: SELECT img_css, img_valign, img_titles FROM img WHERE nid = 1 in /home/kilro2/public_html/aifunction/main/modules/img_filter/img.module on line 857.
* user warning: Unknown column 'img_titles' in 'field list' query: SELECT img_css, img_valign, img_titles FROM img WHERE nid = 3 in /home/kilro2/public_html/aifunction/main/modules/img_filter/img.module on line 857.
I deleted the img_filter module hoping this would help but no luck. Any help would be awesome! Thank You!

I get the same error for all
I get the same error for all of my images.
I am a newbie who started with Drupal 6.1.
I then tried the upgrade to v 6.2. Tried to do everything by the book as in disabling all extra modules etc.
The upgrade went fine.
Then drupal warned me that a couple of the modules were out of date (img_filter, lightbox2, taxonews, and tinymce). I downloaded the latest versions of these and untarred. Note that I am using a multiple site installation of drupal where each site uses some symlinks back to the various drupal folders (very confusing).
Anyway, now I get the 'Unknown column 'img_titles'' error, even when creating a new story with an attached image.
Can someone point both of us in the right direction?
I solved the image query
I solved the image query column problem by opening up the permissions on the image files folder again.
chmod -R 777 sites/files
Not sure if this had been reset back to default settings when the drupal 6.2 source was copied in.
Minelli may be missing
I noticed when I put Minelli back into the Garland folder then the error went away.
I also noticed I can't install Drupal without Minelli, which is a shame really.
Thanks for the "missing Minelli" help
I just had this same problem on a Drupal 6.5 site where I had removed Minelli from the Garland folder.
After putting Minelli back, the update was able to proceed.
Ditto on the Minelli
Worked for me as well, as I had removed Minelli. After putting it back, this problem disappeared.
how curious
worked again for me too after restoring Minnelli
thanks
Saved my life!
Thanks for the Missing Minelli Tip!
arvanadesign.com
patch suggestion for the phptemplate_get_ie_styles error
Fatal error: Call to undefined function: phptemplate_get_ie_styles() in /home/kilro2/public_html/aifunction/main/themes/garland/maintenance-page.tpl.php on line 23
I was able to fix this problem by adding:
require_once("template.php");
in the
<?php2 // $Id: maintenance-page.tpl.php,v 1.3 2008/01/24 09:42:53 goba Exp $
3
4 /**
5 * @file maintenance-page.tpl.php
6 *
7 * This is an override of the default maintenance page. Used for Garland and
8 * Minnelli, this file should not be moved or modified since the installation
9 * and update pages depend on this file.
10 *
11 * This mirrors closely page.tpl.php for Garland in order to share the same
12 * styles.
13 */
14 require_once("template.php");
15
?>
block at the head of the
themes/garland/maintenance-page.tpl.php
template.
same error, it seems to work
hi,
I had the same problem on a druapl 6 multi install and it seems to work by adding as you said:
require_once("template.php");
Thanks a lot, and thank you if you can explain this bug.
Need to move themes to main themes folder
It's a multi install a different theme for each site but
I also need to move the website theme from
sites/MYWEBSITE.com/themes/
to
main THEMES folder of the install
to be able to update, as it doesn't work with the theme in the website specific theme folder (drupal seems to be looking for the MAINTENANCE file in the main themes folder).
I've only just hit this
I've only just hit this problem on a 6 site which has been updating fine up until now.
I think there's a problem with sites with admin themes where Drupal is being confused into using the base theme directory rather than sites/all/themes as another poster said, but also with the two themes being called as I'm now getting a conflict between garland and clean
Fatal error: Cannot redeclare phptemplate_preprocess_page() (previously declared in D:\mysite\sites\all\themes\clean\template.php:38) in D:\mysite\themes\garland\template.php on line 62I think it might be connected with the core upgrade from 6.9 to 6.12?
DOne the same but found another problem
DOne the same code in maintainace.tpl.php but found another problem
Fatal error: require_once() [function.require]: Failed opening required 'template.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/test.org/htdocs/themes/garland/maintenance-page.tpl.php on line 14Any one have some suggestions?
Different but possibly related error fix
I managed to fix this error by utilizing the include from above. Next, I had a conflict with Marinelli, my theme, which told me that a phptemplate_breadcrumb was already declared in Marinelli's template.php.
I did a search and replace in Marinelli's template.php for "phptemplate" and inserted "marinelli". 2 instances, well and good.
I was able to limp through the update in the theme Marinelli (??!?), but when I re-ran the update, Garland's maintenance mode was back, and the update proceeded normally in Garland.
Wierd. But fixed!
I was having this issue, and
I was having this issue, and the problem went away after I added Minnelli back into the Garland folder. No idea why, but it worked for me.
great :)
yes minelli missing is problem, thanks for help
WOW. I was about to get a
WOW. I was about to get a heart attack. I couldnt login to example.com/user
it gave me the same error. I uploaded all CORE theme's and then it worked!
that was a close one!
KEEP ATTENTION TO OTHER TEMPLATES (barlow)
I had the same problem, but the message was:
<!--[if lt IE 7]>Fatal error: Call to undefined function phptemplate_get_ie_styles() in [...]/themes/garland/page.tpl.php on line 12
every time I went on the admin/build/block page.
The problem wasn't on the Garland template.php file BUT on the default template: the barlow's template.php file! Function phptemplate_get_ie_styles was missing from that file. Putting a copy of the phptemplate_get_ie_styles function, as it was in garland's template.php file, the problem disappeared.
Hope will help.
I started having this same
I started having this same problem all of the sudden. The above tips kept giving me errors that the function was being re-declared.
So what I tried and eventually worked was.
Enabled the garland theme. Made it the default. Ran updates. Then made my other theme the default again.
god, I wish there was this
god, I wish there was this level of tech support for most software! how long have you guys been working in this field?