Skip Navigation

[Resolved] Parse error: syntax error, unexpected T_FUNCTION

This thread is resolved. Here is a description of the problem and solution.

Problem: I am seeing an error when Toolset is active - "Parse error: syntax error, unexpected T_FUNCTION"

Solution: Update server to a newer version of PHP

This support ticket is created 6 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by Antonio Aragón 6 years, 6 months ago.

Assisted by: Christian Cox.

Author
Posts
#804816

Good afternoon, the problem I have is that the web in the working directory in which I have been developing it works perfectly but when entering from the
final url gives me the following error:

Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /homepages/19/d431537475/htdocs/nuevo/wp-content/plugins/toolset-maps/includes/toolset-common-functions.php on line 1067

What could be the problem?

Thanks a lot for your support.

#806012

Hi, can you try the following troubleshooting steps?
- If you have not been able to turn off the Maps plugin, log in to the server with FTP or SSH and change the name of the Maps plugin folder at /wp-content/plugins/toolset-maps to toolset-maps-backup
- Try the site again. If you are able to see the site now without the parse error, please check to be sure Types and Views have been installed and are up-to-date. Then revert the the toolset-maps folder.
- Temporarily switch to a default theme like Twenty Seventeen, then try to reactivate Maps.
- If you continue to experience the parse error, please rename the folder again so you can get into wp-admin. Then delete the Maps plugin, download a fresh copy from https://toolset.com/account/downloads, and install it again.

Let me know the results.

#806688

i did all the steps that you say and the problem persist.

in this url: hidden link the web is on, all the fuctions are perfect but when you acces with the final URL the error persist...

#806819

Okay I would like to take a closer look. Please provide login credentials here so I can access FTP and wp-admin.

#846078

I got to find the problem. I was the version of php that had install in the server, it was 5.5 and when i update to the 7.0 version all was correctly.

Thank you for the support.