[Fixed]: Critical error bridging cpg1.4.19 with SMF2.0b4p when showing /profile.php?uid=# [Fixed]: Critical error bridging cpg1.4.19 with SMF2.0b4p when showing /profile.php?uid=#
 

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

[Fixed]: Critical error bridging cpg1.4.19 with SMF2.0b4p when showing /profile.php?uid=#

Started by Peter R, December 17, 2008, 08:53:30 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Peter R

I have cpg1.4.19 bridged with  SMF2.0b4p and this seemed to be working alright, but not for real. In thumbnail lists, under the thumb, the name of the user is visible. Clicking on it, profile.php?uid=# will open, with information of this particular user. This gave a critical error message. This occurred  while retrieving data from the database. Looking to the forum, I couldn't find this error with it's solution yet, so here is what I found:

This error is because of an error in smf20.inc.php, around line 76:
'regdate' => 'ddate_registered', // name of 'registered' field in users table

This field doesn't exist in the database of SMF. The line should be:
'regdate' => 'date_registered', // name of 'registered' field in users table