Page 1 of 1
magic_quotes_gpc is enabled!
Posted: Wed Feb 18, 2009 2:42 pm
by csleepg
Hi,
I am getting this error when want to run installation script to install opencart.I have no problem with old version.How to fix this as my php system is a preloaded.I am running it in synology NAS.
Error: magic_quotes_gpc is enabled!
Re: magic_quotes_gpc is enabled!
Posted: Wed Feb 18, 2009 3:34 pm
by fido-x
You could try adding the following line to top of your .htaccess file:--
Re: magic_quotes_gpc is enabled!
Posted: Wed Feb 18, 2009 5:33 pm
by removed331062
If there are 1and1 users out there, php_flag magic_quotes_gpc Off doesn't work if you drop it in the .htaccess file unless you're on a dedicated server (you'll get a 500 server error). To disable the magic quotes directive, copy the php.ini file that's included in the installation package and paste it into the /install folder. As an FYI, it's not recursive for shared hosting packages so you'll have to place php.ini in pretty much every folder and sub-folder where you want magic quotes disabled.
Also, for 1and1 users, all *.php files are parsed with PHP4. If you want to use PHP5, you will need to add the following lines to your .htaccess file and place the file in the root of your OpenCart installation folder:
AddType x-mapp-php .php4
AddType x-mapp-php5 .php
AddHandler x-mapp-php .php4
AddHandler x-mapp-php5 .php