• Hi,

    Not sure if this is the right forum but I would like to ask assistance about upgrading our current PHP version to PHP 7. Would there be any risks or problem that we might encounter if we upgrade? I read before that we can also check the compatibility of the plug ins before upgrading. I would like to upgrade the PHP version since I’ve read that it will be faster to work in wordpress with the latest PHP but I am afraid to encounter any problems in the future cause we are already working on the site for long time.

    Thanks!
    Wilma

Viewing 2 replies - 1 through 2 (of 2 total)
  • You could break everything. I advise you to use a plugin called Compatibility Checker before doing so.

    However, this plugin may give false positives. So it is in your best interest to install your site locally first using MAMP and run it using 7.0 server and test before making the switch on your host. Also, some hosts will copy your site over to a 7 server and you can run a test there.

    Just know you can switch back but you may have to fix things that are stuck or broke.

    I installed PHP 7.2.8 locally on my PC first. The only problem I ran into was custom code I had made that was using deprecated mysql functions. Had to change all those to use mysqli functions instead. I was coming from PHP 5.6.

    I then backed up all my files and database on the webhost before changing it there.

    My webhost’s cPanel allows me to set what PHP version I use for each domain/subdomain so all I really had to change was one setting for my blog’s subdomain and could change it back easily. I will say, the PHP execution times were more or less cut in half going from 5.6.

    I didn’t use something like https://www.ads-software.com/plugins/php-compatibility-checker/ but it might be useful just to see what it says.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Upgrade to PHP 7’ is closed to new replies.