I'm using a combination of modules to complete a daunting task. I'm using drupal6.15 + ubercart2 + domain access 6.x-2.1 + node import 6.x-1.0-rc4 + taxonomy node BETA3 and now I've got a problem that whenever a node is created by the Taxonomy Node module, it's created without a corresponding content type and (perhaps) therefore I cannot edit the created node.

On the edit term page, I got a fieldset with a link to- the created node: You can edit the associated node NODENAME as well. When I click that link, i'm redirected to node/X/edit and that gives me this error:

warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'catdesc_node_form' was given in /includes/form.inc on line 373.

I'm not even 100% sure that the error lies within Taxonomy Node, sorry.

Comments

JayNL’s picture

well, we got a bit further here. When I first create a content type 'catdesc' it all magically works.

hanoii’s picture

Status: Active » Postponed (maintainer needs more info)

I am not sure this is on this module either. I am not sure who's calling drupal_get_form('catdesc_node_form') that's making that warning to appear. What you should do is try to generate a backtrace of the calling functions. So in line 373 of form.inc you may want to check for 'catdesc_node_form' as a callback and there use something like debug_backtrace() there, that should point you to the real cause of the problem.

JayNL’s picture

hi,

i noticed it was because the Content Type 'catdesc' was not created, either by me or a module. I'm pretty sure this has nothing to do with this module.

delapohl’s picture

FYI, I ran into this same error recently. I tracked it down to a content type whose name I had changed from group_page to grouppage some time back. The change was not reflected in the corresponding taxonomynode record in the variable table:

('taxonomynode_2', 'a:1:{s:12:"content_type";s:10:"group_page";}')

Updating this record fixed the issue.

dimiduj’s picture

Sometimes ,you have to load the node.pages.inc in your code:

module_load_include('inc', 'node', 'node.pages');

joannee’s picture

If you are using Mapstraction CCK module try installing geo_field module which is available here - http://drupal.org/project/geo, that should correct the problem