ErrorException: “json_decode() expects parameter 1 to be string
-
I’m receiving the following error with AIOSEO when accessing the AIO Settings page or a CPT page in admin:
/Users/***/wp-content/plugins/all-in-one-seo-pack/app/Common/Traits/Helpers/Vue.php 135 ErrorException thrown with message "json_decode() expects parameter 1 to be string, array given"
The line referred to in the error is:
'helpPanel' => json_decode( aioseo()->help->getDocs() ),
The
getDocs()
call is sending an array tojson_decode
instead of a string.This is occurring with WP_DEBUG enabled and WP_ENVIRONMENT_TYPE set to either ‘local’ or ‘staging’. The local environment uses valet and staging is a WHM/cPanel server. The only way to get around it is to disable WP_DEBUG. I have seen this occur on multiple sites.
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘ErrorException: “json_decode() expects parameter 1 to be string’ is closed to new replies.