D6 Fatal Error - warning: array_shift()

arcane - March 29, 2009 - 15:14
Project:Editview
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

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.

#1

dirksonii - April 23, 2009 - 21:31

Ditto.

#2

Justin W Freeman - May 4, 2009 - 07:21

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

Justin W Freeman - May 4, 2009 - 10:49

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

#4

Justin W Freeman - May 4, 2009 - 11:37

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

afly - May 24, 2009 - 14:27

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

jgoodwill01 - August 11, 2009 - 14:11

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

jgoodwill01 - August 11, 2009 - 14:22

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

 
 

Drupal is a registered trademark of Dries Buytaert.