Hello,
I cannot install the latest 0.7.6 that I downloaded yesterday.
The install script says that Register_globals is ON ( enabled ) but according to my PHP info file it is set to OFF ( which I have double checked ).
What is wrong? Why does it say it is enabled when it is Off?
Please help!
Kind Regards,
Daniel
I cannot install the latest 0.7.6 that I downloaded yesterday.
The install script says that Register_globals is ON ( enabled ) but according to my PHP info file it is set to OFF ( which I have double checked ).
What is wrong? Why does it say it is enabled when it is Off?
Please help!
Kind Regards,
Daniel
hello!
i have some problems with my installation, i create the php.ini, change the .htacess. and when i go to the installation it appears Register Globals: Off Off Error , and i can´t continue the installation. Warning: OpenCart will not work with register_globals enabled!
thanks
i have some problems with my installation, i create the php.ini, change the .htacess. and when i go to the installation it appears Register Globals: Off Off Error , and i can´t continue the installation. Warning: OpenCart will not work with register_globals enabled!
thanks
I found out the problem!
You are using PHP4 when you need to be using 5.
This script will not install on anything below 4. I'm not 100% sure why the ini_get is cauing an error for globals, but until you start using PHP5 you can not install the script anyway.
You are using PHP4 when you need to be using 5.
This script will not install on anything below 4. I'm not 100% sure why the ini_get is cauing an error for globals, but until you start using PHP5 you can not install the script anyway.
OpenCart®
Project Owner & Developer.
Daniel, consider replacing
with
ini_get('register_globals') can return boolean, or an empty string on error. I guess if register_globals is missing in the php.ini it returns empty string, which is casted to boolean true in the first code snippet, without considering that the register_globals default value in PHP5 is false. In the second the number 1 is casted to boolean true if ini_get returns boolean, and to the string '1' if ini_get returns empty string, so it should work in both cases.
EDIT
I just remembered, that it can also return the string value 'On'/'Off', with possible variations 'on'/'off'.
So probably the best is using
,a bit ugly, but at least it should work 
Code: Select all
if (ini_get('register_globals')){
...
}
Code: Select all
if(ini_get('register_globals') == 1){
...
}
EDIT
I just remembered, that it can also return the string value 'On'/'Off', with possible variations 'on'/'off'.
So probably the best is using
Code: Select all
if((strtolower(ini_get('register_globals')) == 'on') || (ini_get('register_globals') == 1))

Last edited by azzzy on Wed Sep 19, 2007 4:19 am, edited 1 time in total.
http://henrymercado.com/prueba/register_global.gif[/img]
I would like if you can help me where i can change the code that you say, in the index of Install? (install/index.php) or in the main index.php? can you give more details?.
when i use .htaccess the code " php_value register_globals 0 " or "php_flag register_globals off" gives me "error 500" , i put the ".htaccess" in the "/public_html/comercio/" where is opencart.
i hope an answer and solution
I would like if you can help me where i can change the code that you say, in the index of Install? (install/index.php) or in the main index.php? can you give more details?.
when i use .htaccess the code " php_value register_globals 0 " or "php_flag register_globals off" gives me "error 500" , i put the ".htaccess" in the "/public_html/comercio/" where is opencart.
i hope an answer and solution

Can you check width phpinfo() what is the values of register_globals?
The code I am speaking about is on line 23 in install/index.php. Probably you don't have alllow override set to all in your php ini, and this gives the 500 server error.
The code I am speaking about is on line 23 in install/index.php. Probably you don't have alllow override set to all in your php ini, and this gives the 500 server error.
what a pr*ckLuvz2drv wrote: well there is
google.com
or php.net
google is your friend
Last edited by hm2k on Wed May 21, 2008 4:47 pm, edited 1 time in total.
nice.... well as that is a server side issue / setup not specific to opencart or any php script... google is a good place to start...
allenofthetower wrote:what a pr*ckLuvz2drv wrote: well there is
google.com
or php.net
google is your friend
Last edited by hm2k on Wed May 21, 2008 4:47 pm, edited 1 time in total.
Who is online
Users browsing this forum: No registered users and 3 guests