when submitting a category as a child of a container I get a wsod with the error:

Fatal error: Cannot use object of type stdClass as array in C:\wamp\www\d6test\sites\localhost.d6test\modules\category\wrappers\taxonomy\taxonomy.module on line 69

I also receive the same error when trying to delete a category or container. I have tried removing and uninstalling the module and still receive the error

Comments

luckysmack’s picture

ok this doesnt only happen if the submitted content is a child, other one i tried was a parent and onther was neither parent or child and have had the same error

cincy_kid’s picture

I am having the same exact issue....

any work arounds?

Anonymous’s picture

In case you haven't solved this yet, in file modules/category/wrappers/taxonomy.module, line 69:
replace
return 'node/'. $term['tid'];
with
return 'node/'. $term->tid;

Jaza’s picture

Status: Active » Fixed

@etzel: thanks. Fix committed to HEAD. This fix will be included in the next alpha release.

There are still quite a few easy-to-fix but critical little bugs like this floating around - that's why we're still in alpha mode.

luckysmack’s picture

Etzel: Much appreciated. Fix has worked so far.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

cincy_kid’s picture

I haven't tried this yet but much thanks Etzel, I am going to try this on a test site soon.

MarioTorresp’s picture

Try:

$displayContent = node_load($id_nodo);
$nodebody = $displayContent->body['und'][0]['value'];

Tested on Drupal 7.