[Fixed]: SMF 2 beta 4 and CPG 1.4.x bridge bug [Fixed]: SMF 2 beta 4 and CPG 1.4.x bridge bug
 

News:

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

Main Menu

[Fixed]: SMF 2 beta 4 and CPG 1.4.x bridge bug

Started by Dragooon, October 08, 2008, 09:57:19 AM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Dragooon

Hello,
I am new here and sorry if this is already covered

There seems to be a bug in the bridge for SMF 2 and CPG 1.4.x which causes the user to be recognized as a guest even if he/she is logged in.

To fix it
Open smf20.inc.php
Find
                if (empty($user_settings['ID_MEMBER'])){
Replace it with
                if (empty($user_settings['id_member'])){

Nibbler

Thanks for reporting. Fixed as suggested.

Ramsesx

Just for your information, this isn't fixed in the latest cpg1.4.19 build.

Paver

Quote from: Ramsesx on January 27, 2009, 01:57:27 AM
Just for your information, this isn't fixed in the latest cpg1.4.19 build.
True.  1.4.19 was released in August and this fix was applied in October.

The fix has been applied to the SVN repository for 1.4.x which means it will be in any release of 1.4 from 1.4.20 and up, whenever they may be.  And it was applied to the SVN repository for 1.5.x (although it was since rendered moot due to code changes).

So you need to apply the fix manually in 1.4.19 and earlier, as you suggested.