This forum is for questions about upgrading an existing Drupal site. Don't forget to read the UPGRADE.txt file that comes with every Drupal download.

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:

Create an alias instead of user username in Drupal 6

In profiles I have four fields:

  • profile_first_name
  • profile_last_name
  • profile_nickname
  • profile_show_nickname (this is a checkbox)

To change the default output of $user in Drupal 5 I use this template.php:

<?php
 /**
 * This snippet catches the default user name and looks
 * for a username.tpl.php file in the same folder
 * which has the new layout.
 */

function phptemplate_username($object) {
  if ($object->in_preview) {
      return theme_username($object);
  }
  return _phptemplate_callback('username', array('object' => $object));
}
?>

And in username.tpl.php I have:

<?php
if ($object->uid && $object->name) {
// If the user has a nickname defined and want to use that
$user = user_load(array(uid => $object->uid));
if ($user->profile_show_nickname && !empty($user->profile_nickname)) {
$object->name = $user->profile_nickname;
}
else {
// If the user has a full name defined, use that
if (!empty($user->profile_first_name)) {
$object->name = ($user->profile_first_name . " " . $user->profile_last_name);
}
}
// Shorten the name when it is too long or it will break many tables.
if (drupal_strlen($object->name) > 20) {
$name = drupal_substr($object->name, 0, 15) .'...';
}
else {
$name = $object->name;
}

Some Multilanguage Links broken after moving server

Hi There,

i moved my installation to a new server. Now I have some troubles with a number of links.
I have multiple languages installed. On my old server I could call an url by

http://www.mysite.eu/node/5 and it would end up on the correct site.
now I get a ' The requested URL /node/5 was not found on this server.' error.
It only works when i use.

http://www.mysite.eu/?q=en/node/5

Error updating - backup files corrupt...

Hello,

I have been searching through the forums now for about 2 hours and have not been able to find any answers to the problem I am having...so here my questions begin.

This morning I tried to upgrade from 5.7 to 6.1 via Fantastico (not a good way to upgrade as I found out today.) Previous to upgrading, I made a backup file of my site....logged into the admin, and took my site "offline" through the maintenance module, logged out and proceeded to upgrade. I should also mention I had installed a theme which was not the "default" Blue Marine theme which originally came with drupal when I downloaded it initially.

After the upgrade was complete, I refreshed and tried to login to the site via the user page - but I got a TON of error messages. I see that the upgrade removed the theme I was using and replaced it with the normal default themes. I already anticipated this, which is why I made a backup. I assume I can't log in - or view the site at all because it's looking for the wrong theme?

Error updating - backup files corrupt...

Hello,

I have been searching through the forums now for about 2 hours and have not been able to find any answers to the problem I am having...so here my questions begin.

This morning I tried to upgrade from 5.7 to 6.1 via Fantastico (not a good way to upgrade as I found out today.) Previous to upgrading, I made a backup file of my site....logged into the admin, and took my site "offline" through the maintenance module, logged out and proceeded to upgrade. I should also mention I had installed a theme which was not the "default" Blue Marine theme which originally came with drupal when I downloaded it initially.

After the upgrade was complete, I refreshed and tried to login to the site via the user page - but I got a TON of error messages. I see that the upgrade removed the theme I was using and replaced it with the normal default themes. I already anticipated this, which is why I made a backup. I assume I can't log in - or view the site at all because it's looking for the wrong theme?

Drupal upgrade 4.7 > 5 - Custom theme isn't working properly

I have just upgraded a drupal 4.7 site to 5 following all steps however when I turned my theme back on it didn't seem to work and now my site looks as though it has no css working for it at all. The other default themes work fine...

I'm baffled so any help would be great!

Pages

Subscribe with RSS Subscribe to RSS - Upgrading Drupal