Guest rhyan Posted March 31, 2005 Share Posted March 31, 2005 I have registered at http://bugs.cubecart.com but I can't find any way to actually report a bug. Anywho.. onto the bug... I've signed into my admin control, but when I click General Settings or any link in my admin I get "Error 401: You do not have permission to access that page. Please ask one of the super users to grant this for you." At the top it reads " Logged in as: [ Logout | Change Password ] " Where before the error it would read " Logged in as: username [ Logout | Change Password ] " :rolly: Link to comment Share on other sites More sharing options...
Al Brookbanks Posted March 31, 2005 Share Posted March 31, 2005 Make sure Register Globals is Set Off It should work On but there must be a clashing variable. Register Globals Off Method 1: Put a .htaccess file in the root directory of the store. On a windows compuer make a text file called htaccess.txt with the content below. php_value register_globals 0 Upload it to your server and then rename it .htaccess I'll add this to the bugs. Register Globals Off Method 2: http://www.cubecart.com/site/forums/index....indpost&p=33589 Link to comment Share on other sites More sharing options...
Guest rhyan Posted March 31, 2005 Share Posted March 31, 2005 Thank you. Works like a charm. Link to comment Share on other sites More sharing options...
Al Brookbanks Posted March 31, 2005 Share Posted March 31, 2005 And now your store is more secure too :rolly: Link to comment Share on other sites More sharing options...
Guest Borisgoodenough Posted March 31, 2005 Share Posted March 31, 2005 Ummm, my ISP doesn't like that idea -- it changes my .htaccess file to read thusly: # File modified on Thu Mar 31 09:46:19 2005 by server # For security reasons, mod_php is not used on this server. Use a php.ini file for php directives # php_value register_globals 0 And a php.ini file doesn't do the same thing... Other ideas? Link to comment Share on other sites More sharing options...
Al Brookbanks Posted March 31, 2005 Share Posted March 31, 2005 In includes/global.inc.php Add ini_set(register_globals, 0) Directly after <?php Link to comment Share on other sites More sharing options...
Guest Borisgoodenough Posted March 31, 2005 Share Posted March 31, 2005 Sorry, still no go --still getting Error 401 message after I put in line: ini_set(register_globals, 0); Link to comment Share on other sites More sharing options...
Guest rhyan Posted March 31, 2005 Share Posted March 31, 2005 Sorry, still no go --still getting Error 401 message after I put in line: ini_set(register_globals, 0); Is that semicolon supposed to be there? Try it without. Link to comment Share on other sites More sharing options...
Al Brookbanks Posted March 31, 2005 Share Posted March 31, 2005 Or ini_set("register_globals", "off"); Link to comment Share on other sites More sharing options...
Guest Borisgoodenough Posted March 31, 2005 Share Posted March 31, 2005 Gives me an "Unexpected T_Variable error" if I don't put it in. Link to comment Share on other sites More sharing options...
Guest Posted March 31, 2005 Share Posted March 31, 2005 tried both ways and still no permissions? i get java script alert in bottom bar of screen when i hover over link and then when i click on link i get you do not have permissionj box pop up helppppppppppppppppppppppp ppppppppllllllllllllllllllllllssssssssss Link to comment Share on other sites More sharing options...
Al Brookbanks Posted March 31, 2005 Share Posted March 31, 2005 You could change every instance of: $_SESSION['ccAdmin'] to: $_SESSION['adminUser'] The probelm is that the users info array $ccAdmin is clashing with the session name ccAdmin with register globals on. Stupid mistake on my behalf. Link to comment Share on other sites More sharing options...
Guest Borisgoodenough Posted March 31, 2005 Share Posted March 31, 2005 Or ini_set("register_globals", "off"); That didn't work for me, either. But I'm more than willing to wait for the fix -- you dud warn that the Alpha would be buggy! For your own sanity, I hope you get the bug reporting working -- otherwise every bug is going to end up as a new thread here... Link to comment Share on other sites More sharing options...
Guest Insurrectus Posted March 31, 2005 Share Posted March 31, 2005 The .htaccess methods works great for me. Link to comment Share on other sites More sharing options...
Guest Posted March 31, 2005 Share Posted March 31, 2005 When I first login I see all admin options available, but when I click one I get the 401 error and every option except: Admin Home, Store Home, Server Info and Admin Sessions are greyed out. Installing the .htacess mod makes no difference for me. Link to comment Share on other sites More sharing options...
Guest Insurrectus Posted March 31, 2005 Share Posted March 31, 2005 New problem: Users can't create accounts. Link to comment Share on other sites More sharing options...
Guest marinist Posted March 31, 2005 Share Posted March 31, 2005 When I first login I see all admin options available, but when I click one I get the 401 error and every option except: Admin Home, Store Home, Server Info and Admin Sessions are greyed out. Installing the .htacess mod makes no difference for me. Same problem here Link to comment Share on other sites More sharing options...
Guest jbdancer Posted March 31, 2005 Share Posted March 31, 2005 When I first login I see all admin options available, but when I click one I get the 401 error and every option except: Admin Home, Store Home, Server Info and Admin Sessions are greyed out. Installing the .htacess mod makes no difference for me. My register globals or on , no problems with this. New problem: Users can't create accounts. What do they get ? Link to comment Share on other sites More sharing options...
Guest Posted March 31, 2005 Share Posted March 31, 2005 oh boy, cant use any of the admin area! Link to comment Share on other sites More sharing options...
Guest jbdancer Posted March 31, 2005 Share Posted March 31, 2005 :rolly: Anything ? Link to comment Share on other sites More sharing options...
Guest Posted March 31, 2005 Share Posted March 31, 2005 nothing everythings blocked, you get the 401 error :rolly: Link to comment Share on other sites More sharing options...
Guest Posted March 31, 2005 Share Posted March 31, 2005 ya other than that stupid 401 error witch isnt going away for me(all methods dont work) this new v3 is great Link to comment Share on other sites More sharing options...
Guest Posted March 31, 2005 Share Posted March 31, 2005 Ahhh that method 2 messed up my admin panel completely and I cant get rid of this error now Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/********/public_html/cubecart3/includes/global.inc.php:66) in /home/********/public_html/cubecart3/admin/includes/auth.inc.php on line 30 Warning: Cannot modify header information - headers already sent by (output started at /home/********/public_html/cubecart3/includes/global.inc.php:66) in /home/********/public_html/cubecart3/admin/includes/auth.inc.php on line 32 but you did say it would be buggy so it doesnt really bother me it has loads of bugs. Link to comment Share on other sites More sharing options...
Al Brookbanks Posted March 31, 2005 Share Posted March 31, 2005 All these problems are down to Register Globals being on... I feel like an idiot because most of CC2's problems come from it not working with Register gobals off and the new one doesn't work with it on... I think we need arelease between alpha and beta.... Should have starded it in Ceta!??!?! :rolly: Link to comment Share on other sites More sharing options...
Al Brookbanks Posted March 31, 2005 Share Posted March 31, 2005 I said it would be buggy. It's been a mamouth job to build. Link to comment Share on other sites More sharing options...
Recommended Posts