Membership not loging in

Hi Guys,

All the functionality of the membership plugin is working fine, the sign-up process, password reminder etc. However, when I log in, I get re-directed as I'm meant to, but it is not activiting me as signed in.

ie. the code below doesn't "show this" and none of the member only functions work. Any suggestions on what to look for? I've attached the pertinent files....

<?php if (@$CURRENT_USER): ?>
show this
<?php endif ?>
Cheers,

Tim (toledoh.com.au)

Re: [Toledoh] Membership not loging in

By (Deleted User) - December 30, 2011

Hi Tim,

Could you provide the page that the user is being redirected to after login so I can check it over?

Also I wanted to check that you have the following:
// load viewer library
$libraryPath = 'cmsAdmin/lib/viewer_functions.php';
$dirsToCheck = array('','../','../../','../../../','../../../../');
foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}
if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in sourcecode."); }

// error checking
if (!@$GLOBALS['WEBSITE_MEMBERSHIP_PLUGIN']) { die("You must activate the Website Membership plugin before you can access this page."); }

at the top of each page that will contain member only information.

Thanks,

Tom

Re: [Tom P] Membership not loging in

Hi Tom,

Thanks for this.

I've sent an email through to support with FTP access which may help you more?

I don't have that error check on each page, but adding it didn't seem to make a difference.

I do have a age verification script that may be causing some issue?

Cheers,
Tim
Cheers,

Tim (toledoh.com.au)

Re: [Jason] Membership not loging in

By Toledoh - January 2, 2012

Thanks for that Jason - no wonder I couldn't figure it out!

Thanks for going to that effort!
Cheers,

Tim (toledoh.com.au)