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:
QuoteFatal 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!
In the file bridge/smf20.inc.php, replace line 283
function view_profile()
with
function view_profile($uid)
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.