We are in the process of upgrading our sites from Drupal 6 to 7 and have run into a couple of errors during the update process, e.g.

Fatal error: Unsupported operand types in /home/kevin/workspace/DataHub7/html/includes/database/mysql/schema.inc on line 85

It appears there are two issues in the clientside_validation.install file, which the attached patch fixes:

  1. hook_schema is referenced inside clientside_validation_update_7101(). This should never be done, the relevant schema should be duplicated in the update and the hook_schema implementation. I've retrieved the schema from the repository at the point in time the 7101 update hook was added and placed it in the 7101 update hook.
  2. clientside_validation_settings_load_defaults() is called from clientside_validation_update_7103(). Not all module functions are available within a hook_update_N implementation, you must explicitly load the relevant files first.
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

attiks’s picture

Status: Active » Fixed

Thanks!

Status: Fixed » Closed (fixed)

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