SMF 2.1 bridge error SMF 2.1 bridge error
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

SMF 2.1 bridge error

Started by maximus23, October 17, 2018, 11:11:09 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

maximus23

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 :)

ron4mac

Thank you! Correction applied at Github.