• Resolved nicol3

    (@nicol3)


    Hi

    I get the following error after activating the plugin:

    Parse error: syntax error, unexpected T_STRING in /public_html/wp-content/plugins/wp-staging/wp-staging.php on line 68

    Line 68 is $wpStaging = \WPStaging\WPStaging::getInstance();

    My site is running on PHP version 5.4.45

    Could you please help to resolve this problem? Thank you.

    Nicole

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Rene Hermenau

    (@renehermi)

    Hi Nicole,

    it looks like your site is running php 5.2.
    This error indicates your php version does not support namespaces.

    Please check out the php version in: tools>system info: http://take.ms/8hUAA

    Is it really php 5.4.45?

    Thread Starter nicol3

    (@nicol3)

    Hi Rene

    In the cpanel, here are some details listed under “General Server Info”:

    Apache Version 2.2.34
    PHP Version 5.4.45
    MySQL Version 5.5.51-38.2

    1. Should I double check with my hosting company?
    2. What is the php version that supports the wp staging plugin?

    Thank you.

    Plugin Author Rene Hermenau

    (@renehermi)

    Please check out the php version in: tools>system info: http://take.ms/8hUAA

    It could be that cpanel is showing wrong data.

    WP Staging runs with php 5.3 and later.

    Thread Starter nicol3

    (@nicol3)

    Plugin could not be activated because it triggered a fatal error (ie. parse error)

    Since plugin could not be activated, I can’t do as you advised –> “Please check out the php version in: tools>system info: http://take.ms/8hUAA”
    There’s no such option available.

    Thread Starter nicol3

    (@nicol3)

    I just checked with my hosting company and they confirmed that the site is running on PHP version 5.4.

    Plugin Author Rene Hermenau

    (@renehermi)

    You are right. That’s not possible – my fault.

    Before I proceed I need to make 100% sure the php version you are using.

    Please create a file with the following input:

    <?php echo phpinfo();

    Save it as info.php and upload it with ftp to your website and open it by visiting yoursite.com/info.php

    Than please send me a link to your site to [email protected]

    Do not post the link to that page here! These informations should not be shared to the public for the sake of security purposes.

    Plugin Author Rene Hermenau

    (@renehermi)

    I can also assist you with doing the steps so you can send me a mail either way.

    Thread Starter nicol3

    (@nicol3)

    I finally activated the plugin!

    The system’s default version of PHP is 5.4 but it was configured to use PHP 5.2, hence the parse error, as you explained.
    I configured it to use PHP 5.4 but my site went completely down and showing error 500. Then I set it to PHP 5.3 and managed to activate the plugin without parse error.

    Let’s see if I can create a staging site and test plugin updates and a theme change.

    Thank you so much for your assistance, Rene.

    Plugin Author Rene Hermenau

    (@renehermi)

    You are welcome:-)

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Parse Error After Plugin Activation’ is closed to new replies.