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 |
Jump to:
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
I am getting the same error.
#2
I am getting the same error = too
#3
same
#4
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
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