Advanced search  

News:

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

Pages: [1]   Go Down

Author Topic: SMF 2.1 bridge error  (Read 482 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

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 1017
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.015 seconds with 21 queries.