PHP Parse error: syntax error, unexpected T_FUNCTION

This topic has 4 replies, 2 voices, and was last updated 8 years, 6 months ago ago by Eva Kemp

  • Avatar: Sociallyin
    Sociallyin
    Participant
    October 6, 2015 at 15:56

    Hey I was building a wordpress website on my server for a client and once I was finished with the website, I used the wordpress duplicator plugin to switch it over onto my client’s bluehost server. I ran the install and I saw that all the files were on the file manager for the website, but when I went to frankwall.com nothing would show. I contacted the hosting provider and he switched the theme for me because he said there was an error in the framework file for the royal theme. I’m not sure what happened on the move over process, but I need to fix the error so the theme shows up properly. This is the error I get:

    [05-Oct-2015 13:34:00] PHP Parse error: syntax error, unexpected T_FUNCTION in /home2/frankwal/public_html/wp-content/themes/royal/framework/theme-functions.php on line 2944

    I can provide the hosting login and wordpress login if needed. I need this done ASAP please! Thanks.

    Please, contact administrator
    for this information.
    3 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    October 6, 2015 at 16:27

    Hello,

    The error means you have low php version on a server.
    Ask your hosting provider to update it at least to 5.3 version.

    Thank you.

    Regards,
    Eva Kemp.

    Avatar: Sociallyin
    Sociallyin
    Participant
    October 6, 2015 at 16:37

    It says I have php version 5.4.24

    Avatar: Eva
    Eva Kemp
    Support staff
    October 6, 2015 at 16:49

    Hello,

    I see you have PHP version 5.2 in Woocommerce > System Status:
    http://storage3.static.itmages.com/i/15/1006/h_1444146519_1634937_aab62d2ee6.png

    So please contact your hosting provider and ask to update it to 5.3 version.

    Regards,
    Eva Kemp.

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.