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.

table not fount

Hi there.

Upgrading to 5.6 logged me out midway through and killed the site!

I just tried to update a client's site from Drupal 5.5 to 5.6, and wasn't really expecting any problems as I've done plenty of Drupal upgrades before, usually without incident. But this time things got really wonky.

Not able to edit user/1 (my account)

Since upgrading to 5.5 I've not been able to update my account (user/1). When I click on my account, I get the following error message:
warning: Invalid argument supplied for foreach() in /www/drupal/modules/user/user.module on line 1526.

If I click on the "edit" link at the top of the page, I get a page not found error.

the code from user.module surrounding this line is (line 1526 is highlighted):
function user_view($uid = 0) {
global $user;

$account = user_load(array('uid' => $uid));
if ($account === FALSE || ($account->access == 0 && !user_access('administer users'))) {
return drupal_not_found();
}
// Retrieve and merge all profile fields:
$fields = array();
foreach (module_list() as $module) {
if ($data = module_invoke($module, 'user', 'view', '', $account)) {
foreach ($data as $category => $items) { <<<<<<<<<<----- LINE 1526
foreach ($items as $key => $item) {
$item['class'] = "$module-". $item['class'];
$fields[$category][$key] = $item;
}
}
}
}

// Let modules change the returned fields - useful for personal privacy
// controls. Since modules communicate changes by reference, we cannot use
// module_invoke_all().
foreach (module_implements('profile_alter') as $module) {

Mailing lists stop working after PHP upgrade

Another problem seems to have arisen after our ISP upgraded PHP to version 5.2.5.

None of our mailman lists seem to be working.

Any ideas?

Admin options require continual log in - can not edit any pages

The ISP host recently updated to PHP version 5.2.5

My initial problem http://drupal.org/node/210286 was that the page wasn't being displayed at all. I solved that using a fix discussed in 55593 and not the page appears as normal.

On the way to fixing this I discovered how to determine what version we are using so I now know it is 4.6.5.

The new problem is that I can no longer do any admin.

PHP: How to turn off Register_Globals?

I posted this in Post Install ( http://drupal.org/node/209950 ), but no one replied, so I'll try here since it has to do with upgrading to 5.6
~

How exactly do I turn off Register_Globals?

Do I just put the PHP.ini in my domain's public_html with it set to 'off'?

That's a local "turn off" isn't it? Where do I get the php.ini to begin with in order to change Register_Globals to "off"?

Can I do a global 'turn off"? Does a global "turn off" affect the whole server, or just my reseller sub-accounts?

Pages

Subscribe with RSS Subscribe to RSS - Upgrading Drupal