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

ErrorException: “json_decode() expects parameter 1 to be string, array given" #3223

Open
joshuafredrickson opened this issue Sep 19, 2024 · 0 comments

Comments

@joshuafredrickson
Copy link

When attempting to access an admin edit page, the following error appears (and has been showing up off and on for the last 2.5 years across several different sites).

2024/09/19 15:32:44 [error] 42303#42303: *52930 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught TypeError: json_decode(): Argument #1 ($json) must be of type string, array given in /srv/www/wp-content/plugins/all-in-one-seo-pack-pro/app/Common/Help/Help.php:73
Stack trace:
#0 /srv/www/wp-content/plugins/all-in-one-seo-pack-pro/app/Common/Help/Help.php(73): json_decode(Array, true)
#1 /srv/www/wp-content/plugins/all-in-one-seo-pack-pro/app/Common/Traits/Helpers/Vue.php(229): AIOSEO\Plugin\Common\Help\Help->getDocs()
#2 /srv/www/wp-content/plugins/all-in-one-seo-pack-pro/app/Common/Traits/Helpers/Vue.php(67): AIOSEO\Plugin\Common\Utils\Helpers->setInitialData()
#3 /srv/www/wp-content/plugins/all-in-one-seo-pack-pro/app/Pro/Traits/Helpers/Vue.php(63): AIOSEO\Plugin\Common\Utils\Helpers->getVueData(NULL, NULL, NULL)
#4 /srv/www/wp-content/plugi" while reading response header from upstream, client: *.*.*.*, server: ***, request: "GET /wp-admin/post.php?post=199&action=edit HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm-wordpress.sock:", host: "***", referrer: "https://***"

It occurs when WP_DEBUG is enabled and WP_ENVIRONMENT_TYPE set to either local or staging.

Reference (Mar 2022)
Reference (Sep 2024)


PHP 8.2.23
AIOSEO Pro 4.7.1.1

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

No branches or pull requests

1 participant