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

dirksonii’s picture

Ditto.

agileware’s picture

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.

agileware’s picture

Marked #443260: Doesn't actually SAVE anything. as a duplicate of this issue.

agileware’s picture

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?

afly’s picture

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?

jgoodwill01’s picture

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.

jgoodwill01’s picture

$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.

p4trizio’s picture

Same error here.. it's been a long time, did anyone find a solution? Thanks

BetaTheta’s picture

subscribing

arcane’s picture

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.

p4trizio’s picture

I re-built the website with the same modules and configurations... now it works. I could not remake the error unfortunately

keyo’s picture

Priority: Normal » Critical

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.

jadowd’s picture

I am experiencing this problem... has anyone figured it out yet?

russelljgarner’s picture

I am getting the same problem. I am trying to update cck fields that are part of user content profile.
please help!

dionis44’s picture

Version: 6.x-1.x-dev » 6.x-1.0-beta1

on page admin/settings/performance set value "none" for "Minimum cache lifetime:" and this error disappeared in my case.

Frodo Looijaard’s picture

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.

Frodo Looijaard’s picture

Assigned: Unassigned » Frodo Looijaard
Status: Active » Fixed

Status: Fixed » Closed (fixed)

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