Version: $Id: image_fupload.module,v 1.23 2008/09/18 18:08:10 grandcat Exp $

warning: implode() [function.implode]: Invalid arguments passed in /home/mysite/public_html/sites/all/modules/image_fupload/image_fupload.module on line 172.

this is the error I am getting when uploading images. They upload fine and there are no apparent problems after that. The display of the error message above seems to be the only quirk.

-cota

Comments

davestormuk’s picture

Encountered this error, trying to work out what's causing it.

sabalaskey’s picture

Title: function.implode error » function.implode error on Image FUpload
Project: Image Upload » Image FUpload
Version: 6.x-1.1 » 6.x-2.0-rc1

I get the the following red text intermittently:

warning: implode() [function.implode]: Invalid arguments passed in /home/mysite/public_html/sites/all/modules/image_fupload/image_fupload.module on line 172.

But the images do upload and are then placed in my gallery as expected. I am on Drupal 6.6. I am also running the ImageMagick toolkit, so perhaps that makes a difference?

hugoview’s picture

I also got the same problem:
warning: implode() [function.implode]: Invalid arguments passed in /public_html/sites/all/modules/image_fupload/image_fupload.module on line 172.

Although it showed error, the images still added in my image gallery. However it didn't show the "next step" button.

There is a interesting situation that the problem occur when I use IE(6.0) to upload mass images.
If I use Firefox(3.0) to upload mass images, everything be all right.

knilob’s picture

This error popped up when I uploaded an image in Internet Explorer 7. The image uploaded fine, but I still don't like seeing any errors. I know there are swfUpload issues with IE7, so maybe that's the cause.

It's weird how it's referencing line 172 of the module though. Looking at that line, it seems to be a problem with sending the status message back to swfUpload.

grandcat’s picture

Category: support » bug
Priority: Normal » Minor

I will look for it next time, but I didn't notice this problem yet, because I'm using FF3 for testings.

grandcat’s picture

Status: Active » Fixed

Now fixed. Found that bug, but really strange why it didn't appear using firefox.
Will be fixed for rc2 and dev.

mzenner’s picture

grandcat can you tell what the bug was? thanks

grandcat’s picture

function.implode doesn't like to get NULL as an input. This was the case if everything went right. But using Firefox, this error message generated by php, didn't appear. Why, I don't know. But on IE, it did, that's all I know.

wendyschuppen’s picture

hello,
thanks very much for this module, works well only i also get this "implode" error in i.expl. 7.
I'm new to this but what does "rc2" mean?? Is there a version with this bug fixed available somewhere?
thanx,

grandcat’s picture

Yes, in version 6.x-2.1, it should be fixed.

Status: Fixed » Closed (fixed)

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

Garnerin’s picture

Version: 6.x-2.0-rc1 » 6.x-2.2
Priority: Minor » Normal
Status: Closed (fixed) » Active

Sorry. No. Obviously, it isn't fixed. I've tried with 6.x-2.2 and SWFUpload v2.2.0 Beta 5 Core. I still get that message printed in my event logs. And the message is not weighted as a warning but as an error.

implode() [<a href='function.implode'>function.implode</a>]: Bad arguments. in /var/www/vhosts/mysite.com/httpdocs/sites/all/modules/image_fupload/image_fupload.module in line 176.

Furthermore, only the first of all selected images is correctly uploaded and integrated as a node. Whenever the second image seems to have finished uploading, an error message appears telling me something about a validation check failed and I shall inform my website admin in case of the message continues displaying - and it does. So now, I'm informed by me... and I'm forwarding this information to you.

BTW, I'm running FF3. I'm going to check it with IE7 and report what I've found out.

Garnerin’s picture

Hum... No problems when running IE7.

grandcat’s picture

Status: Active » Postponed (maintainer needs more info)

Validation error is a miss setting, have a look at this issue to fix it:
http://drupal.org/node/353915#comment-1181907

The function implode errors could be a result of this setting. If not, please inform, and some additional screenshots and source code are needed.

Garnerin’s picture

Yes, indeed, that helped. Thanks a lot, now it seems to function both with IE and FF3 as well. I'll keep on testing for a few days; if I won't report any incident anymore within the next... say two weeks, then I got the solution. Thank you again.

grandcat’s picture

Status: Postponed (maintainer needs more info) » Fixed

It will help, you'll see. Enjoy this module ;)

Status: Fixed » Closed (fixed)

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

will_in_wi’s picture

Just a note, I got this error in the logs and tracked it down to the max upload size in php being smaller than the files. This actual error is due to the code passing NULL rather than the actual error message. On another note, there should probably be a check for the file being larger than the php upload size rather than just failing silently.