I'm trying to use the "Nodewords" module for several years (i.e. sind 2005), but never succeeded; activating the module always killed Drupal completely and rendered even the administration area unusable. Example error message (this I'm getting in Drupal 5.1 with "nodewords" v5.x-1.5; the earlier versions had other error messages which I've not recorded):
Fatal error: Cannot use string offset as an array in /var/www/drupal/modules/nodewords/tags/copyright.inc on line 11
For my installations (five quite similar configured Drupal setups), this is a critical error. It can be easily solved by deleting the contents of /var/www/drupal/modules/nodewords/, but prevented me from using the module. Since I haven't found similar bug reports in the current issues, this seems to be specific for my setups, so it might be an incompatibility with other modules, or other software provided by the OS (currently Debian GNU/Linux "Etch").
Thanks for any hints how to get ried of this problem,
Regards, -asb
Comments
Comment #1
asbdpl commentedI "upgraded" the site to 5.x-dev, but the error remains and appears even *before* activating the module, simply copying the "nodewords" folder into ./modules killes Drupal - I don't understand how this even can be possible, but anyway.
After this, I tried "nodewords" on four other Drupal sites on the same server where the module seems to work perfectly well. These sites are younger (a few months), and a lot smaller (2-4k nodes). The problematic site is about three years old, contains 20k+ nodes and went through several upgrades (4.6, 4.7, 5.0, 5.1, 5.x-dev); due to the age of the site, lots of modules, themes, content types etc. were installed, and lots of it were removed/deleted/uninstalled. The set of modules I'm *currently* using is almost identical between the five sites, so an incompatibility between "nodewords" and another module I'm currently running seems to be improbable.
Where do I stand? I know that "nodewords"
1. generally works,
2. works in my server's environment,
3. works with Drupal 5.x and my set of 3rd party modules.
It appears to me, that "nodewords" might conflict with the remains of an unknown module I uninstalled some time ago; I ran into a similar problem before ("categories" module) and learned, that Drupal includes no mechanisms to keep it's database in a healthy state, especially unused tables seem not to be dropped.
However, this is a wild guess which might be completely wrong. Are there any steps to track the error and/or incompatibility down?
Any help on this would be greatly appreciated!
Regards, -asb
Comment #2
Robrecht Jacques commentedIf you still have this issue: you could try to completely remove nodewords module (admin/build/modules, uninstall), then reenable it. Note that this will delete all your meta-tags data.
If you have too much data, you may try to reset the configuration of nodewords (admin/content/nodewords).
Other then that, I think it is really hard to find out what is going on, other then adding
drupal_set_message()orprint ...;on some carefully chosen locations - the place of which depends on the exact problem.So unfortunately, it's hard for me to help you on this. The error displayed above seems to be due to some error in your nodewords variable. If it is just that, resetting it (admin/content/nodewords) would solve it.
Comment #3
asbdpl commentedHi ,
uninstalling the module (as you mentioned above) and some cleaning up of the Drupal database helped. Reinstalling hte module went fine and as it looks at the moment, it seems to work perfectly. Thank you a lot!
Regards, -asb