Get your WordPress on PHP 7.0 now!

We have just released a new version of our WordPress plugin 3.2.1 the SiteGround Optimizer, which allows you to move to PHP 7.0 with a click.  We encourage all SiteGround customers to utilize this great option and make their WordPress installation run on PHP 7.0 now. PHP 7.0 has been available on our servers for over a year and it is high time that all of our customers take full advantage of the considerable performance boost it provides.

How does it work?

First, you need to install SiteGround Optimizer 3.2.1 or higher version to your WordPress, or simply update it, if you already have an older version of the plugin. Then go to the PHP Config section and see which PHP version are you currently using. If it is below PHP 7.0 you will have an option to start an automated check, which will scan all your active themes and plugins and verify if they are PHP 7.0 compatible.

If everything is compatible you will be able to update your PHP version with a click.

If there are themes and plugins that might not be compatible with PHP 7, you will see them listed on the screen. We recommend that you update any such theme or plugin with a newer available version and redo the check again. In case updating is not an option you may consider disabling unused plugins too.

Once your site uses PHP 7.0 or higher, you will be able to manually switch to other PHP versions too. Right now, the recommended version is 7.0 but you can try 7.1 too right away, as it is available on our servers too. We also give you the option to switch back to previous PHP versions in case you notice issues that were not detected by the plugin check.

The SiteGround Optimizer checks whether your site runs on the recommended PHP version. Right now that’s 7.0 but in the future, we will switch to 7.1, 7.2, etc. That would be a constant effort that we’ve committed to do in order to keep SiteGround customers on the latest, safest and fastest PHP version.

Access email sent!

Sign Up For
More Awesome Content!

Subscribe to receive our monthly newsletters with the latest helpful content and offers from SiteGround.

Thanks!

Please check your email to confirm your subscription.

author avatar

Hristo Pandjarov

WordPress Innovations Director

Enthusiastic about all Open Source applications you can think of, but mostly about WordPress. Add a pinch of love for web design, new technologies, search engine optimisation and you are pretty much there!

Comments ( 70 )

author avatar

Niels Teunis

Mar 16, 2017

I have one plugin that seems incompatible with PHP7. But the plugin provider (Cornerstone from X-Theme) says that this is a false negative. Nevertheless, I cannot bypass it in SGOptimizer. Or do you have a way to upgrade to PHP7 anyways and take the risk with this plugin? Thanks, Niels

Reply
author avatar

Hristo Pandjarov Siteground Team

Mar 17, 2017

You can always change the PHP Version manually from the PHP Version Manager tool in cPanel or by following the instructions in this article: https://www.siteground.com/kb/how_to_have_different_php_versions/ As to false-positive results, we maintain whitelist of checks and plugins/themes so once confirmed, we will exclude that one from the checks.

Reply
author avatar

Dawn Krueger

Mar 17, 2017

Cornerstone is still coming up as incompatible. Hasn't anyone confirmed that this should be whitelisted?

Reply
author avatar

Hristo Pandjarov Siteground Team

Mar 20, 2017

If you're certain it works fine, you can switch to PHP 7 manually from cPanel - PHP Version Manager :)

Reply
author avatar

Dawn Krueger

Mar 17, 2017

FYI - I upgraded several X themes with Cornerstone to PHP 7 today manually and no conflicts arose.

Reply
author avatar

Natalia

Mar 19, 2017

You can probably whitelist Voice theme, they've confirmed that their theme is compatible with PHP 7.0 (I haven't tried yet however ))

Reply
author avatar

Hristo Pandjarov Siteground Team

Mar 20, 2017

Thanks for reporting this!

Reply
author avatar

Detrina Kofroth

Mar 16, 2017

I am getting an incompatible for Loginizer but I can not find how to disable it or deactivate it on my network

Reply
author avatar

Hristo Pandjarov Siteground Team

Mar 17, 2017

If you're on Multisite, maybe you need to check whether it's a plugin installed per user or globally.

Reply
author avatar

Craig

Mar 16, 2017

I'm testing this out right now. Since I have three sites on my VPS, do I need to run the test on all three sites before clicking upgrade?

Reply
author avatar

Hristo Pandjarov Siteground Team

Mar 17, 2017

If you want to upgrade through the plugin - yes. You can always change them manually though: https://www.siteground.com/kb/how_to_have_different_php_versions/

Reply
author avatar

Craig

Mar 16, 2017

Also, just to confirm, since I don't see it in the notes anywhere... Clicking 'upgrade' adds a line to the .htaccess file, correct?

Reply
author avatar

Hristo Pandjarov Siteground Team

Mar 17, 2017

Yes

Reply
author avatar

John Cope

Mar 16, 2017

I'm just blow away by how pro-active you guys are. Awsome!

Reply
author avatar

Sylvia

Mar 17, 2017

I followed your directions and pressed the "check compatibility" button. How long does it take? It has been over 40 minutes...

Reply
author avatar

Hristo Pandjarov Siteground Team

Mar 17, 2017

Maybe it has stalled because some plugin you have activated on your account. Although rare, such things happen. Please, open a ticket in your Help Desk and we will check it in details!

Reply
author avatar

Kim Walling

Mar 17, 2017

Where you say above 'Then go to the PHP Config section' is this in the file manager of the cpanel or is it in the front end of WordPress?

Reply
author avatar

Hristo Pandjarov Siteground Team

Mar 17, 2017

In the Wordpress Backend, you can go to SG Optimizer -> PHP Config and do the checks and the switch to PHP 7.0.

Reply
author avatar

Gwen Harrison

Mar 17, 2017

OK I logged into my Wordpress Admin panel and I'm just not finding any of this there. So it must be in the Siteground Control Panel?

Reply
author avatar

Hristo Pandjarov Siteground Team

Mar 20, 2017

You need to have the SG Optimizer plugin installed and activated.

Reply
author avatar

Norio "The Tech Assassin" De Sousa

Mar 17, 2017

Great feature, love it! It is, however, detecting a false-positive. In this file (Peformag Theme from Thrive Themes): — performag/partials/category-meta.php It's detecting this error on line 12: — Using 'break' outside of a loop or switch structure is invalid and will throw a fatal error since PHP 7.0 But if you look at the code, the break *is* within a loop. (foreach + endforeach) Hope this helps :) Sorry if the code is badly formatted. No idea what you support in your comments.

Reply
author avatar

Hristo Pandjarov Siteground Team

Mar 17, 2017

Thanks for reporting that, will look into it!

Reply
author avatar

AndyR

Mar 17, 2017

Hi Hristo, The php 7 check throws the following errors with pinpoint booking system: 57 | ERROR | Global with variable variables is not allowed since PHP 7.0 159 | ERROR | Global with variable variables is not allowed since PHP 7.0 235 | ERROR | Global with variable variables is not allowed since PHP 7.0 Since I have more than one site operating with this plugin I'd value your advice on what to do next!

Reply
author avatar

Hristo Pandjarov Siteground Team

Mar 20, 2017

I would recommend that you contact the plugin developers regarding this matter. They can either update the plugin or tell you how to proceed about the PHP switch. Note, that the plugin is just for convenience, you can always manually change the PHP version from cPanel - PHP Version Manager.

Reply
author avatar

Stefan

Mar 17, 2017

I have a problem with All In One Favicon plugin. Do you know the workaround?

Reply
author avatar

Hristo Pandjarov Siteground Team

Mar 20, 2017

I would recommend contacting the plugin developers to get more info about the error. Note, that you can always change the PHP version manually from the PHP Version Manager tool in cPanel.

Reply
author avatar

Clive Sherlock

Mar 17, 2017

(1) I have the latest version of the theme Thesis 2. What can I do about the following? Can I still transfer to PHP 7? If not, (2) Will changing to PHP 7 affect the login to the site?

Reply
author avatar

Hristo Pandjarov Siteground Team

Mar 20, 2017

Please, contact the plugin or theme provider for further assistance on that matter.

Reply
author avatar

colin

Mar 17, 2017

Well, my entire theme (High-end) is incompatible: "WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7" Same error for Layerslider WP. For the Revolution Slider: "ERROR | preg_replace() - /e modifier is deprecated since PHP 5.5 and removed since PHP 7.0" I paid $50 for this theme. I'm not techie. So it looks like I won't be upgrading. Either that or buy a new theme and cross my fingers that it is compatible, I guess. Ah boy.

Reply
author avatar

Hristo Pandjarov Siteground Team

Mar 20, 2017

Most paid themes/plugins provide support. You should contact them for more information about how to proceed. Some themes have backwards-compatibility code that triggers such warnings and if that's the case, you can switch your site manually from cPanel - PHP Version Manager.

Reply
author avatar

Ryan

Mar 17, 2017

Hi, after running the checker I'm getting an error for the WordPress plugin - Popup Maker I reached out to the devs because the plugin was just updated yesterday. Their response - "Rest assured, we are 100% compatible with PHP7. These are just warnings and that extra stuff is there for backwards compatibility in case a user has an older version of PHP." Do I just disable the plugin and go forward with the update, then re-enable the plugin after or will this cause issues? Thanks!

Reply
author avatar

Hristo Pandjarov Siteground Team

Mar 20, 2017

You can simply switch to PHP 7 from the PHP Version Manager tool in cPanel.

Reply
author avatar

Vern

Mar 17, 2017

Hi there Hristo. I get this error on my backup site : FILE: /home/g2b93042/public_html/backupbridge/wp-content/plugins/js_composer/js_composer.php -------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE -------------------------------------------------------------------------------------------- 220 | ERROR | Visibility for magic method __sleep must be public. Found: private -------------------------------------------------------------------------------------------- It looks like it does not run with Visual Composer. any clues please. Thanks in advance

Reply
author avatar

Hristo Pandjarov Siteground Team

Mar 20, 2017

Please, update VC to the latest version which for sure is PHP 7 compatible. Once you do that, you can manually switch to PHP7 :)

Reply
author avatar

Larry

Mar 18, 2017

I installed this and it didn't even give me a chance to see if my site was compatible. I clicked on PHP config and it says: Site is running on PHP 7.0 which is our recommended PHP version or higher. I went to cpanel and it shows: Server version: 5.6.28-76.1-log - Percona Server (GPL), Release 76.1, Revision 5759e76 So, whats going on? All I did was install it. Why isn't there anything in your instructions about this, like: If it doesn't ask to see if your compatible and shows PHP7.0 in the top box.....do this or don't do this. C'mon, how about a little effort here?

Reply
author avatar

Larry

Mar 18, 2017

Since I couldn't edit my last comment....Why did I have to install this plugin if my site is already running on PHP 7.0?

Reply
author avatar

Hristo Pandjarov Siteground Team

Mar 20, 2017

If you're using SG Optimizer just for that - you don't. If your site is already working on PHP 7.0 there's no point checking for compatibility :)

Reply
author avatar

Eddy

Mar 18, 2017

What are the specific benefits of switching? A performance boost is mentioned, but what does that equate to?

Reply
author avatar

Hristo Pandjarov Siteground Team

Mar 20, 2017

There are multiple articles about the performance improvements in PHP7. It's dramatically faster than the 5 versions. Of course, the effect on each site is different depending on the overall code quality. In addition, PHP7 comes with opcache integrated in it which is great performance boost.

Reply
author avatar

Eduardo

Mar 18, 2017

When checking for PHP 7.0 compatibility, I received a notification that the Layers plugin is incompatible with it, so I manually updated the PHP version in cPanel. But I keep receiving the notification from SG Optimizer that I am not running on recommended PHP version and when checking the details, it still has the Layers error, which is below: FILE: /home/bike1236/public_html/blog/wp-content/themes/layerswp-master/core/widgets/modules/post.php ----------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ----------------------------------------------------------------------------------------------------- 15 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7. ----------------------------------------------------------------------------------------------------- FILE: /home/bike1236/public_html/blog/wp-content/themes/layerswp-master/core/widgets/modules/content.php -------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE -------------------------------------------------------------------------------------------------------- 15 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7. -------------------------------------------------------------------------------------------------------- FILE: /home/bike1236/public_html/blog/wp-content/themes/layerswp-master/core/widgets/modules/contact.php -------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE -------------------------------------------------------------------------------------------------------- 15 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7. -------------------------------------------------------------------------------------------------------- FILE: /home/bike1236/public_html/blog/wp-content/themes/layerswp-master/core/widgets/modules/slider.php ------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------- 15 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7. ------------------------------------------------------------------------------------------------------- Shold I be worried with these errors?

Reply
author avatar

Hristo Pandjarov Siteground Team

Mar 20, 2017

If you click on the Dismiss notice tab, it will not show again. However, make sure that your running on PHP 7 by checking the PHP Version Manager tool in cPanel.

Reply
author avatar

Katherine Wakefield

Mar 19, 2017

Gave the plugin a try. Installed and hit test. Never did anything, just kept me waiting for 20 minutes. Went into cPanel and upgraded PHP to 7.x just fine.

Reply
author avatar

Hristo Pandjarov Siteground Team

Mar 20, 2017

Maybe it has stalled on some of the checks. Glad everything works on PHP 7 though!

Reply
author avatar

Philip

Mar 19, 2017

I switched from GoDaddy to SiteGround earlier this year and I'm seriously impressed. Quick WordPress upgrades, https, Cloudflare and now easy switch between versions of PHP. Keep it coming!!!

Reply
author avatar

John H. Thompson

Mar 22, 2017

Why should I start my new site on PHP 7? Where can I find a "Donate" Button template?

Reply
author avatar

Angelina Micheva

Mar 23, 2017

The main advantage of PHP 7 is the performance boost it will provide for your website. You can find more details on the benefits of using PHP 7 in our blog post when we added it on our servers: https://www.siteground.com/blog/php-7-with-opcache/. There are already multiple articles and benchmark tests showing speed improvements compared with results of sites using previous 5 versions. In addition, it is a better choice for security reasons because PHP 7 is relatively new version and it will be supported for a longer period of time in terms of bug fixes, security patches, and maintenance updates. In case you need a "Donate" button for a WordPress site you can check the plugin directory for a solution: https://wordpress.org/plugins/

Reply
author avatar

John H. Thompson

Mar 24, 2017

Thanks Angelina for your excellent reply. I tested my site for compatibility with the SiteGround PHP 7 and found that all had no errors but several had from 1 - 4 WARNINGS AFFECTING 1-4 LINES. Here is a sample: FILE: /home/bstumc50/public_html/wp-content/plugins/bloom/subscription/createsend-php-4.0.2/class/serialisation.php ------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES ------------------------------------------------------------------------------------------------------------------- 19 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7. 50 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7. 62 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7. 102 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7. Does this mean that I can go ahead and use PHP 7? I learned that there are many choices of Donate Buttons so I am I am looking at the best and easiest choice for me.

Reply
author avatar

Hristo Pandjarov Siteground Team

Mar 25, 2017

As far as I can see, that code is for backwards compatibility. If that's the only warnings you're getting, you should be safe switching to PHP 7.0 directly from the PHP Manager tool in cPanel.

Reply
author avatar

kenny

Mar 27, 2018

These seem to be the same type of warnings that are coming up for buddypress, when using the compatability tester for php 7.1. today. On the buddypress forums they state that buddypress is php 7.1. compatible. I am wondering if buddypress is one of the plugins that should also have been whitelisted (as per the backup plugin "updraftplus" that you mentioned today?

Reply
author avatar

Hristo Pandjarov Siteground Team

Mar 29, 2018

Well, you're an early adopter for sure :) I've updated our whitelist so no false-positives should occur anymore. Try again and it should go smoothly!

Reply
author avatar

Paul Miles

Apr 28, 2017

I got the comment after the check on one site that the child theme (same as parent) needed to be updated. But if I update the child theme, surely the modifications I've made to the look of the site will be lost, won't they? (Which is the whole point of having a child theme!) Any suggestions? The theme is from Elegant Themes - Chameleon.

Reply
author avatar

Hristo Pandjarov Siteground Team

Apr 29, 2017

Yes, the idea is generally to update the parent theme while keeping all your modifications in the child one intact. However, if there's old code in the child theme that would trigger warnings. I would recommend checking the difference and updating only what needs to be updated.

Reply
author avatar

Daisy

May 15, 2017

I have Genesis Framework on my website and I´m getting the following warnings: FOUND 0 ERRORS AND 6 WARNINGS AFFECTING 6 LINES --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 559 | WARNING | Function name "__genesis_return_content_sidebar" is discouraged; PHP has reserved all method names with a double underscore prefix for future use 574 | WARNING | Function name "__genesis_return_sidebar_content" is discouraged; PHP has reserved all method names with a double underscore prefix for future use 589 | WARNING | Function name "__genesis_return_content_sidebar_sidebar" is discouraged; PHP has reserved all method names with a double underscore prefix for future use 604 | WARNING | Function name "__genesis_return_sidebar_sidebar_content" is discouraged; PHP has reserved all method names with a double underscore prefix for future use 619 | WARNING | Function name "__genesis_return_sidebar_content_sidebar" is discouraged; PHP has reserved all method names with a double underscore prefix for future use 634 | WARNING | Function name "__genesis_return_full_width_content" is discouraged; PHP has reserved all method names with a double underscore prefix for future use --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Do you know if Genesis is compatible with php7 or not?

Reply
author avatar

Angelina Micheva

May 15, 2017

Hi Daisy, The errors you are reporting are defined in the Genesis framework. We can suggest you contact their support team directly to check for tips on troubleshooting them. You can also ask them if Genesis is compatible with PHP7. It's quite possible other users have already experienced the same issue, so they can advise you on a workaround to resolve it.

Reply
author avatar

Graham Porter

May 18, 2017

Is the SG optimizer plugin compatible with multisite? If so do I need to run the compatibilty - Switch to PHP7 on each site?

Reply
author avatar

Hristo Pandjarov Siteground Team

May 22, 2017

Not yet but we're working to make a propper MS compatibility in the upcoming updates. Depending on your site structure, you can manually change the PHP versions of all of your sites or single ones using the PHP Version Manager tool in your cPanel.

Reply
author avatar

Sara

Sep 14, 2017

I have Solo Pines theme Sprout and Spoon and it's saying PHP 7.0 is not compatible with Sprout and Spoon. Should this be white listed as well, or is my theme just not compatible? Or is there a way around this? Thanks!

Reply
author avatar

Angelina Micheva

Sep 15, 2017

Hi Sara, Please note that the WordPress theme you are using is third-party software and we are not able to troubleshoot questions regarding their operation in detail. We suggest you contact the Solo Pines theme support to check on the PHP7 compatibility issue. It is possible that other users have raised the same question and their technical team has come up with solutions for this.

Reply
author avatar

Sofia Pacifico Reis

Mar 09, 2018

I have upgraded to version 7.0 PHP and now I have the following errors on my subdomain site: #Security edit It is coming up weird on the header. What shall I do please. Thank you. Sofia

Reply
author avatar

Hristo Pandjarov Siteground Team

Mar 12, 2018

Please, post a ticket in your Help Desk, my colleagues will assist you further.

Reply
author avatar

Dr Craig Murray

Jun 16, 2018

My site is not the fancy but it has been over 20 minutes stating "Updating PHP Version." You do not show what a final statement is supposed to look like. Also, I receive two php files, plugins.php and admin.php, what am I supposed to do with them?

Reply
author avatar

Angelina Micheva

Jun 18, 2018

Hi Craig, We were not able to replicate the issue you are reporting. We can suggest testing again the update. An alternative way to do this is via cPanel --> PHP Version Manager. We recommend you contact our team directly via the HelpDesk system and describe your process so we can help with sorting out the issue. Regards!

Reply
author avatar

Cesar B

Oct 17, 2018

Hi, There is a false positive reported for Gravity Forms plugin, I believe one is actually a False Positive and the other one will disappear when the module gets updated. I contacted the developers with the results obtained from SG Optimizer and this is their response: ========== Hi, Gravity Forms is compatible with PHP 7.1 and 7.2. The HTTP_RAW_POST_DATA alert is a false positive, that line is not used with modern versions of PHP, it's only there for backwards compatibility with older versions and is only used by the web api. The mcrypt functions alert can also be ignored, that is legacy code which only remains for a short time for backwards compatibility with older add-ons.

Reply
author avatar

Hristo Pandjarov Siteground Team

Oct 18, 2018

Thanks for reporting this, I will whitelist Gravity Forms as soon as possible so it won't trigger that message.

Reply
author avatar

nava

Oct 27, 2018

after installing the sg optimiser, my website is not loading anymore, And any click just download a php file , whats wrong

Reply
author avatar

Hristo Pandjarov Siteground Team

Oct 29, 2018

Please, open a ticket in your Help Desk and my colleagues will have this sorted out in no time :)

Reply
author avatar

yvonne van Leeuwen

Jul 31, 2019

I have all my sites on the managed PHP version, yet all my wp dashboards show "at a glance" that I'm running WP 5.2.2 . Why is this please? I've been into my cpanel and double checked the php version manager, and they are all set to 7.1.1 at present. Why does the dashboard conflict?

Reply
author avatar

Hristo Pandjarov Siteground Team

Jul 31, 2019

Please, open a tiket in your Help Desk and my colleagues will check the case for you.

Reply
author avatar

Maged Mohamed

Jan 02, 2020

I can't find this php compatibility checker in the plugin settings.

Reply
author avatar

Marina Yordanova Siteground Team

Jan 02, 2020

We have released several newer versions of the SG Optimizer plugin since this article was published in 2017. Please check out this tutorial for up-to-date information https://www.siteground.com/tutorials/wordpress/sg-optimizer/environment-optimization/ and take a look specifically at the Environment Optimization tab in order to find the Compatibility checker.

Reply

Start discussion

Related Posts