Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Craft can’t fetch the info table row. #12101

Closed
ostark opened this issue Oct 11, 2022 · 3 comments · Fixed by #12107
Closed

Craft can’t fetch the info table row. #12101

ostark opened this issue Oct 11, 2022 · 3 comments · Fixed by #12107
Assignees
Labels

Comments

@ostark
Copy link
Contributor

ostark commented Oct 11, 2022

Description

After running craft db/restore seed.sql on a empty database (no tables) I see the following error output:

Restoring database backup ... done
Clear data caches? (yes|no) [yes]:yes

Craft can’t fetch the `info` table row.

Clearing cache: Data caches

The table actually exists after running the command - further actions work without any issues, but the error message is not the best DX.

Additional info

  • Craft version: 4.2
  • PHP version: 8.1
  • Database driver & version: mysql 8
@ostark ostark added the bug label Oct 11, 2022
nfourtythree referenced this issue in craftcms/spoke-and-chain Oct 12, 2022
@nfourtythree
Copy link
Contributor

Hi @ostark

Thank you for raising this, this is an issue within the core of Craft itself.

I will move the issue over to the cms repo.

Thanks!

@nfourtythree nfourtythree transferred this issue from craftcms/spoke-and-chain Oct 12, 2022
@brianjhanson brianjhanson self-assigned this Oct 12, 2022
brianjhanson added a commit that referenced this issue Oct 12, 2022
Previously if you restored the DB and then tried to run another command, Craft would report that it was not yet installed.

The strict test makes sure we're getting an accurage value from `ApplicationTrait::getIsInstalled()` before we show the user a warning

Fixes #12101
@brandonkelly
Copy link
Member

Thanks for reporting! Fixed for the next release via #12107.

@brandonkelly
Copy link
Member

Craft 4.2.8 is out now with that fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants