Problem/Motivation

When upgrading from 7.x-1.0-beta2 to 7.x-2.0-beta3 the following error occurs:
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'drupal7.temp_fix_better_formats' doesn't exist

Here is the full output of the updates:

Performed update: better_formats_update_7101 [ok]
Performed update: better_formats_update_7101 [ok]
Prepped 300 records for these fields: ### REDACTED ###
Performed update: better_formats_update_7101 [ok]
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'drupal7.temp_fix_better_formats' doesn't exist [error]
Performed update: better_formats_update_7102 [ok]
'all' cache was cleared. [success]
Finished performing updates. [ok]

CommentFileSizeAuthor
#2 3340025-2.patch994 bytesdaniel korte
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Daniel Korte created an issue. See original summary.

daniel korte’s picture

Status: Active » Needs review
StatusFileSize
new994 bytes
daniel korte’s picture

Version: 7.x-1.0-beta5 » 7.x-2.x-dev
daniel korte’s picture

Issue summary: View changes
anybody’s picture

Priority: Normal » Major
Status: Needs review » Reviewed & tested by the community

Same here, correct fix @Daniel Korte!

@Maintainers please merge this and create a new release ASAP, as it breaks the update hook on all projects using table prefixes!

A hotfix release would make a lot of sense here, I guess :)

phily’s picture

Patch #2 also works for me updating better_formats from 7.x-1.0-beta2 to 7.x-1.0-beta5 using Drupal 7.95 (locked to 1.x because of PHP requirements).
Thanks

anybody’s picture

Priority: Major » Critical

Setting priority to critical, like the issue where this change was introduced, as this currently makes it impossible to run the database updates.

catalano’s picture

Just experience this issue when updating an older D7 site. Can someone explain how to implement Daniel's patch above? Thank You.

anybody’s picture

@catalano I think it might be best if you could contat the maintainer of this project to commit this fix. Would make a lot of sense. and is less complicated than patching for you.

catalano’s picture

@Anybody - I contacted him directly. No reply yet.

  • mandclu committed d5329eed on 7.x-2.x
    Issue #3340025 by Daniel Korte: SQLSTATE[42S02]: Base table or view not...
mandclu’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for the work here. I have merged in the change, and will roll a new release.

anybody’s picture

Thank you very very much @mandclu!

catalano’s picture

@mandclu This appears to only have been fixed in the 7.x-2.x release. Can you also update the 7.x-1.x release as well? Thank You.

Status: Fixed » Closed (fixed)

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

anybody’s picture

Status: Closed (fixed) » Active
anybody’s picture

Version: 7.x-2.x-dev » 7.x-1.x-dev

Let's switch this over to 7.x-1.x-dev!

anybody’s picture

Status: Active » Needs work

  • Anybody committed b284a1b9 on 7.x-1.x
    Issue #3340025 by Anybody, Daniel Korte, mandclu: SQLSTATE[42S02]: Base...
anybody’s picture

Status: Needs work » Fixed

Fixed in 7.x-1.x!

Status: Fixed » Closed (fixed)

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