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.
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.
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.
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.