forum.coppermine-gallery.net

Support => cpg1.6.x Support => cpg1.6 bridging => Topic started by: maximus23 on October 17, 2018, 11:11:09 pm

Title: SMF 2.1 bridge error
Post 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

Code: [Select]
$data = json_decode($superCage->cookie->getRaw($this->cookie_name));
To

Code: [Select]
$data = json_decode($superCage->cookie->getRaw($this->cookie_name),true);
:)

Have a nice day :)
Title: Re: SMF 2.1 bridge error
Post by: ron4mac on October 18, 2018, 03:44:48 am
Thank you! Correction applied at Github.