forum.coppermine-gallery.net
Support => cpg1.6.x Support => cpg1.6 bridging => Topic started by: maximus23 on October 17, 2018, 11:11:09 pm
-
Hello,
Version Smf 2.1 Beta 4 and Coppermine cpg 1.6.x
Report Bridge Smf 2.1
Fatal error: Cannot use object of type stdClass as array
Passing the second argument as true to json_decode force it to return associative array.
Make the below change.
Change your this code line
$data = json_decode($superCage->cookie->getRaw($this->cookie_name));
To
$data = json_decode($superCage->cookie->getRaw($this->cookie_name),true);
:)
Have a nice day :)
-
Thank you! Correction applied at Github.