Jump to content

How To Fix: Parse error: syntax error, unexpected T_STRING in ........... on line ...


Recommended Posts

Due to the

 code tags, some mods will show this error

Parse error: syntax error, unexpected T_STRING in path/to/file.php on line [color=green]XX[/color]

If you have copied a modification from here open up, notepad and press CTRL+G and type in the number that would be insted of the green XX's.

Now you are on that line you will notice the BBcode engin will replace a link like

<a href='index.php'>index</a>


<a href=[color=red]"[/color]http://index.php[color=red]"[/color] target=[color=red]"[/color]_blank[color=red]"[/color]>index</a>

This is the root of the error what you have to do is replace the double quotes (hilighted in red) with single quotes ( ' )

If the error persists but on a diffrent line go throgh this again!

Edited by Dayo
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...