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.0 Bridge error after update  (Read 3764 times)

0 Members and 1 Guest are viewing this topic.

totosfo

  • Coppermine newbie
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15
SMF 2.0 Bridge error after update
« on: August 30, 2023, 04:29:41 pm »

Hi all,

unfortunately I don't seem to have write permissions in the bridging board, so I post my question here:

I' currently running CPG 1.6.06 bridged with SMF 2.0.9 on a managed server, using PHP 7.6. Now I'm migrating the whole website to a new host where the use of at least PHP 8 is enforced.

So I upgraded CPG to the latest version 1.6.25 with now issues, I just had to use a different template to get it running. However, as soon as I enable the bridge to SMF 2.0 I get the following error:

Quote
Fatal error: Declaration of cpg_udb::view_profile() must be compatible with core_udb::view_profile($uid) in /pages/39/19/d0016534/home/htdocs/cpg/1.6.x_test/bridge/smf20.inc.php on line 283

On the old server SMF and CPG used to be in separate databases, just to rule out any issues I moved both to a single database but the issue persists. Google didn't help (just one hit) - any ideas?

Thank you very much for your help!

Logged
Best regards,

Thomas

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: SMF 2.0 Bridge error after update
« Reply #1 on: August 30, 2023, 04:53:14 pm »

In the file bridge/smf20.inc.php, replace line 283
Code: [Select]
        function view_profile()with
Code: [Select]
        function view_profile($uid)
Logged

totosfo

  • Coppermine newbie
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15
Re: SMF 2.0 Bridge error after update
« Reply #2 on: September 02, 2023, 11:05:57 pm »

Thank you very much, that's an easy one. Guessed that, but didn't dare as it was somehow too easy.

Sorry for not replying earlier, I did run into more trouble during this server migration so I was quite busy.
Logged
Best regards,

Thomas
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.