Hi Mark, just wanted to let you know that I am receiving these warnings when I edit records with editablefields. Even though it throws the big nasty warnings, it does seem to update the records to the correct values. It gives one warning for each record that is updated. That is why I have three warnings below.
* warning: array_shift() [function.array-shift]: The argument should be an array in C:\WEBSITES\drupal\includes\form.inc on line 852.
* warning: array_shift() [function.array-shift]: The argument should be an array in C:\WEBSITES\drupal\includes\form.inc on line 852.
* warning: array_shift() [function.array-shift]: The argument should be an array in C:\WEBSITES\drupal\includes\form.inc on line 852.
Any idea on what is happening?
Let me know if you need more information.
Thanks again,
Glenn
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | editablefields.module.txt | 13.33 KB | gmclelland |
Comments
Comment #1
markfoodyburton commentedCould you generate a backtrace.... or let me know the thing which causes this to happen....
Cheers
Mark.
Comment #2
gmclelland commentedMark, I'm not sure what causes this to happen. I only notice it when I edit fields that are "editable." I'm sorry but I don't know what a backtrace is.
This post sort of explains my setup.
I would be more than happy to provide you with the information you, but you may need to tell me exactly what to do.
Thanks,
Glenn
Comment #3
markfoodyburton commentedMmm, my explanation of how to get a backtrack working for you would probably not be right, so I suggest a google for that. Personally I was able to install xdebug, and that seems to be working for me.
Is it possible you can give me access to your site? Maybe send me a private message :-)
Comment #4
derhasi commentedI've the same problem.
It seems to be some problem with the form-fields' parents.
Line 844 to 864 in form.inc
But i can't see the exact problem.
Comment #5
derhasi commentedprint_r() is not a part of the code, juste used it for research ;)
Comment #6
markfoodyburton commentedI can't replicate the problem at all.
Could you get a back-trace - and/or give me the minimum set up which causes it?
Cheers
Mark.
Comment #7
derhasi commentedI thought i found the reason:
when activating Auto-Nodetitles for the content-type, the error occurs. $value=NewNodeTitle and $parents='' is sent to _form_set_value .
At the moment I didn't find why.
Does this help you?
Comment #8
gmclelland commentedYes, my site uses automatic node titles as well and I am the one having the problems above.
Mark,
When you replicated my site, did you include the automatic node titles module?
I will double check this by turning off automatic node titles and see if the problem goes away.
-Glenn
Comment #9
gmclelland commentedOk, I turned off automatic node titles and that made the all the warnings go away.
-Glenn
Comment #10
derhasi commentedI patched my editablefields.module with this:
line 103 (function: _handle_editablefield_form_input )
Now it does not cause the error anymore. The field's value changes, but the value of the nodetitle does not (the field is part of the autmoatic nodetitle).
So there has to be some code, that saves the new title. Can that be done?
Comment #11
derhasi commentedI extended the code a little with integrating the auto_nodetitle-function, to actualize the Nodetitle.
This could also be some solution for http://drupal.org/node/173902
Comment #12
markfoodyburton commentedThanks so much for this hard work !
Looks like you've got a solution.
If Glenn verifies that it works for him, then I'll commit the patch and release a new version
THANKS!
Cheers
Mark.
Comment #13
gmclelland commentedIt does eliminate all the warnings, but the node doesn't receive an automaticnodetitle when you ADD a node through the "editablefields add new node" form.
A node DOES receive an automaticnodetitle when you edit a record through the editablefields form.
In addition to the code, I had to remove a closing "}" bracket on line 124.
I attached the updated the editablefields module I used, so you can make sure I'm made the correct changes.
Looks like it just needs a bit more code to accommodate the "add a new node" form to make it compatible with automaticnodetitles. :(
Almost there.
-Glenn
Comment #14
acidpotato commentedClosing legacy issue.