Hi, I am running through the steps of migrating a drupal 7 site to Backdrop, currently using copies of everything while I figure stuff out.

When attempting to run the upgrade from /core/update.php, I am getting this error about content_access:

"content_access module can not be updated. Its schema version is 7103. Updates up to and including 7104 have been removed in this release. In order to update content_access module, you will first need to upgrade to the last version in which these updates were available."

Yet I am using the very latest version of content_access on the drupal site, which appears to be this one:

https://www.drupal.org/project/content_access/releases/7.x-1.3

Am I misreading this somehow?

Accepted answer

Good point. Yes, there is a dev version that contains that update hook:

https://git.drupalcode.org/project/content_access/-/blob/7.x-1.x/content_access.install?ref_type=heads

The solution then is to upgrade the D7 site to that dev (7.x-1.x) version and run update.php in D7, then migrate the site to Backdrop.

Comments

That's a bug in Backdrop's content_access. Can you please create an issue in that issue queue?

https://github.com/backdrop-contrib/content_access/issues

You can fix that temporarily by editing Backdrop's file content_access.install and changing the return value of content_access_update_last_removed() to 7103.

 

Check if there's a dev version of Content Access for Drupal 7 which includes a 7104 update hook -- sometimes ports are done from the dev versions which are ahead of the most recent release.

Thanks guys, that worked.

Although I did get this output:

 


    Notice: unserialize(): Error at offset 0 of 91 bytes in content_access_update_1002() (line 134 of /home/crm/domains/backdrop.crm/public_html/modules/content_access/content_access.install).
    Warning: Invalid argument supplied for foreach() in content_access_update_1002() (line 136 of /home/crm/domains/backdrop.crm/public_html/modules/content_access/content_access.install).
    Notice: unserialize(): Error at offset 0 of 91 bytes in content_access_update_1002() (line 134 of /home/crm/domains/backdrop.crm/public_html/modules/content_access/content_access.install).
    Warning: Invalid argument supplied for foreach() in content_access_update_1002() (line 136 of /home/crm/domains/backdrop.crm/public_html/modules/content_access/content_access.install).
    Notice: unserialize(): Error at offset 0 of 91 bytes in content_access_update_1002() (line 134 of /home/crm/domains/backdrop.crm/public_html/modules/content_access/content_access.install).
    Warning: Invalid argument supplied for foreach() in content_access_update_1002() (line 136 of /home/crm/domains/backdrop.crm/public_html/modules/content_access/content_access.install).