SMF 2.1 bridge error SMF 2.1 bridge error
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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.