• Resolved mroulston

    (@mroulston)


    I am experiencing a puzzling issue that I’m hoping someone here might be able to shed some light on for me.

    I recently set up two new WordPress websites on the same VPS. Both WordPress installations are version 5.4.2 (installed using the same 5.4.2 zip file downloaded from www.ads-software.com). The VPS is running PHP version 7.3.19, and both websites are configured to use that PHP version.

    Today I noticed in the WordPress dashboard that one website is giving me an alert that I should upgrade to PHP 7.4 (https://imgur.com/a/TJHDtI3), but one of the websites does not give me that alert (https://imgur.com/a/FgzB5ba).

    I plan to upgrade the server to PHP 7.4 in order to make the one alert go away, but before I do that, I’d like to try figure out how I can have two identical versions of WordPress, and one say that 7.3 is the current version of PHP, and the other say that 7.4 is the current version.

    • This topic was modified 4 years, 8 months ago by mroulston.
Viewing 6 replies - 1 through 6 (of 6 total)
  • And do they both have the exact same plugins, and the exact same theme ??

    Thread Starter mroulston

    (@mroulston)

    Sorry, yes, I should have also mentioned that. Both sites have the exact same plugins installed, and are running nearly the same theme (some very minor HTML changes between the two themes, but the themes are nearly identical, including the templates and functions.php file).

    I’ve located the file on the server that appears to be testing the PHP version and delivering the alert (/wp-admin/includes/class-wp-site-health.php), and I confirmed that both files are identical in both installations of WordPress.

    I then saw that it looks like the function performing the check is wp_check_php_version();, which is located in the /wp-admin/includes/misc.php file, and I confirmed that again, both files in both installations are identical.

    So I find this very curious and I would love to pin down exactly what’s causing two sites to report different minimum recommended versions of WordPress when nearly everything between the two sites (from what I can see) is identical.

    • This reply was modified 4 years, 8 months ago by mroulston.

    Create a PHP file like this :
    <?php
    phpinfo();
    ?>

    Name it whatever.php
    Upload it to the root of each website, then load them each in your browser and do a compare.

    I mean, ultimately it doesn’t really matter.
    So personally I would only do this if you’re covid bored (which I am).

    Thread Starter mroulston

    (@mroulston)

    Yeah, I’m just trying to solve this because I’m very curious about it, not because it’s an actual problem. Anyway, both PHP info files report the correct version (7.3.19), the same as what WordPress is detecting.

    It seems to me that both sites are detecting the correct version of PHP, but one site is being told by the API at https://api.www.ads-software.com/core/serve-happy/1.0/ that PHP 7.3 is the minimum recommended version of WordPress, while the other site is being told by the same API that 7.4 is the minimum recommended version.

    Thread Starter mroulston

    (@mroulston)

    Update: After spending way more time than I’d like to admit trying to solve this mystery, I decided to just upgrade to PHP 7.4 and let it remain a mystery.

    Thanks @corrinarusso for responding and helping me out.

    At least loads of time is what most people have these days.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Two WP sites on the same VPS, same WP and PHP versions, one site gives PHP alert’ is closed to new replies.