SMF 2.1 bridge error SMF 2.1 bridge error
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

SMF 2.1 bridge error

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

Previous topic - Next topic

0 Members and 1 Guest 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.