WebSite X5Help Center

 
Larry H.
Larry H.
User

Parse error: syntax error, unexpected T_FUNCTION  en

Auteur : Larry H.
Visité 2206, Followers 2, Partagé 0  

I'm working on a website now in Website x5 and my form is not working: 

I get this error message when I test the form: Parse error: syntax error, unexpected T_FUNCTION in /home/landscap/public_html/res/x5engine.php on line 2019

frown

Larry

Posté le
7 RéPONSES - 2 UTILE
Paul M.
Paul M.
Moderator

Hello Larry,

In your own case I can safely say that particular error message is indicative of a PHP error.  You need to upgrade your version of PHP on the server to 5.6 or above.

Kind regards,

Paul

Search the WebSite X5 Help Center (multilingual)

Lire plus
Posté le de Paul M.
Aleksej H.
Aleksej H.
Moderator

Hello.Also try to reload the site to the hosting.Pre-delete from the hosting all the site files.

Lire plus
Posté le de Aleksej H.
Larry H.
Larry H.
User
Auteur

Thanks for the help, I did upgrade the php with the cpanel and that didn't help. I will try to reload the site again and hopefully that will fix the issue. Thanks again. 

Lire plus
Posté le de Larry H.
Larry H.
Larry H.
User
Auteur

I did upgrade the php with the cpanel to 7.0 and I did delete files for my hosting and reloaded the files, but I'm still getting this error when testing the form:

Parse error: syntax error, unexpected T_FUNCTION in /home/landscap/public_html/res/x5engine.php on line 2229

I'm also receiving this test failure when I'm loading the website files, see attached:

Here is the url: http://landscapedesigncharlottenc.com/

Thank you,

Larry

Lire plus
Posté le de Larry H.
Paul M.
Paul M.
Moderator

Hello again Larry,

I would advise you to have a word with your webhost regarding this, and ask them to assist you in setting the PHP version for your WebSite X5 project to version 5.6 or above.

The setting in cPanel is a global setting, which can be overridden by other settings on the server/hosting.

The only other possibility is that you have more than one webhosting account, and have mistakenly adjusted the settings on the wrong one?  Your website appears to be hosted by Bluehost...  is that correct?  Did you use your Bluehost cPanel account?

Lire plus
Posté le de Paul M.
Larry H.
Larry H.
User
Auteur

Paul, I did finally have to contact Hostgator support and at this point in time, it appears they were able to fix this issue with the website form/php issue. So to anyone else out there, if you are using Hostgator and having trouble with your forms, call them.

To Paul and Aleksej H, thank you for your help. To me a website without a form is worthless. 

Lire plus
Posté le de Larry H.
Paul M.
Paul M.
Moderator

Good to know it's now sorted, Larry...  thanks for the feedback.

Lire plus
Posté le de Paul M.