Help - Search - Members - Calendar
Full Version: Syntax Error, Unexpected T_string
Zymic Webmaster Forums > Zymic Free Web Hosting > Zymic Free Web Hosting - General Discussion & Help
Qub1
This is what i get when I try to view my homepage:
QUOTE
Parse error: syntax error, unexpected T_STRING in /www/uuuq.com/w/o/r/worldofgta/htdocs/wiki/includes/db/Database.php on line 729


And this is what line 729 sais in that file:
QUOTE
throw new DBUnexpectedError( $this, '& mode is not implemented. If it's really needed, uncomment the line above.' );


What do I need to modify to make it work?
swordz
CODE
throw new DBUnexpectedError( $this, "& mode is not implemented. If it's really needed, uncomment the line above." );


Change it to that, and try.

swordz
Qub1
YES!, it worked! But now it shows another error:
CODE
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /www/uuuq.com/w/o/r/worldofgta/htdocs/wiki/includes/db/Database.php on line 1133


The content of that line is (it is the most upper line, but it looks like the other lines might cause some problems too):
CODE
        $sql = str_replace ( "\"", '', $sql);
        $sql = preg_replace ("/'.*'/s", "'X'", $sql);
        $sql = preg_replace ('/".*"/s', "'X'", $sql);
morbis
I'm just going off of the fix that swordz proposed earlier...try changing that 3rd line to this:

CODE
$sql = preg_replace ("/\".*\"/s", "'X'", $sql);

Oh, and be sure to make sure there's a ; at the end of line 1132.
swordz
It won't be a missing ; - that would be an unexpected T_VAR or something.

But well done for spotting that - I had looked, but hadn't seen anything.

swordz
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.