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

[Bug]: post_statuses error #158

Closed
albertobenavides opened this issue Sep 18, 2023 · 7 comments
Closed

[Bug]: post_statuses error #158

albertobenavides opened this issue Sep 18, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@albertobenavides
Copy link
Contributor

What happened?

Im getting this error

Illuminate\Database\QueryException
could not find driver
SELECT "label", "name" FROM "post_statuses"

when trying to open posts or pages in the admin panel.

After commenting the relationship with the post_status model, everything can load again:

/* SelectFilter::make('status')
->multiple()
->label(__('Status'))
->options(SkyPlugin::get()->getModel('PostStatus')::pluck('label', 'name')), */

How to reproduce the bug

Enter /admin//posts/*

Package Version

3.0

PHP Version

8.1

Laravel Version

10

Which operating systems does with happen with?

Windows

Notes

No response

@albertobenavides albertobenavides added the bug Something isn't working label Sep 18, 2023
@atmonshi
Copy link
Member

Can you share your configuration form the panel file?

@atmonshi
Copy link
Member

the error: could not find driver means your PHP doesn't enableredis-ext

@albertobenavides
Copy link
Contributor Author

You are right. I change the laptop and there I have not enabled the extension. Sorry.

@TapanDerasari
Copy link

Hi @atmonshi ,

I got the same error and did enabled the redis-ext, still it gives me an error.

any suggestion?

@atmonshi
Copy link
Member

@TapanDerasari can you open new issue :)

@TapanDerasari
Copy link

sure @atmonshi

@albertobenavides
Copy link
Contributor Author

It worked for me after enabled extension=pdo_mysql in php.ini.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants