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.
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.
Comments
Comment #1
mrfelton commentedHi. Exactly when you you see this message? What version of upload_elements do you have installed? Did you run update.php after updating?
Comment #2
alex72rm commentedThe 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.
Comment #3
mrfelton commented@Alex72RM: The file uploads are handled by the upload_element module. Please could you try updating to the latest -dev release for upload_element?
Comment #4
alex72rm commentedUhm,
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.
Comment #5
mrfelton commentedI'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.
Comment #6
alex72rm commentedI'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.
Comment #7
mrfelton commentedSince 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
Comment #8
mrfelton commentedOK, no need to bother with the debug statement... try this patch.
Comment #9
midnightclub commentedCan you tell how to use that patch
Comment #10
mrfelton commentedPlease see http://drupal.org/patch/apply
Comment #11
alex72rm commentedWow!
@#8 Works great!
Thanks a lot
Comment #12
mrfelton commentedGreat, That is fixed in CVS now and I'll roll another release shortly.