Closed (fixed)
Project:
Editview
Version:
6.x-1.0-beta1
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
29 Mar 2009 at 15:14 UTC
Updated:
3 Sep 2010 at 23:00 UTC
In using the editview-6.x-1.x-dev I am getting this error when trying to save a CCK type with a node title, date, and 3 text areas.
warning: array_shift() [function.array-shift]: The argument should be an array in /var/www/my.site.com/public_html/sites/all/modules/editview/includes/editview.views.inc on line 76.
This causes the data not to be saved at all. I am also using date-6.x-2.0-rc6, views-6.x-2.x-dev, and cck-6.x-2.x-dev modules
The error appears often 1 out of 3 tries but randomly.
Comments
Comment #1
dirksonii commentedDitto.
Comment #2
agileware commentedJust a note that date fields in edit view are still not functioning as they should. See here - #417408: Saving Date, afterwards date doesn't display in interface
This seems to be an unrelated issue though so i'll look into it further.
Comment #3
agileware commentedMarked #443260: Doesn't actually SAVE anything. as a duplicate of this issue.
Comment #4
agileware commentedI have tried a lot to reproduce this but I haven't been able to.
I'm using Drupal 6.10, Views 6.x-2.5, Date 6.x-2.1 & cck 6.x-2.2
I have tried using a content type with title, a date field and 3 text area and have not got this error.
Can you give any more information, like:
Are any of the fields required?
Are there any other modules you are using that might have an impact on cck content types in any way?
Anything else you can think of?
Comment #5
afly commentedi get same problem with editview-6.x-1.0-beta1 , my content type are only two : one user name field and one text cck field.
when i firstly click submit button of one row, there is no error , even no message of "successful updated [the row]", too. and then , the row is disappear from rows grid.
when i secondly click submit button of other row, there is a error of "warning: array_shift() ...", but also with the message of "successful update [first row]" coming back.
the result are : the first row is saved but the second row is failed.
so , everything will be ok if i immediately refresh the page after submit , but this make no sense of editview module.
maybe a ajax error which can not reload the current grid page?
Comment #6
jgoodwill01 commentedHas there been any progress on this issue? I am having the same problem.
warning: array_shift() [function.array-shift]: The argument should be an array in D:\Websites\lexpublib.org\www\sites\all\modules\editview\includes\editview.views.inc on line 76.
No Required fields.
Not sure what modules might interact.
Comment #7
jgoodwill01 commented$form_id = array_shift($args);
I'm not sure exactly what this is but I can't seem to get around it causing this error.
Comment #8
p4trizio commentedSame error here.. it's been a long time, did anyone find a solution? Thanks
Comment #9
BetaTheta commentedsubscribing
Comment #10
arcane commentedI updated all of my other modules to the latest versions, and this error disappeared. Its been working beautifully for 3 months. Not sure which module was conflicting though.
Comment #11
p4trizio commentedI re-built the website with the same modules and configurations... now it works. I could not remake the error unfortunately
Comment #12
agileware commentedMarked as duplicates:
#604132: function.array-shift on line 76
#665058: warning: array_shift() on editview.views.inc on line 76.
Comment #13
keyo commentedI've upgraded everything afik and this still happens. Seems pretty important to get fixed, since it breaks the whole point of this module.
Right now I'm feeling like Bill O'Reilly when he can't read the teleprompter.
Comment #14
jadowd commentedI am experiencing this problem... has anyone figured it out yet?
Comment #15
russelljgarner commentedI am getting the same problem. I am trying to update cck fields that are part of user content profile.
please help!
Comment #16
dionis44 commentedon page admin/settings/performance set value "none" for "Minimum cache lifetime:" and this error disappeared in my case.
Comment #17
Frodo Looijaard commenteddionis44 pointed me in the right direction. This indeed has to do with caching.
If minimum cache lifetimes have been specified, on post of a form all cached forms except the posted one get invalidated. In that case we need to rebuild the form from scratch. The error you saw was because the loading of the cached form failed.
This has now been fixed in the DRUPAL-6--1 branch. It should now be possible to set a miimum cache lifetime and have the editview module work correctly.
Comment #18
Frodo Looijaard commented