Hi, I noticed that when full PHP debugging is turned on: error_reporting(E_ALL); and a PHP_SESSION cookie does not exist in the browser. The following error is given from any page protected by the php_include method: "Notice: Undefined index: _amember_login in /home/hyipre/public_html/magic/amember/plugins/protect/php_include/check.inc.php on line 28" As soon as I refresh the page, the error disappears (since the cookie now exists.) But if I delete the cookie, the error appears again. Thanks, james
Also, I have another problem. My site also uses Smarty to render pages. I have a problem that when I have a file with this: test.php <?php include_once $PATHS['amember'].'/plugins/protect/php_include/check.inc.php'; include_once $PATHS['smarty'].'libs/Smarty.class.php'; .....other code here..... ?> When I first load test.php I see the amember's login.html. This works. But when I then enter a correct login and password, the page loads again and I see this fatal error: "Cannot redeclare class smarty in /home/hyipre/includes/smarty/libs/Smarty.class.php on line 70" line 70 is where the "class Smarty" is declared which amember has already declared. I would like to keep amember's Smarty and my site's Smarty separate so that I can update Smarty for my site without affecting amember. Cheers
1. seems you have error_reporing overrided, so it displays NOTICEs. check your code. 2. you can rename smarty class anywhere in aMember to something else, like _smarty We already made this change - contact me and I will email you this changed code.