using an apostrophe in versions 1.0.6.4 and 1.0.7

using an apostrophe in versions 1.0.6.4 and 1.0.7

by mike lucas -
Number of replies: 4

If I try to include an apostrophe in a weekly class summary, I get the error message "unable to update the summary"

If I try to include an apostrophe in the front page description, I get the error message "Serious Error! Could not update the site record! (id = 1)". It seems that anywhere I try to enter an apostrophe in Moodle I get an error message.

Apostrophes seemed to work  fine with version 1.0.6.3, and they are used in one of the example courses on this site, so I am not sure if I have an incorrect setting somewhere.

I am running Moodle on Win XP, Apache 2 and PHP 4.2.3

Average of ratings: -
In reply to mike lucas

Re: using an apostrophe in versions 1.0.6.4 and 1.0.7

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Does your PHP server have magic_quotes_gpc turned on?

http://moodle.com/doc/install.html#webserver
In reply to Martin Dougiamas

Re: using an apostrophe in versions 1.0.6.4 and 1.0.7

by mike lucas -

My php.ini settings at the time of your reply were

; 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

After your reply, I changed them to:

; 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 = on   

; Use Sybase-style magic quotes (escape ' with '' instead of \').
magic_quotes_sybase = on

I still get the same error.

In reply to mike lucas

Re: using an apostrophe in versions 1.0.6.4 and 1.0.7

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
I'm at a loss. I can't think of anything that has changed that could cause it, and all the other installations I know of are working fine.

Guesses, anyone?
In reply to mike lucas

Re: using an apostrophe in versions 1.0.6.4 and 1.0.7

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Mike, try editing lib/setup.php.

In there you will see a bunch of code that is commented out. Try uncommmenting it and see if it fixes your problem.