Skip to Main Content
Parse error: syntax error, unexpected T_FUNCTION

Just because a plugin is installed, doesn’t mean it’s actually being used.  When you activate a plugin in WordPress, that code is being added to a string of includes.  At that point, it might generate an error and WordPress may refuse to activate the plugin because of it.

Fatal Error

If you see something like:

Parse error: syntax error, unexpected T_FUNCTION in...

This is likely due to the version of PHP you’re running being too far out of date.  The fix is simply to update PHP.

Update PHP in cPanel

Go to your web host admin panel (cPanel, for example).

Under “Settings” you should see an icon for something like “Programming Languages.”  Click that icon.

PHP Version in cPanel

Once you’re there, select a newer version of PHP and click “Save Changes” or “Continue.”

Upgrade PHP

It can take up to an hour for the upgrade to take place, but everything should return to normal after that time.

Just remember, don’t panic.  Should you panic anyway, don’t hesitate to reach out to our support team.

Share the love:

Get Support

Nobody's perfect. If you need a little help, request support from the super-nerds at JDM Digital.

Any information you provide here will be kept confidential and only used for this purpose.

So we can follow-up.

The URL of the issue.

The more specific you can be, the better.

I am 100% robot

You're not a robot, are you? Sorry we have to ask.