queue  27
support
Results 1 to 4 of 4

Thread: Need Assistance with Parse Error

  1. #1

    Need Assistance with Parse Error

    When installing and activating the Surreal theme through the Wordpress panel, I receive this message:

    Parse error: syntax error, unexpected 'new' (T_NEW) in /home4/wags4k0aednc/public_html/wp-content/themes/surreal/framework/php/boot.php on line 35

    I am not savvy with code and am not sure what this means or how to fix it. I just purchased this theme and hadn't touched it.

    Could I please have assistance in figuring out why this is happening and how to repair it?

    Thanks in advance!

  2. #2
    Administrator Donagh's Avatar
    Join Date
    Aug 2011
    Posts
    2,078
    This is usually caused by using PHP7 on your server instead of PHP5.6. You should check with your host. Our themes do not support PHP7

  3. #3
    Thanks for replying!

    I switched hosts and my current host is definitely running PHP 5.6 version.

    The error I'm now receiving is this, though:

    Parse error: syntax error, unexpected 'new' (T_NEW) in /home/ggrxhutv/public_html/wp-content/themes/surreal/framework/php/boot.php on line 35

    The particular line 35 code this is referring to reads as follows:

    PeGlobal::$controller =& new$peThemeClassName();

    Could you please help me troubleshoot this? I'm not very code savvy and am not sure exactly what I'm looking at.

    Thanks again, so much.

  4. #4
    Administrator Donagh's Avatar
    Join Date
    Aug 2011
    Posts
    2,078
    Hi, OK if you are using PHP5.6, then try this solution now: http://support.pixelentity.com/threa...27+%28T_NEW%29