Hi,

I noticed that the hierarchical taxonomy module have lots of problems with form modified via ajax. For example with imagefield, nodereference etc...

When I choose first a category, it works pretty good, but, if I upload an image first, and then choose a hierarchical select. (I have terms with children and I force users to choose in the deepest term).

Result : The hierarchical select crash to list children of a term when I choose it in the list.

After the crash, if I do a page refresh, this is what I get



    * warning: Missing argument 2 for drupal_retrieve_form() in /drupal/includes/form.inc on line 320.
    * warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given in /drupal/includes/form.inc on line 366.
    * warning: uasort() [function.uasort]: The argument should be an array in /drupal/includes/common.inc on line 2731.


Comments

wim leers’s picture

Assigned: Unassigned » wim leers

When I choose first a category, it works pretty good,

"Pretty good"? Either it works or it doesn't. I'm assuming it's the former.

but, if I upload an image first, and then choose a hierarchical select. (I have terms with children and I force users to choose in the deepest term).

Result : The hierarchical select crash to list children of a term when I choose it in the list.

Interesting. Must be a bug indeed.

zmove’s picture

"When I choose first a category, it works pretty good,"

It works but it's very slow (maybe 2-3 sec to show the children) but I'm in dev, I have administration menu, localization which eat ressources, no cache... so maybe it's normal.

wim leers’s picture

If it's very slow, then it's definitely your server or Drupal modules that are to blame. It should load in about half a second.

That doesn't rule out the bug you're experiencing though. It's a form cache problem.

uprojects’s picture

No there are a real problem. I get the same error when user create new items:

 warning: Missing argument 2 for drupal_retrieve_form() in /drupal/includes/form.inc on line 320.
    * warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given in /drupal/includes/form.inc on line 366.
    * warning: uasort() [function.uasort]: The argument should be an array in /drupal/includes/common.inc on line 2731.
wim leers’s picture

Status: Active » Postponed (maintainer needs more info)

Drupal.behaviors is now implemented: http://drupal.org/node/354445#comment-1250346. Does your problem still exist?

wim leers’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Closing while cleaning up the issue queue. Feel free to reopen.

czeky’s picture

Hi, having exactly the same + maybe in conection with "Received an invalid response from the server." issue, because this:

* warning: Missing argument 2 for drupal_retrieve_form() in /data/bigreality.cz/www_data/www/includes/form.inc on line 320.
* warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given in /data/bigreality.cz/www_data/www/includes/form.inc on line 366.
* warning: uasort() [function.uasort]: The argument should be an array in /data/bigreality.cz/www_data/www/includes/common.inc on line 2843.

is displayed only after refreshing the page after error message "Received an invalid response from the server".

many thanx for help

fourmi4x’s picture

Status: Closed (fixed) » Active

I have exactly the same problem as described by czeky.

I looked to the thread dedicated to the "Received an invalid response from the server" problem
(http://drupal.org/node/538022), but can't get it to work - Tried with both the 3.0 and the .dev version

Any update on this issue ?
I'm suscribing !

wim leers’s picture

Status: Active » Closed (duplicate)

Let's continue in that other issue instead of hijacking this one.