So I thought I got my upgrade done (2.x to 3.x) and plupload integrated, but not so much ;)

On upload save (without plupload on, as it gives me no error messages) I get: Fatal error: Call to undefined function _pathauto_include() in /var/www/sites/all/modules/filefield_paths/filefield_paths.module on line 737

I solved this by upgrading to the latest dev version of filefield_paths module instead of using the 1.4 stable. Should perhaps mention that in the readme's or whatnot.

Now I get warning errors on uploads, but everything works fine(ish?)

Warning: urldecode() expects parameter 1 to be string, array given in path_set_alias() (line 90 of /var/www/modules/path/path.module).

One error per file uploaded. Saw a few similar errors in my searches here, but not this specific one, so thought I'd post it here. I tried removing my filefield alias for gallery_images, but that didn't help.

Anyways very cool that I (king noob) got this working tonight! Just ignore all the red and plow through. Now I don't have to click 50+ times to add a gallery.. novel really ;)

---------

Also, side issue: If I click "save" on the empty manage images page, I get: Warning: Invalid argument supplied for foreach() in node_gallery_manage_images_submit() (line 244 of /var/www/sites/all/modules/node_gallery/node_gallery.pages.inc).

Maybe that could fail more gracefully if someone deems it important.

Comments

parasox’s picture

Perhaps this post might shed light for someone who knows what it means. (PS: I don't have a plus sign in my URL's in this instance.)

http://drupal.org/node/57075#comment-1853176

justintime’s picture

Title: urldecode() errors » Invalid argument supplied for foreach() when saving no changes on Manage Images tab

So, the first problem actually has nothing to do with NG, it's a problem where pathauto changed some internal functions that filefield_paths was incorrectly assuming would stick around: http://drupal.org/node/877578. The fix is, as you found, to upgrade filefield_paths to the latest dev.

Re: the urldecode() issue, that's an old nagging bug that I haven't been able to reproduce and I hoped it just went away in NG3. Guess that's not the case. This bug is now #1 on my hit list. I'll resolve it over at #806554: urldecode warning: urldecode() expects parameter 1 to be string when uploading an image once it's squashed.

Re: Invalid argument supplied for foreach() - just committed the fix to dev.

justintime’s picture

Category: support » bug
Status: Active » Fixed

Marking as a bug, and fixed.

parasox’s picture

Holy, can I get fries with that?? ;)

Hey if you want access to my install just let me know, if it saves you some time instead of trying to reproduce, I'd be happy to oblige. Just uhh, don't mind all the naked people!

justintime’s picture

Actually, that would help tremendously. I have a dev install that I can break, I just need to see your setup so I can replicate it. If you could send me how to access it via my contact form, I'd appreciate it. I promise to not show my wife any pix :)

Also, goes without saying, I won't change any settings, only look at what you've got setup to setup on my own install.

Status: Fixed » Closed (fixed)

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