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.
Update 7001 is in incorrect ORDER and need to be moved inside 7000 I guess:
PHP Fatal error: Class 'RedirectController' not found in /srv/www/html/includes/common.inc on line 7963
Fatal error: Class 'RedirectController' not found in /srv/www/html/includes/common.inc on line 7963
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Class 'RedirectController' not found in /srv/www/html/includes/common.inc, line 7963
The external command could not be executed due to an application error. [error]
'all' cache was cleared. [success]
Finished performing updates. [ok]
# drush updb
Metatag 7038 Manually enable all content types, vocabularies and the user entity to help resolve issues from 1.5's architecture change.
Redirect 7000 Migrate data and variables from the Drupal 6 path_redirect module.
Redirect 7100 Rebuild the registry and clear the entity info cache.
Redirect 7101 Add status field.
Redirect 7102 Disable redirects that could cause infinite loops.
Themekey 7302 Rebuild ThemeKey's internal property registry.
Do you wish to run all pending updates? (y/n): y
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'field list' [error]
Performed update: redirect_update_7000 [ok]
'all' cache was cleared. [success]
Finished performing updates. [ok]
# drush updb
Metatag 7038 Manually enable all content types, vocabularies and the user entity to help resolve issues from 1.5's architecture change.
Redirect 7000 Migrate data and variables from the Drupal 6 path_redirect module.
Redirect 7100 Rebuild the registry and clear the entity info cache.
Redirect 7101 Add status field.
Redirect 7102 Disable redirects that could cause infinite loops.
Themekey 7302 Rebuild ThemeKey's internal property registry.
Do you wish to run all pending updates? (y/n): y
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'base.status' in 'field list' [error]
Performed update: redirect_update_7000 [ok]
'all' cache was cleared. [success]
Finished performing updates. [ok]
Failed: PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'base.status' in 'field list': SELECT base.rid AS rid, base.hash AS hash, base.type AS type, base.uid AS uid, base.source AS source, base.source_options AS source_options, base.redirect AS redirect, base.redirect_options AS redirect_options, base.language AS language, base.status_code AS status_code, base.count AS count, base.access AS access, base.status AS status FROM {redirect} base WHERE (base.hash = :db_condition_placeholder_0) ; Array ( [:db_condition_placeholder_0] => 0NvmQe44QbcvFjdQHpNiJeuo1dWFd84uQmKII7WT1YE ) in DrupalDefaultEntityController->load() (Zeile 198 von /srv/www/html/includes/entity.inc).
and now I cannot get anything upgraded in redirect module. I'm stuck in the update process.
Comment | File | Size | Author |
---|---|---|---|
#11 | redirect-path_redirect-2560019-11.patch | 6.46 KB | jenlampton |
Comments
Comment #2
hass CreditAttribution: hass commentedThe old
path_redirect
table still exists and has data that is not migrated to theredirect
table.Comment #3
hass CreditAttribution: hass commentedComment #4
hass CreditAttribution: hass commentedComment #5
hass CreditAttribution: hass commentedHere is a hotfix by editing the 7000 hook and run the functions in correct order:
[redirect.install]
Comment #6
hass CreditAttribution: hass commentedComment #7
Internet CreditAttribution: Internet as a volunteer and commentedWe had the same and disabling the redirect module fixed the issue.
Comment #8
swhitters CreditAttribution: swhitters commentedI am having the same issue. The suggestion in #5 did not solve the problem, unless I did something wrong. I just edited the redirect.install file and tried updating again and got the same error.
My error is a little different:
There's a similar problem here where they suggest reverting the schema number for the redirect module, but I don't have access to MySQL. Is there an easier solution?
Comment #9
satter9 CreditAttribution: satter9 commentedWe disabled the redirect module as well and we no longer get the error message.
Comment #10
jenlamptonI'm having a similar problem in upgrading from path_redirect to Redirect 7.x-1.0-rc3. All updates actually run fine for me up until 7101 and then I get
I think this is because I installed the module as usual which set up the current/lates schema. Then hook_update_install() runs and sets the schema_version in the database back to 6999, which updates from path_redirect, but then attempts to run all the following updates again, even when they aren't necessary.
I think this issue may also be related: #2578019: PDOException: SQLSTATE[42S22]: Column not found -- unknown column 'base.status' in 'field list'
Comment #11
jenlamptonHere's a patch that does the path_redirect migration using the batch system directly instead of the update system.
Comment #12
Chris Matthews CreditAttribution: Chris Matthews commentedI'm not sure how relevant the patch in #11 is at this point in the history of 6.x path_redirect and 7.x redirect, but it does still apply cleanly to the latest 7.x-1.x-dev and may still be useful to some so changing the status to RTBC.
Comment #13
pifagorComment #15
pifagor