Duplicate field name of nodewords and upload module in Drupal

According to my last patch to make nodewords module work on Drupal 4.7.x, it worked nearly perfect until I tried to attach a file to a node using standard upload module. Whenever I did it, I got following error messages.

Fatal error: Cannot create references to/from string offsets nor overloaded objects in /home/sugree/www/howforge4704/includes/form.inc on line 277

Sadly, I tried to fix this problem in form.inc with no luck. Eventually, by the help of var_dump(), I found that the actual problem is "description". There is other fields named description in upload fieldset so form builder always get confusing how to render this form.

I solved this problem by renaming all fields in nodewords to have "nodewords_" in front of them. See my patch at http://drupal.org/node/47775 or directly download it here.

Technorati Tags: , , , , ,

Post new comment