I'm trying to update from 6.2 to 6.9 and I have the error message others have also reported, "array_pop() [function.array-pop]: The argument should be an array ... /drupal/update.php on line 315".

While I've followed the update instructions as best I can, I'm left with the update telling me there are no updates available.

I've have chased through many other comments, from trying running update in IE instead of Firefox and changing mod_security, but to no avail. If the answer lies with changing Apache permissions, I haven't a clue how to set about it.

As I can't update until this is resolved I'd really appreciate the views of the forum's expert contributors.

Thanks in anticipation of someone coming to the rescue.

PS I'm a complete, and I mean complete, novice. My use of a PC has been limited to email and MS Office until a few days ago. So please forgive my ignorance if I'm missing something obvious and I'd appreciate an idiot-proof guide to implementing any fix. Thanks.

Comments

bramface’s picture

Looking over the various comments, I am shocked, SHOCKED that people are blaming Firefox.

I find that if I flush all my site caches and then re-do update.php it works fine.

Anybody else find that, with this error?

-Bram

--
Bram Moreinis
Greenfield Digital
http://greenfielddigital.com

kewlguy’s picture

@inspector71 Did you ever find a solution to this issue?

I also have been having this issue on Drupal 6.10 when running update.php I'm at a loss as to the cause though here is the actual error I receive.

* warning: reset() [function.reset]: Passed variable is not an array or object in /home/******/public_html/update.php on line 315.
* warning: array_pop() [function.array-pop]: The argument should be an array in /home/******/public_html/update.php on line 315.

mentor’s picture

I am getting the exact same errors, although mine refer to line 314 rather than 315. I am attempting to update my site after moving the database from another host. I am using shared hosting and have deleted all non-standard modules. The database appears to work correctly at the original site but when I export and import this error occurs.

I added lines to .htaccess, as suggested in http://drupal.org/node/84603, and flushed my cache as suggested in similar posts, but nothing works. I have searched for hours, hoping to post an answer here, only to echo kewlguy's question. Does anyone have a solution?

grsilverman’s picture

Also awaiting a solution. I've installed the various Mod_security lines, but it didn't work.

grsilverman’s picture

Also awaiting a solution. I've installed the various Mod_security lines, but it didn't work.

aneuryzma’s picture

did you find a solution ??

fitacamp12’s picture

Please I have the same error. I'm trying to restore several backups I have of my website. I import the DB, all the content, and when I update I have the same error:

warning: reset() [function.reset]: Passed variable is not an array or object in .../update.php on line 314.
warning: array_pop() [function.array-pop]: The argument should be an array in /mnt/.../update.php on line 314.

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

Then I can go to the main page, but when i try to go to any node of the menu I get this error:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

Thus I'm lost because I can not restore any backup! any idea? any help? Thank you in advance.

raulmuroc’s picture

So there is no solution for this error?

Drupal Association individual member