Parse error: syntax error, unexpected 'global' (T_GLOBAL)

Parse error: syntax error, unexpected 'global' (T_GLOBAL)

Postby admin » Sat Oct 22, 2016 5:36 pm

Symptom: The page is taken to a blank with the error: Parse error: syntax error, unexpected 'global' (T_GLOBAL), expecting ')', in PhpBB SEO.

Solution: Remove the offending line, and the error should go away. Make sure it doesn't break anything else.

"Unexpected T_GLOBAL" means that you have a global $var (variable); statement is not inside the context of a function. This can happen if you are trying to access a file that is intended for inclusion with another file's function, or if one is unintendedly trying to make a variable act like a global.
The AVNW Support Team

If there is a false accusation made against you, then remove this fake report.

Shopping for a new website? See our design deals.

How much is your website worth? Get a free estimate.

And, if our post has provided you with great information, there are a few ways you can show your appreciation:
  1. Like us on Facebook
  2. Post a review.- Posting a good review about this site could help us provide improved support.

Thank You!
User avatar
Site Admin
Posts: 562
Joined: Sun Jan 12, 2014 11:18 pm
Location: New York City

Return to PhpBB

Who is online

Users browsing this forum: No registered users and 1 guest