Closed (fixed)
Project:
Nodewords: D6 Meta Tags
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Aug 2006 at 17:30 UTC
Updated:
2 Jun 2009 at 21:57 UTC
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.
Comments
Comment #1
moonray commentedI 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.
Comment #2
Robrecht Jacques commentedWell, 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...Comment #3
Robrecht Jacques commentedDuh! The "where" is obviously line 308... will check it (but a patch is appreciated anyhow).
Comment #4
Robrecht Jacques commentedCould 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).
Comment #5
Robrecht Jacques commentedThis needs more information as asked before I'll be able to fix this.
Comment #6
avpadernoI am closing this report because it didn't get any feedback in more than one year; this is enought to think that who opened the report has lost interest in it.