I got following log after running update php:

* warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home2/tobeshar/public_html/nil/update.php on line 309.

* user warning: Unknown column 'id' in 'taxonomy_enhancer_fields' query: ALTER TABLE taxonomy_enhancer_fields CHANGE id fid VARCHAR(255); in /home2/tobeshar/public_html/nil/includes/database.mysql.inc on line 172.

* user warning: Duplicate column name 'module' query: ALTER TABLE taxonomy_enhancer_fields ADD COLUMN module VARCHAR(255) NOT NULL DEFAULT "" AFTER title; in /home2/tobeshar/public_html/nil/includes/database.mysql.inc on line 172.

* user warning: Duplicate column name 'weight' query: ALTER TABLE taxonomy_enhancer_fields ADD COLUMN (weight INT(11) NOT NULL DEFAULT "0", settings TEXT); in /home2/tobeshar/public_html/nil/includes/database.mysql.inc on line 172.

* warning: Invalid argument supplied for foreach() in /home2/tobeshar/public_html/nil/update.php on line 542.

hope someone can help out...

Manfred

Comments

nicholasthompson’s picture

Status: Active » Postponed (maintainer needs more info)

What the........?

Those errors imply that the update phase of the module has run more than once - it looks like they modified the table and then tried to modify it again.

If you look at the you can see that the code for updating only appears in update_10...

Were you upgrading from a previous version or were you installing from fresh? Which version of Drupal you running? Have you lost any data (I hope not!!)

Those foreach errors kind of imply that nothing got returned from the update function - cant see how that would happen!

I'm sorry you had these problems... I did actually test the update script on two completely different sets of data and it worked fine for both!

dragongold’s picture

I did not loose any data, have other troubles too, with server going away query and so on...

Installation: Drupal 5.7

I updated from a previous version 5.x-1.x

can be that this has nothing to do with your code, am a newbie without much knowledge and it can be also that I made some mistakes, by trying to get rid of other problems...

Manfred

nicholasthompson’s picture

Well so far you're the only one that's had the problem - but then again, you could be the only one who has upgraded outside of my tests ;-)

At least no data has been lost.

I cant see any reason why Drupal would chose to run the same update function twice...

dragongold’s picture

I guess it came from, that my host changed the php version and the MySQL version, without announcing it...

the problems seem to be gone, all of it... :-)

thanks for you attention on my request...

Manfred

nicholasthompson’s picture

Status: Postponed (maintainer needs more info) » Fixed

No probs - strange error though!

PHP and MySQL shouldn't have effected it...

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.