Membership not loging in
5 posts by 3 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: January 2, 2012 (RSS)
By Toledoh - December 29, 2011
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 ?>
Tim (toledoh.com.au)
Re: [Toledoh] Membership not loging in
By (Deleted User) - December 30, 2011
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
By Toledoh - December 30, 2011
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
Tim (toledoh.com.au)
Re: [Toledoh] Membership not loging in
By Jason - January 2, 2012
This issue was resolved. Here are the details in case anyone else runs into a similar problem.
Problem:
- When logged into CMS Builder, if you access a .php page in another directory that includes viewer_functions.php, your session would be destroyed and you have to log into CMS Builder again. If you logged in with the website membership plugin and then went to CMS Builder the same thing would happen.
Cause:
- The most likely cause is that your server is running a program called Suhosin, which is a php security script, which usually causes a lot more problems than it solves. In the cmsAdmin folder there is a php.ini file. It is this file that interferes with Suhosin, setting it to it's strictest level.
Solution:
- delete the php.ini file from the cmsAdmin folder, or rename it. This should resolve the issue. Note that if you upgrade CMS Builder, you will probably have to do this again.
Hope this helps
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Re: [Jason] Membership not loging in
By Toledoh - January 2, 2012
Thanks for going to that effort!
Tim (toledoh.com.au)