Closed (fixed)
Project:
File (Field) Paths
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Apr 2009 at 22:58 UTC
Updated:
3 Jul 2009 at 02:39 UTC
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 queriesHere 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
Comment #1
decipheredHi ragethread,
Just tested using the your data from above in my field and it correctly converted the data to:
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.
Comment #2
ragethread commentedApparently update.php fails when the module is disabled. Is it the module or the Upgrading Drupal modules guide fault?
Comment #3
decipheredOh, 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
Comment #4
ragethread commentedHello 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!
Comment #5
deciphered