While running update.php I get the following errors:

* warning: implode() [function.implode]: Invalid arguments passed in /home/user/public_html/modules/filefield_paths/filefield_paths.install on line 152.

* warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/user/public_html/modules/filefield_paths/filefield_paths.install on line 153.

* user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE type = '' AND field = ''' at line 1 query: UPDATE filefield_paths SET WHERE type = '' AND field = '' in /home/user/public_html/modules/filefield_paths/filefield_paths.install on line 154.

The following queries were executed

filefield_paths module
Update #6101
No queries
Update #6102
No queries

Here is are the filefield_paths option cells:

filename: a:4:{s:5:"value";s:65:"[nid]-[term]-[title]-[filefield_paths-name].[filefield_paths-ext]";s:7:"tolower";i:1;s:8:"pathauto";i:1;s:13:"transliterate";i:0;}
filepath: a:4:{s:5:"value";s:14:"img/[yyyy]/[m]";s:7:"tolower";i:1;s:8:"pathauto";i:1;s:13:"transliterate";i:0;}

Any ideas?

Comments

deciphered’s picture

Hi ragethread,

Just tested using the your data from above in my field and it correctly converted the data to:

a:4:{s:5:"value";s:63:"[nid]-[term]-[title]-[filefield-onlyname].[filefield-extension]";s:7:"tolower";s:1:"1";s:8:"pathauto";s:1:"1";s:13:"transliterate";s:1:"0";}
a:4:{s:5:"value";s:14:"img/[yyyy]/[m]";s:7:"tolower";s:1:"1";s:8:"pathauto";s:1:"1";s:13:"transliterate";s:1:"0";}

Can you try running the FileField Paths 6102 update again?
Let me know how that goes.

Also, can you tell me some informaiton about your server environment?
Is it LAMP, MAMP, XAMPP, IIS, etc?
What version of PHP are you running?
What database are you using? MySQL, PostreSQL, etc.

Cheers,
Deciphered.

ragethread’s picture

Status: Active » Closed (fixed)

Apparently update.php fails when the module is disabled. Is it the module or the Upgrading Drupal modules guide fault?

deciphered’s picture

Status: Closed (fixed) » Active

Oh, I didn't even consider that. Yes, it would fail, and yes it is the modules fault.

Not enough of an issue to push out 6.x-1.2, but I will push a fix out for 6.x-1.x-dev ASAP.

Edit: I just had a look at the documentation, one thing I noticed is that it doesn't specify to re-enable the module. I would guess it would be expected that the Re-install module section, so the documentation could be at fault.

Also, personally I have never disabled a module while upgrading it.

Edit 2: Apparently someone else has noticed that issue with the documentation: http://drupal.org/node/250790#comment-1099065

ragethread’s picture

Hello Deciphered,

I have compared your correctly converted data with mine after the successful update and they match.

Thank you for the quick replies. Have a great day!

deciphered’s picture

Status: Active » Closed (fixed)