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

Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable #236

Closed
aamplugin opened this issue Nov 20, 2022 · 0 comments
Assignees
Labels

Comments

@aamplugin
Copy link
Owner

The following error will be captured if corrupted information about AAM settings is stored in the DB:

Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given in /.../wp-content/plugins/advanced-access-manager/application/Addon/Repository.php:195

The root cause of it is that one of the AAM options that is stored in the wp_options DB table is somehow corrupted and does not return array value anymore

@aamplugin aamplugin self-assigned this Nov 20, 2022
@aamplugin aamplugin added the bug label Nov 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant