Page 1 of 1
register globals error
Posted: Wed May 20, 2009 1:57 am
by abneb217
Hi,
I just uploaded OpenCart to my server, went to the store homepage and saw an error on the "Register Globals" line - mine shows on (see attached file).
I looked at the PHP.INI file and it says "register_globals = Off" . I emailed my host about this and got the following response:
Try adding this line to your .htaccess file:
php_flag register_globals off
1- should i do this?
2- if so, where is this file typically located?
TIA.
Re: register globals error
Posted: Wed May 20, 2009 4:25 am
by JNeuhoff
1- should i do this?
Yes.
2- if so, where is this file typically located?
The same directory where you installed your Opencart.
Re: register globals error
Posted: Wed May 20, 2009 7:52 am
by phpuk
You can ignore this warning as OpenCart already deals with this.
I believe Daniel is removing this check from the next version.
Phil.
Re: register globals error
Posted: Wed May 20, 2009 8:59 pm
by abneb217
thanks for the responses.
my host ended up doing something themselves to fix this for me and installation was successful.
However, when i try to access the demo shop or the admin page i get warning & fatal error & can't see anything. Can I post the details in this thread or should i start a new topic in a different section?
Re: register globals error
Posted: Thu May 21, 2009 2:01 am
by JNeuhoff
However, when i try to access the demo shop or the admin page i get warning & fatal error & can't see anything. Can I post the details in this thread or should i start a new topic in a different section?
Please post your error message here. Also, what's the URL of your Opencart site?
Re: register globals error
Posted: Thu May 21, 2009 4:04 am
by abneb217
url is
http://www.absilver.com/opencart
error when i go to the above url:
Warning: require_once(/var/www/html/opencart/system/startup.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/html/opencart/index.php on line 12
Fatal error: require_once() [function.require]: Failed opening required '/var/www/html/opencart/system/startup.php' (include_path='.:/php/includes:/usr/share/php') in /var/www/html/opencart/index.php on line 12
when i add /admin I get:
Warning: require_once(/var/www/html/opencart/system/startup.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/html/opencart/admin/index.php on line 6
Fatal error: require_once() [function.require]: Failed opening required '/var/www/html/opencart/system/startup.php' (include_path='.:/php/includes:/usr/share/php') in /var/www/html/opencart/admin/index.php on line 6
Re: register globals error
Posted: Thu May 21, 2009 4:34 am
by JNeuhoff
Does your
/var/www/html/opencart/config.php contain the following line?
Code: Select all
define('DIR_SYSTEM', '/var/www/html/opencart/system/');
Re: register globals error
Posted: Thu May 21, 2009 5:11 pm
by abneb217
JNeuhoff wrote:Does your
/var/www/html/opencart/config.php contain the following line?
Code: Select all
define('DIR_SYSTEM', '/var/www/html/opencart/system/');
Yes it does.
Re: register globals error
Posted: Mon May 25, 2009 1:30 am
by abneb217
any ideas?
can't access admin section
Posted: Tue May 26, 2009 6:52 pm
by abneb217
I just uploaded all the folders again and now i'm able to access the store -
www.absilver.com/opencart .
However, I still can't access the admin section. When I try to go to
www.absilver.com/opencart/admin I get the following:
Warning: require_once(DIR_SYSTEMstartup.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/html/opencart/admin/index.php on line 6
Fatal error: require_once() [function.require]: Failed opening required 'DIR_SYSTEMstartup.php' (include_path='.:/php/includes:/usr/share/php') in /var/www/html/opencart/admin/index.php on line 6
I checked the admin folder and I see an index.php file in there. Any ideas?
Re: register globals error
Posted: Tue May 26, 2009 8:14 pm
by Daniel
you config file has not been writen.
Re: can't access admin section
Posted: Tue May 26, 2009 9:13 pm
by abneb217
Hi Daniel,
sorry for the potentially silly question but i'm pretty much a newbie when it comes to web design.
can you elaborate on what "you config file has not been writen." means ?
Re: register globals error
Posted: Tue May 26, 2009 11:42 pm
by JNeuhoff
Make sure your config files /var/www/html/opencart/config.php and /var/www/html/opencart/admin/config.php have been correctly created by the installer.