Still getting error even with "magic_quotes_gpc" set to off
9 posts by 3 authors in: Forums > CMS Builder
Last Post: January 25, 2008 (RSS)
By rasbro - January 23, 2008
<IfModule mod_php5.c>
# php_flag magic_quotes_gpc Off
</IfModule>
Any suggestions? The only change made recently that I can think of is a change from using PHP 5.2 to Fast CGI PHP 5.2.
Thanks,
Brian
Re: [rasbro] Still getting error even with "magic_quotes_gpc" set to off
By Dave - January 23, 2008
You could upgrade to v1.08, or you could...
Confirm that magic_quotes_gpc is disabled by running a phpinfo.php script and searching for "magic_quotes_gpc". Just create a file called "phpinfo.php" with this in it:
<?php print phpinfo(); ?>
If you're sure it's disabled, you can disable that error by editing lib/init.php. Just search for "magic_quotes_gpc" and put a comment # in front of that line to ignore it.
Or you could replace that line with this code from the latest version that disables that 'feature' if it's on.
// undo magic quotes
if (get_magic_quotes_gpc()) { // undo deprecated php magic_quotes feature
$in = array(&$_GET, &$_POST, &$_COOKIE);
while (list($k,$v) = each($in)) {
foreach ($v as $key => $val) {
if (!is_array($val)) {
$in[$k][$key] = stripslashes($val);
continue;
}
$in[] =& $in[$k][$key];
}
}
unset($in);
}
If magic quotes is on you can tell because anytime you enter a character like ' it will save it as \'.
Hope that helps!
interactivetools.com
Re: [Dave] Still getting error even with "magic_quotes_gpc" set to off
By rasbro - January 24, 2008
Thanks a bunch!
Brian
Re: [rasbro] Still getting error even with "magic_quotes_gpc" set to off
By grauchut - January 24, 2008
Re: [grauchut] Still getting error even with "magic_quotes_gpc" set to off
By Dave - January 24, 2008
interactivetools.com
Re: [grauchut] Still getting error even with "magic_quotes_gpc" set to off
By rasbro - January 24, 2008
Re: [rasbro] Still getting error even with "magic_quotes_gpc" set to off
By grauchut - January 24, 2008 - edited: January 24, 2008
Also does the new version of tinyMCE 3 have spell check?
Re: [grauchut] Still getting error even with "magic_quotes_gpc" set to off
By Dave - January 24, 2008
http://www.interactivetools.com/docs/cmsbuilder/upgrade.html
I think tinyMce does have some spellcheck features and add-ons. We don't have it enabled but you can tweak the tinyMCE config in this file: lib/menus/default/edit_functions.php (just search for "tinyMCE.init").
Hope that helps!
interactivetools.com
Re: [Dave] Still getting error even with "magic_quotes_gpc" set to off
By grauchut - January 25, 2008