Hello,

Drupal 5.3, PHP 4.4

I am 2 months new to Drupal and have 'always' had this problem when running the upgrade script.

Updating

An unrecoverable error has occured. You can find the error message below. It is advised to copy it to the clipboard for reference. Please continue to the update summary

An HTTP error 404 occured. update.php?op=do_update

The update summary yields:

Drupal database update

warning: reset() [function.reset]: Passed variable is not an array or object in /home/foo/public_html/update.php on line 523.

The update process was aborted prematurely while running update # in .module. All other errors have been logged. You may need to check the watchdog database table manually.

Main page
Administration pages

The watchdog log shows:

Details

See the available updates page for more information.

Type php 
Date Thursday, December 6, 2007 - 19:52 
User bob 
Location http://bobssite.com/update.php?op=error 
Referrer http://bobssite.com/update.php?op=selection 
Message reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /home/bob/public_html/update.php on line 523. 
Severity error 
Hostname xx.xx.xx.xxx

A search for this error generates a universe of variations in both cause and solutions ;) I thought that may be I misunderstood the message as 'You idiot, there was no need to run this script in the first place' but as I need to update modules, and now drupal itself, I would like to figure this out.

I'll take all the help I can get! Is it .htaccess stuff as I'm on a shared host with safemode on; is it a file permissions issue so the webserver can't "see" a particular file (everything ftp'd from Dreamweaver as I do not have shell access); is it id10T user error?

Dead in the water. I can't be the only one for crying in a bucket...

Thanks.

Comments

drusnake’s picture

So after wiping the install to boil the ocean with a fresh start, I find that a .htaccess edit might have worked.

I got the same error as above on a cherry install so I couldn't point to a contributed module related issue...

This edit allows me to run the update.php script with no errors returned.

I pasted the following at the bottom of www.example.com/.htacess

<IfModule mod_security.c>
                <Files update.php>
                                SecFilterInheritance Off
                </Files>
</IfModule>

I got this from:

http://drupal.org/node/166036
http://www.swapdepths.nl/category/php/

Thank the Internet gods (would they be daemons?) for that.

Please say something if I've opened up a portal to hell by doing this.

bwrob’s picture

Thanks drusnake

I could NOT install 6.3

But using above .htaccess addition it works great.

bob

holeepassion’s picture

It is not working for me ???

Help

Thanks

tsbah’s picture

I face the same error, which, by the way, is so verbose…

Drupal 6.20