Error on delete node

moonray - August 24, 2006 - 17:30
Project:Meta tags
Version:4.7.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active (needs more info)
Description

Fatal error: Cannot use object of type stdClass as array in /home/moonray/wwwroot/drupal/modules/nodewords/nodewords.module on line 308

I believe it might have something to do with the Categories module replacing the taxonomy module with one of its own.

#1

moonray - August 31, 2006 - 18:40

I actually found the same error in the images_upload module.
It has to do with the code expecting submitted form data, but instead the node is being loaded from code, and then saved (after some modifications to title) using code. So, instead of an array, the function receives an StdClass... will look into submitting a patch when I work out the best way to do this.

#2

Robrecht Jacques - August 31, 2006 - 19:25

Well, then that's a bug in category module. It shouldn't mess with peoples expectations :-)

But I don't mind adding a (array) (which converts the object in an array - I believe that's all there is to it) somewhere. If you could tell me where...

#3

Robrecht Jacques - August 31, 2006 - 19:26

Duh! The "where" is obviously line 308... will check it (but a patch is appreciated anyhow).

#4

Robrecht Jacques - September 2, 2006 - 09:24

Could you tell me a bit more about this, because I can't seem to reproduce:

1. install nodewords and category
2. enable the wrapper for taxonomy and book (admniister >> settings >> category)
3. add container with some categories, required for "page"
4. create page, assign some categories
5. delete page => no error

Even if i use that container as auto-keywords vocabulary, nothing "bad" happens when i delete the node.

And what's even stranger: line 308 just contains the line $form = array(); and I doubt there is any error there.

So please let me know something (eg steps to reproduce).

#5

Robrecht Jacques - January 31, 2007 - 20:22
Status:active» active (needs more info)

This needs more information as asked before I'll be able to fix this.

 
 

Drupal is a registered trademark of Dries Buytaert.