Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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:
- 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.
- 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.
Comment | File | Size | Author |
---|---|---|---|
clientside_validation_dont_use_hook_schema.patch | 2.69 KB | Kevin Rogers | |
Comments
Comment #1
attiks CreditAttribution: attiks commentedThanks!