Support » Fixing WordPress » sitehealth is out of date
sitehealth is out of date
-
Site health is warning that my PHP version as 7.1.14 but phpinfo says my PHP version is 7.3.13. I’ve tried deactivating all my plugins and changing themes with no luck. What should I do?
The page I need help with: [log in to see the link]
-
Try putting file phpinfo.php
with content<?php phpinfo(); ?>
into your wordpress site folder
then navigate to it with your browser: https://siteurl/phpinfo.phpcheck if php version does match whatever sitehealth shows to you.
after that you can delete created file for security reasons.
Is there a php.ini file in your site’s root? It might be specifying a version of PHP other than the default.
Ialready did the PHP info thing as stated. There are several php.ini files with strings of numbers after the name (old backups?). I tried renaming them and my site didn’t crash, so then I deleted them, but still the same problem. There’s also one in /app-base/acme-client, but it looks important and I didn’t see anything in it about a version. Any other ideas?
Contact your host as they know your setup best.
I did contact my host, they said they thought it was a bug in Site Health
Not likely. Where are you seeing the phpinfo you cited in your first post?
That page exists “outside” of wordpress, if you did it like Yui suggested above.
Please paste the output of the info tab of sitehealth
### wp-core ### version: 5.3.2 site_language: en_US user_language: en_US timezone: America/New_York permalink: /%postname%/ https_status: true user_registration: 0 default_comment_status: open multisite: false user_count: 110 dotorg_communication: true ### wp-paths-sizes ### wordpress_path: /home2/programs/public_html wordpress_size: 1.02 GB (1091336800 bytes) uploads_path: /home2/programs/public_html/wp-content/uploads uploads_size: 458.23 MB (480488617 bytes) themes_path: /home2/programs/public_html/wp-content/themes themes_size: 2.19 MB (2300145 bytes) plugins_path: /home2/programs/public_html/wp-content/plugins plugins_size: 145.40 MB (152461021 bytes) database_size: 54.46 MB (57102220 bytes) total_size: 1.66 GB (1783688803 bytes) ### wp-dropins (1) ### advanced-cache.php: true ### wp-active-theme ### name: zeeDynamicPro (zeedynamicpro) version: 1.0.5 author: ThemeZee author_website: http://themezee.com parent_theme: none theme_features: post-thumbnails, automatic-feed-links, editor-style, custom-background, custom-header, menus, widgets theme_path: /home2/programs/public_html/wp-content/themes/zeedynamicpro ### wp-themes-inactive (1) ### Twenty Twenty: version: 1.1, author: the WordPress team ### wp-plugins-active (15) ### Akismet Anti-Spam: version: 4.1.3, author: Automattic CiviCRM: version: 5.22.1, author: CiviCRM LLC Favicon by RealFaviconGenerator: version: 1.3.17, author: Philippe Bernard Google Analytics Dashboard for WP (GADWP): version: 6.0.2, author: ExactMetrics MC4WP: Mailchimp for WordPress: version: 4.7.5, author: ibericode Members: version: 2.2.0, author: Justin Tadlock Really Simple CAPTCHA: version: 2.0.2, author: Takayuki Miyoshi Really Simple SSL: version: 3.2.9, author: Rogier Lankhorst, Mark Wolters Search Meter: version: 2.13.2, author: Bennett McElwee TinyMCE Advanced: version: 5.3.0, author: Andrew Ozz UpdraftPlus - Backup/Restore: version: 1.16.22, author: UpdraftPlus.Com, DavidAnderson Wordfence Security: version: 7.4.6, author: Wordfence WP-Optimize - Clean, Compress, Cache: version: 3.0.16, author: David Anderson, Ruhani Rabin, Team Updraft WP Crontrol: version: 1.7.1, author: John Blackbourn & crontributors Yoast SEO: version: 13.2, author: Team Yoast ### wp-media ### image_editor: WP_Image_Editor_GD imagick_module_version: Not available imagemagick_version: Not available gd_version: bundled (2.1.0 compatible) ghostscript_version: 8.71 ### wp-server ### server_architecture: Linux 4.14.94-164.ELK.el6.x86_64 x86_64 httpd_software: Apache php_version: 7.1.14 64bit php_sapi: cgi-fcgi max_input_variables: 1000 time_limit: 30 memory_limit: 256M max_input_time: 60 upload_max_size: 256M php_post_max_size: 260M curl_version: 7.19.7 NSS/3.44 suhosin: false imagick_availability: false htaccess_extra_rules: true ### wp-database ### extension: mysqli server_version: 5.6.41-84.1 client_version: 5.6.27-75.0 ### wp-constants ### WP_HOME: https://www.populareconomics.org WP_SITEURL: https://www.populareconomics.org WP_CONTENT_DIR: /home2/programs/public_html/wp-content WP_PLUGIN_DIR: /home2/programs/public_html/wp-content/plugins WP_MAX_MEMORY_LIMIT: 256M WP_DEBUG: false WP_DEBUG_DISPLAY: true WP_DEBUG_LOG: false SCRIPT_DEBUG: false WP_CACHE: true CONCATENATE_SCRIPTS: undefined COMPRESS_SCRIPTS: undefined COMPRESS_CSS: undefined WP_LOCAL_DEV: undefined DB_CHARSET: utf8 DB_COLLATE: undefined ### wp-filesystem ### wordpress: writable wp-content: writable uploads: writable plugins: writable themes: writable mu-plugins: writable
OHOHO I moved the phpinfo.php file inside of the wp-admin folder and low and behold 7.1.14 is showing up. I’m gonna have a chat with my host
I think the problem is the .htaccess file I have inside the wp-admin folder. It reads:
# Use PHP71 as default
AddHandler application/x-httpd-php71 .php
<IfModule mod_suphp.c>
suPHP_ConfigPath /opt/php71/lib
</IfModule>@bramtayl I can’t comment on why WordPress reports PHP 7.1.x, but I will mention that CiviCRM causes Site Health Status to report REST API and loopback issues. We’re tracking the issue here:
https://lab.civicrm.org/dev/wordpress/issues/32
tl;dr CiviCRM uses persistent sessions, therefore no obvious remedy.
@needle thanks for the link. I did stumble upon that issue (but it took me a heck of a long time to find). The loopback issues were what set me on the fix site health quest.
@bramtayl Good luck with your quest!
I solved my issue. I had to delete the .htaccess files in wp-content, wp-admin, and wp-includes, which seemed to exist solely to pin the PHP version to 7.1
- The topic ‘sitehealth is out of date’ is closed to new replies.