Advanced search  

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

Pages: [1]   Go Down

Author Topic: SMF 2.1 bridge error  (Read 10251 times)

0 Members and 1 Guest are viewing this topic.

maximus23

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Posts: 1
SMF 2.1 bridge error
« 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 :)
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: SMF 2.1 bridge error
« Reply #1 on: October 18, 2018, 03:44:48 am »

Thank you! Correction applied at Github.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 21 queries.