Posted by arcane on March 29, 2009 at 3:14pm
Jump to:
| Project: | Editview |
| Version: | 6.x-1.0-beta1 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Frodo Looijaard |
| Status: | closed (fixed) |
Issue Summary
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
#1
Ditto.
#2
Just 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.
#3
Marked #443260: Doesn't actually SAVE anything. as a duplicate of this issue.
#4
I 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?
#5
i 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?
#6
Has 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.
#7
$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.
#8
Same error here.. it's been a long time, did anyone find a solution? Thanks
#9
subscribing
#10
I 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.
#11
I re-built the website with the same modules and configurations... now it works. I could not remake the error unfortunately
#12
Marked as duplicates:
#604132: function.array-shift on line 76
#665058: warning: array_shift() on editview.views.inc on line 76.
#13
I'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.
#14
I am experiencing this problem... has anyone figured it out yet?
#15
I am getting the same problem. I am trying to update cck fields that are part of user content profile.
please help!
#16
on page admin/settings/performance set value "none" for "Minimum cache lifetime:" and this error disappeared in my case.
#17
dionis44 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.
#18
#19
Automatically closed -- issue fixed for 2 weeks with no activity.