Parse error “unexpected T_FUNCTION” in theme-functions.php on activate

Solved10 replies4 participantsUpdated by Eva Kemp

  • Avatar: crucials
    crucials
    Participant

    Everytime I go to activate the theme, I get this error:

    Parse error: syntax error, unexpected T_FUNCTION in /home/stone/public_html/wp/wp-content/themes/royal-old/framework/theme-functions.php on line 2829

    Any suggestions?

    10 Answers

    Avatar: Eva
    Eva Kemp
    Participant

    Hello,

    The problem is you have low php version. Please contact your host and ask to increase it at least to 5.3 version.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: Alex
    Alex
    Participant

    Hello!
    I can’t install theme. When installing the plug-ins and wookommerce flies, after i can’t go to the plug-ins or the admin panel

    Avatar: Robert Hall
    Robert Hall
    Participant

    Hello Alex,

    Please provide us with wp-admin and FTP credentials in Private Content.

    Regards,
    Robert Hall.

    Avatar: Alex
    Alex
    Participant

    Now i install plugins and woocommerce but plugins not activated

    Please, contact administrator
    for this information.
    Avatar: Alex
    Alex
    Participant

    Now it is impossible to enter admin panel

    Avatar: Alex
    Alex
    Participant

    I did a test on a different domain. after installation woocommerce and masterslider admin panel stops working. if installed separately these 2 plugins, panel also does not work

    Avatar: Alex
    Alex
    Participant

    if I remove them from the folder, the panel is working again. What’s the problem? thnx

    Avatar: Eva
    Eva Kemp
    Participant

    Hello @Alex,

    I’ve enabled debug mode in wp-config.php file and an error has appeared on the site:
    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 82 bytes) in /home/j/jenavicrru/public_html/wp-includes/pomo/mo.php on line 235

    The problem is you don’t have enough memory on a server. Please contact your host and ask them to increase memory limit.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: Alex
    Alex
    Participant

    Thanks for the answer! And will there be enough 4Gb ?

    Avatar: Eva
    Eva Kemp
    Participant

    Hello,

    It should be enough.

    Thank you.
    Regards,
    Eva Kemp.

The issue related to '‘Parse error “unexpected T_FUNCTION” in theme-functions.php on activate’' has been successfully resolved, and the topic is now closed for further responses