warning: uasort() [function.uasort]: The argument should be an array

maximago - June 25, 2007 - 08:06
Project:CCK Wizard
Version:5.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

After installing the module on Drupal 5.1, I get the following Error on every form-page:

warning: uasort() [function.uasort]: The argument should be an array in /homepages/26/d156207393/htdocs/demo/4seasons/modules/wizard/Wizard_Form.class.php on line 66.

Any ideas?

#1

orionvortex - June 26, 2007 - 16:03

I am getting the same error.

#2

VlooiVlerke - July 7, 2007 - 12:59

I am getting the same error = too

#3

Oreps - July 17, 2007 - 15:47

same

#4

Nicholas Llewellyn - January 25, 2008 - 12:37

I get the same issue, fresh download.

It appears to be something to do with the "uasort($this->fapi_form, '_element_sort');" line (66) in Wizard_Form.class.php which I have taken a snippet from (below):

Wizard_Form.class.php

64.// Sort FAPI form elements by weight first.
65.    if (!isset($this->fapi_form['#sorted'])) {
66.      uasort($this->fapi_form, '_element_sort');
67.      $this->fapi_form['#sorted'] = TRUE;
68.    }

I'm no programmer but I live in hope that someone out there is.

#5

podarok - February 28, 2008 - 14:26
Category:bug report» support request
Status:active» needs review

drupal 5.7
same problem

64.// Sort FAPI form elements by weight first.
65.    if (!isset($this->fapi_form['#sorted'])) {
//66.      uasort($this->fapi_form, '_element_sort');
67.      $this->fapi_form['#sorted'] = TRUE;
68.    }

Temporary fix may be help You

 
 

Drupal is a registered trademark of Dries Buytaert.