I export my nodes fine, but when I import them, I have the magic quotes embedded in the data in the title and some other fields.

My magic quotes settings in php.ini are as follows (in which I did the export and import):

; Magic quotes
;

; Magic quotes for incoming GET/POST/Cookie data.
magic_quotes_gpc = On

; 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

Is there anything I need to change? What is the correct settings/procedure I should be using?

Comments

danielb’s picture

I am largely unfamiliar with server and network administration.

There is a previous thread that dealt with this slightly #460756: Import: unexpected T_STRING, expecting ')' but it was never fully resolved.

I guess I too would like to know the correct settings for this, or what I can do to make it work for any settings.

arcane’s picture

Ok, thanks for the reply. I'll keep looking into it..

arcane’s picture

The solution to my problem was to change the magic quotes settings in php.ini to the following

; 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

After I set magic_quotes_gpc to off, I was able to export and import the data without a problem.

danielb’s picture

Status: Active » Closed (won't fix)

Yeah according to this they are not longer the thing to use
http://au.php.net/magic_quotes
http://au.php.net/manual/en/security.magicquotes.whynot.php

I know that doesn't real solve this module's compatibility with different environments - but I don't know what to do about it.