{"id":6720,"date":"2022-06-08T07:00:01","date_gmt":"2022-06-07T22:00:01","guid":{"rendered":"https:\/\/the-world-star.com\/?p=6720"},"modified":"2026-11-21T12:16:11","modified_gmt":"2026-11-21T03:16:11","slug":"fixing-wordpress-site-health-critical-issues","status":"publish","type":"post","link":"https:\/\/the-world-star.com\/en\/server\/fixing-wordpress-site-health-critical-issues-6720\/","title":{"rendered":"Fixing WordPress Site Health Critical Issues"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I&#039;ve successfully resolved &quot;2 critical issues&quot; on my site.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"740\" height=\"268\" src=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/13102346\/Screenshot_20220608-094000-e1654649000964-1024x881-1.png\" alt=\"\" class=\"wp-image-1757\" srcset=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/13102346\/Screenshot_20220608-094000-e1654649000964-1024x881-1.png 740w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/13102346\/Screenshot_20220608-094000-e1654649000964-1024x881-1-300x109.png 300w\" sizes=\"auto, (max-width: 740px) 100vw, 740px\" \/><figcaption>WordPress \u30b5\u30a4\u30c8\u30b9\u30c6\u30fc\u30bf\u30b9<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u25a0 First, the second issue: &quot;Your site is set to display errors to visitors&quot;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I had left debugging enabled after troubleshooting an issue that came up. Apparently, this is a bad idea for security reasons. Note to self: always remember to revert this setting as soon as debugging is finished next time.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The option is defined in the following file located in the WordPress directory, so I need to update it.<br>\/var\/www\/html\/wp-config.php<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Change details<br>define( &#039;WP_DEBUG&#039;, false );<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u25a0 Now for the first issue: &quot;One or more required modules are missing&quot;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There are plenty of warnings including &quot;recommended&quot; ones, but let&#039;s start by fixing the &quot;required&quot; ones first.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The missing module is &#039;gd&#039;, which stands for Graphic Draw\u2014apparently an image processing library. While I haven&#039;t really had any issues without it so far, I suppose it&#039;s needed for processing images directly within WordPress. I&#039;ll go ahead and install it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The site I referenced suggested matching the module to the PHP version, so let&#039;s check the current PHP version.<br>:\/var\/www\/html$ php -v<br>PHP 7.4.3 (cli) (built: Mar 2 2022 15:36:52) ( NTS )<br>~ Omitted below ~<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I installed it using the command below. I figured the installer would automatically select the matching version, so I didn&#039;t bother manually verifying or checking it.<br>:\/var\/www\/html$ sudo apt install php7.4-gd<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Restart Apache.<br>:\/var\/www\/html$ sudo systemctl restart apache2<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Reloading the WordPress page in the browser confirmed that the error regarding required modules was gone.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"922\" height=\"782\" src=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/13102416\/Screenshot-from-2022-06-08-09-15-37-edited.png\" alt=\"\" class=\"wp-image-1758\" srcset=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/13102416\/Screenshot-from-2022-06-08-09-15-37-edited.png 922w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/13102416\/Screenshot-from-2022-06-08-09-15-37-edited-300x254.png 300w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/13102416\/Screenshot-from-2022-06-08-09-15-37-edited-768x651.png 768w\" sizes=\"auto, (max-width: 922px) 100vw, 922px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><br>\u25a0 Addressing &quot;One or more recommended modules are missing&quot;<br>It feels much better without any errors, and since hidden issues are hard to spot and the performance impact should be minimal, I decided to clean them up too.<br>Basically, it&#039;s just a matter of installing the recommended modules. However, you need to install php-curl rather than the command-line curl tool, for instance. I initially got stuck because installing the command-line version didn&#039;t resolve the issue.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">$ sudo apt install php-curl<br>The others followed the same pattern: php-dom, php-imagick, php-zip\u2014all starting with &quot;php-&quot;. I skipped specifying version numbers since it&#039;s a hassle and I figured the system would handle it automatically.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As a result, all module-related warnings have been completely resolved.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u25a0 Other &quot;Recommended Improvements&quot;<br>The remaining items are minor details. I won&#039;t go into detail here, but I knocked out most of them with a few clicks, except for &quot;Your site is not using HTTPS.&quot; Since I&#039;ve done that before and know it can be a pain, I&#039;ll tackle it another time and write a separate blog post about it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#039;ve successfully resolved &quot;2 critical issues&quot; on my site. \u25a0 First, the second issue: &quot;Your site is set to display errors to visitors&quot; I had left debugging enabled after troubleshooting an issue that came up. Apparently, this is a bad idea for security reasons. Note to self: always remember to revert this setting as soon [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":130,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"en_US","_original_post":"https:\/\/175.41.248.22\/?p=129","_lightning_design_setting":{"layout":"default"},"footnotes":""},"categories":[3],"tags":[67,68,1280],"class_list":["post-6720","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-server","tag-wordpress","tag-site-health","en-US"],"_links":{"self":[{"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/posts\/6720","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/comments?post=6720"}],"version-history":[{"count":1,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/posts\/6720\/revisions"}],"predecessor-version":[{"id":6721,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/posts\/6720\/revisions\/6721"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/media\/130"}],"wp:attachment":[{"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/media?parent=6720"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/categories?post=6720"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/tags?post=6720"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}