jpBenfica Posted September 14, 2012 Share Posted September 14, 2012 (edited) How to disable PHP Magic Quotes? Edited September 14, 2012 by jpBenfica (see edit history) 1 Link to comment Share on other sites More sharing options...
jpBenfica Posted September 14, 2012 Author Share Posted September 14, 2012 Solution Create a php.ini file and put in /public_html/install ; Magic quotes;; Magic quotes for incoming GET/POST/Cookie data.magic_quotes_gpc = Off; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.magic_quotes_runtime = Off; Use Sybase-style magic quotes (escape ' with '' instead of \').magic_quotes_sybase = Offextension=pdo.soextension=pdo_mysql.so Also is the solution for PDO MySQL extension php.zip php.zip 1 Link to comment Share on other sites More sharing options...
jpBenfica Posted September 19, 2012 Author Share Posted September 19, 2012 OR Create a php.ini file and put in /public_html/install ; Disable PHP magic quotes magic_quotes_gpc = Off magic_quotes_runtime = Off magic_quotes_sybase = Off ; Load PDO MySQL extension extension=pdo.so extension=pdo_mysql.so Link to comment Share on other sites More sharing options...
rullysyumanda Posted June 28, 2013 Share Posted June 28, 2013 its not work Link to comment Share on other sites More sharing options...
vekia Posted June 28, 2013 Share Posted June 28, 2013 its not work give us more information, what ps version you're trying to install? Where you've got hosting? Link to comment Share on other sites More sharing options...
rullysyumanda Posted June 28, 2013 Share Posted June 28, 2013 I'am using PS 1.5.3.1 Hosting in IIX server indonesia Link to comment Share on other sites More sharing options...
rullysyumanda Posted June 29, 2013 Share Posted June 29, 2013 <p>Can any body help me?<br /> I force to install and I got message</p> <p><b>Required parameters:</b> <span style="color:green;font-weight:bold;">OK</span></p> <p><b>Optional parameters:</b> <span style="color:red">Please fix the following error(s)</span></p> <ul> <li>magicquotes</li> </ul> Link to comment Share on other sites More sharing options...
vekia Posted June 29, 2013 Share Posted June 29, 2013 i think that this is strictly related to the server configuration, and probably you haven't permission to change server settings. In this case i suggest to contact with your hoster Link to comment Share on other sites More sharing options...
rullysyumanda Posted June 29, 2013 Share Posted June 29, 2013 its a pity I had incorporated hosting provider.... Got to move to another host. Thanks Vekia... Link to comment Share on other sites More sharing options...
Generaal Posted June 30, 2013 Share Posted June 30, 2013 Hello Vekia, I have moved to an vps server, all things going well, but I received the same message in BO. Now, the vps are new for me and it used the Direct Admin panel. Now, I want to chance the server setting for this issue, but I don't know how to go inside these settings. Best Regards, Generaal Link to comment Share on other sites More sharing options...
vekia Posted June 30, 2013 Share Posted June 30, 2013 you have to log to your server via SSH, then go to the PHP installation directory, open the php.ini file and change values described several posts above. you have to be familiar with UNIX os (bash commnads) Link to comment Share on other sites More sharing options...
Generaal Posted June 30, 2013 Share Posted June 30, 2013 (edited) Ha ok vekia, I have try to change the file via FTP and notepad++, but it have to do the change on the server, to solve this error reporting. I will go for the nessesary documentation to learn something to do from the baseline. Thanks for the replay. Best Regards, Generaal Edited June 30, 2013 by Generaal (see edit history) Link to comment Share on other sites More sharing options...
rafaelvidal Posted January 8, 2014 Share Posted January 8, 2014 (edited) Alternatively you can create a new file named .htaccess and paste the following code: <IfModule mod_php5.c> php_flag magic_quotes_gpc off </IfModule> Older PHP versions will require this: <IfModule mod_php.c> php_flag magic_quotes_gpc off </IfModule> Upload it to the directory of your prestashop files. Edited January 8, 2014 by rafaelvidal (see edit history) 1 Link to comment Share on other sites More sharing options...
rafaelvidal Posted January 8, 2014 Share Posted January 8, 2014 Ha ok vekia, I have try to change the file via FTP and notepad++, but it have to do the change on the server, to solve this error reporting. I will go for the nessesary documentation to learn something to do from the baseline. Thanks for the replay. Best Regards, Generaal You can still do it from Notepad++. Create a SSH connection to your server, it's pretty much like FTP, but you may use different data (HOST, PORT, USERNAME AND PASSWORD) Host: your host IP Port: 22 (usually) Username: root (usually) Password: your password Then you can browse your directories and edit 'php.ini'. After that you must login with a shell to restart your apache service: '/etc/init.d/httpd restart' (this command may vary from distros). Link to comment Share on other sites More sharing options...
fameparadise Posted July 12, 2015 Share Posted July 12, 2015 Solution Create a php.ini file and put in /public_html/install ; Magic quotes ; ; Magic quotes for incoming GET/POST/Cookie data. magic_quotes_gpc = Off ; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc. magic_quotes_runtime = Off ; Use Sybase-style magic quotes (escape ' with '' instead of \'). magic_quotes_sybase = Off extension=pdo.so extension=pdo_mysql.so Also is the solution for PDO MySQL extension Hi, what should I do if I already have a php.ini file that has the following code? memory_limit = 512M zend_extension=/usr/local/php53/lib/php/extensions/ioncube.so zend_extension=/usr/local/php53/lib/php/extensions/ZendOptimizer.so I do need some serious help in the email templates... Having the same problem reported in https://www.prestashop.com/forums/topic/394827-html-for-default-email-template-not-working/ Link to comment Share on other sites More sharing options...
eric63 Posted July 18, 2016 Share Posted July 18, 2016 I can verify that the fix posted by jpBenfica on 14 September 2012 worked for me: Cut and paste the following code into the php.ini file in public_html: ; Disable PHP magic quotes magic_quotes_gpc = Off magic_quotes_runtime = Off magic_quotes_sybase = Off ; Load PDO MySQL extension extension=pdo.so extension=pdo_mysql.so I upgraded to PrestaShop version 1.6.1.4 this weekend. After I went live with the shop, I received a notification from PayPal that an order had been placed and paid for. I went to PrestaShop Back Office and there was no record of the order. Fortunately, PayPal captured all of the information I needed to ship the product. I edited the php.ini file with the recommended code and uploaded back to the server. I then created a 35 cent product and purchased the product as a buyer to test the user experience and to ensure the fix worked. I was able to purchase the product using one page checkout and the order was recorded in the Back Office. Thanks for the fix! Link to comment Share on other sites More sharing options...
Recommended Posts