Try the Demo

Magento

eCommerce Software for Online Growth

Magento Forum

Our new hosted solution for small & emerging businesses
   
[SOLVED] Backslashes added when data saved to database - problem
 
Joachim
Sr. Member
 
Avatar
Total Posts:  133
Joined:  2008-01-23
Netherlands
 

I have a “spontaneous” problem. When I save data from the backend there are apear extra backslashes at the saved data, it is with single quote, double quote and backslash.The data with the extra backslashes is saved at the database. So for now the solution is to change it manually at the database.

It seems like a magic_quotes problem so I checked the following:

PHP info gives:
Global Local
magic_quotes_gpc Off Off
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off

-> oke

I tried a user-input print with GET/POST, works fine ->oke

The function get_magic_quotes_runtime returns 0 , so magic quotes runtime is off. -> oke

So what can be the problem? A addslahes? A library? Any ideas?

There is also a bug report with something similar.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Joachim
Sr. Member
 
Avatar
Total Posts:  133
Joined:  2008-01-23
Netherlands
 

Ah, stupid. I added Wordpress to Magento according these post But I didn’t change wordpress config at wp-settings.php To fix Magento I deleted, around line 386:

// Escape with wpdb.
$_GET = add_magic_quotes($_GET );
$_POST = add_magic_quotes($_POST );
$_COOKIE = add_magic_quotes($_COOKIE);
$_SERVER = add_magic_quotes($_SERVER);

 
Magento Community Magento Community
Magento Community
Magento Community
 
moki
Jr. Member
 
Total Posts:  18
Joined:  2008-03-22
 

Thanks for posting your solution.  A year later and this post helped me out!

 
Magento Community Magento Community
Magento Community
Magento Community
 
ijeweb
Member
 
Avatar
Total Posts:  34
Joined:  2008-05-29
Sydney, AU
 

oh yes - still very helpful - it reminded me where I had made the mistake…

 Signature 

Magento Commerce specialists - Sydney Australia

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
© Copyright 2012 Magento Inc.
Privacy Policy|Terms of Service
Magento Community Count
701238 users|769 users currently online|497070 forum posts