Hi Guys - I’m having some trouble with Magic Quotes, I think.
This is all happening on a dummy install but the server which I am using hosts some other sites that have MODx. I was hoping a fresh install in a new account would help me chase down some errors.
Here are some stats:
Modx: 1.0.5
PHP: 5.3.6
MySQL: 5.1.56
Browser: Chrome, FF4/FF3, IE8 etc.
Server: VPS hosting, Cpanel v. 11.28.87, 2.6.18-194.8.1.el5.028stab070.5 kernel
So having run in to some issues in the past on this server with the way sessions are handled and with magic quotes I set my PHP.INI file to look this this:
; 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
date.timezone = "Europe/London"
session.gc_maxlifetime = 28800
session.save_path = "/home/ck/tmp"
[
http://magnapc.co.uk/~ck/php.ini]
As you will see from the PHPInfo read out (
http://magnapc.co.uk/~ck/phpinfo.php) Magic quotes is indeed off (or so it would seem).
I had the PHP.ini set like that prior to starting the install, so in this instance, it has always been off.
MODx installed okay and seemed to be working OK. Using the default editor, I can see images and such in the file manager and upload new ones. I can even insert the image and see it in the editor.
Once the page is saved however, the double slashes begin to crop up in my image paths. Take a look at
http://magnapc.co.uk/~ck/index.php?id=47 for example and you will see what I mean.
Really stumped by this one, any tips much appreciated.
Cheers
D