PDA

View Full Version : SERIOUS ERROR: Parse error after changing the background color...



someone
Fri 5th May '00, 2:27am
Wherever I try to change templates to match our layout or even the background at Options/Change styles/Body tag/ the system generates backslashes which result in "Parse error: parse error in global.php on line 0" on every page....

This is what I mean:

<body bgcolor="#ffffff" text="#000000" id=all>
and after change:
<body bgcolor=\"#ffffff\" text=\"#000000\" id=all>
even worse if I want to change it again:
<body bgcolor=\\\"#ffffff\\\" text=\\\"#000000\\\" id=all>

So it seems that where ever a " is used, the system generates \ (backslashes).

What can we do to fix this problem, since it makes our board completely useless now.

John
Fri 5th May '00, 2:30am
What version are you running?

Also, check that line 543 of options.php looks like this:



while (list($key,$val)=each($newoption)) {
if (get_magic_quotes_gpc()==1) {
$val=stripslashes($val);
}
$val=str_replace("\$","\\\$",$val);
$val=str_replace("\"","\\\"",$val);
$opttemp.="\$$key = \"$val\";\n";
}


John

wandrer
Fri 5th May '00, 2:41am
that was the same problem I was having (http://www.vbulletin.com/forum/showthread.php?threadid=309 ), but the code above checks out - and it is only the body tag and the footer. All the rest are correct.

(* sigh *)

I fixed it by using phpmyadmin available from http://www.phpwizard.net/ which is a program that allows you to maintain mysql databases through a webbased interface.

'someone', email me (wandrer@glcomputers.com) so we might be able to find a solution to this.

[Edited by wandrer on 05-05-2000 at 12:45 PM]

someone
Fri 5th May '00, 2:41am
Version 1.1.1

And since we didn't change any source code it looks exactly the same like you showed....