1. i create a .htacces for my root directory
Code: Select all
php_value register_globals "Off"
Code: Select all
php_value register_globals "Off"
Code: Select all
<?php
echo ini_get('register_globals');
?>
6. I've locate the code in the index.php file:Error: register_globals is enabled!
Code: Select all
if (ini_get('register_globals')) {
exit('Error: register_globals is enabled!');
}
Code: Select all
if (ini_get('register_globals')) {
echo ini_get('register_globals'); echo "<br />";
exit('Error: register_globals is enabled!');
}
So, there is a problem with the "if" statement... Or maybe i was all wrong.Off
Error: register_globals is enabled!
I think you might be getting this message because your server is not set to allow ini_set to work.neophit wrote: 5. I've tried to open the Catalog but i get, then, of course, this message:
6. I've locate the code in the index.php file:Error: register_globals is enabled!
And i changed it toCode: Select all
if (ini_get('register_globals')) { exit('Error: register_globals is enabled!'); }
guess what:Code: Select all
if (ini_get('register_globals')) { echo ini_get('register_globals'); echo "<br />"; exit('Error: register_globals is enabled!'); }
So, there is a problem with the "if" statement... Or maybe i was all wrong.Off
Error: register_globals is enabled!
P.S. I'm sorry for writing the message this way, but i was unable to write it on a single post (i don't know why - it give me an error page)
OpenCart®
Project Owner & Developer.
Code: Select all
if (ini_get('register_globals') == "On") { exit....
Shouldn't this beneophit wrote: I've installed OpenCart on a Linux machine (Apache+PHP+MySQL). Because I'm not the root (just a user) i had to overwrite some PHP settings, including "register_globals". I've done this with an .htacces file. There seems to be a problem with the installer, and the index.php file from the root directory. Look at my scenario:
1. i create a .htacces for my root directory
2. i create a phpinfo() file to verify my modifications. It was good, the Master value is set to On, the local setting is "Off".Code: Select all
php_value register_globals "Off"
Code: Select all
php_flag register_globals off
Code: Select all
register_globals=off
Users browsing this forum: No registered users and 3 guests