PHP Warning: json_decode() expects parameter 1 to be string
-
Hello, I’m using wp-cli to control settings to activate and deactivate comming soon mode, when i use
“wp –url=url.mainsite.com –allow-root option patch update seedprod_settings ‘{“enable_maintenance_mode”:”false”}’ –format=json” It worksbut when i want to activate the mode I’m getting this error
“PHP Warning: json_decode() expects parameter 1 to be string array given in /home/pidepaya.com/public_html/wp-content/plugins/coming-soon/app/render-csp-mm.php on line 36”Line 36 of that file is “$seedprod_settings = json_decode( $ts, true );”
Any sollution? thanks in advance for any help.
- The topic ‘PHP Warning: json_decode() expects parameter 1 to be string’ is closed to new replies.