Hi,

As I updated to the latest 6.x version, when I upload an image banner, this warning arises:

warning: array_unshift() [function.array-unshift]: The first argument should be an array in <my_path>/includes/file.inc on line 545.
CommentFileSizeAuthor
#8 645874-rotor_file_size_limit.patch943 bytesmrfelton
#2 img.jpg115.61 KBalex72rm

Comments

mrfelton’s picture

Hi. Exactly when you you see this message? What version of upload_elements do you have installed? Did you run update.php after updating?

alex72rm’s picture

StatusFileSize
new115.61 KB

The message is shown as you can see in the attached jpg.

upload_element module version is the last one released (6.x-1.2). I ran update.php.

mrfelton’s picture

@Alex72RM: The file uploads are handled by the upload_element module. Please could you try updating to the latest -dev release for upload_element?

alex72rm’s picture

Uhm,

the latest -dev version for upload_element module is on Jun-24. Your latest official module version is on Nov-27.

Are you sure you haven't introduced some mods that affect upload_element behaviour? Prior version 6.x-2.2 didn't show this warning...

Indeed, the warning doesn't cause further problems: your module works well as expected.

mrfelton’s picture

I'm pretty sure that nothing changed in Rotor with regards to the uploads, and I can't reproduce the problem you are having. I am using the latest -dev of upload_element and I know a fair amount has changed in that since its last official release. If you could try with the latest upload_element code and if that doesn't fix it, we can at least rule that out of the equation.

alex72rm’s picture

I've installed upload element's latest -dev version.

The warning message arises anyway.

Details:

Path /upload_element_js/form-6f382f678bd1f232531f9e7974f26913/rotor_item_node_form/rotor_image
Referrer /node/add/rotor-item
Message array_unshift() [function.array-unshift]: The first argument should be an array in /includes/file.inc alla riga 545.

mrfelton’s picture

Since I can't replicate this, please could you insert a debug statement and show me the output please? Follow the instructions here:
http://www.lullabot.com/articles/quick_and_dirty_debugging

mrfelton’s picture

Status: Active » Needs review
StatusFileSize
new943 bytes

OK, no need to bother with the debug statement... try this patch.

midnightclub’s picture

Can you tell how to use that patch

mrfelton’s picture

alex72rm’s picture

Status: Needs review » Patch (to be ported)

Wow!

@#8 Works great!

Thanks a lot

mrfelton’s picture

Status: Patch (to be ported) » Fixed

Great, That is fixed in CVS now and I'll roll another release shortly.

Status: Fixed » Closed (fixed)

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