On installing the module, you get the following error message:

  • warning: Invalid argument supplied for foreach() in /var/www/drupal-6.3/includes/common.inc on line 3169.
  • warning: Invalid argument supplied for foreach() in /var/www/drupal-6.3/includes/common.inc on line 3090.

...and the 'wymeditor_profiles' table isn't created.

The attached patch fixes this. Well, at least the table gets created; I haven't tested it exhaustively yet. The major issues were the absence of a 'return $schema;' at the end of wymeditor_schema(), and the attributes 'length' and 'unsigned' do not apply to 'int' and 'text' fields respectively.

Also replaced direct deletion of the table with "drupal_uninstall_schema('wymeditor');" in 'wymeditor_unistall()' and added some whitespace to meet the Drupal coding standards.

CommentFileSizeAuthor
wymeditor-schema-api.patch1.3 KBMatthew Davidson

Comments

fall_0ut’s picture

Status: Needs review » Fixed

Thanks for your patch...

Anonymous’s picture

Status: Fixed » Closed (fixed)

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