Find Answers and Get Support › Forums › Armadon – Gaming Community WordPress Theme › Performance Optimization › HAVING CUSTOMIZE ISSUE THAT I ENABLED DEBUG BUT THE WEBSITE SUPER SLOW
- This topic has 2 replies, 2 voices, and was last updated 1 week, 6 days ago by VUSAGaming.
-
AuthorPosts
-
VUSAGamingParticipant@hunter7890
- 1 Topics
- 2 Posts
HAVING CUSTOMIZE ISSUE THAT I ENABLED DEBUG BUT THE WEBSITE SUPER SLOW
Please help me review my wp-config, 2 critical issues and debug log to see how I can fix this issue.
Issues:
2 critical issues
Critical issues are items that may have a high impact on your sites performance or security, and resolving these issues should be prioritized.Your site is set to log errors to a potentially public file
Security
Debug mode is often enabled to gather more details about an error or site failure, but may contain sensitive information which should not be available on a publicly available website.The value, WP_DEBUG_LOG, has been added to this website’s configuration file. This means any errors on the site will be written to a file which is potentially available to all users.
Learn more about debugging in WordPress.(opens in a new tab)
Page cache is not detected and the server response time is slow
Performance
Page cache enhances the speed and performance of your site by saving and serving static pages instead of calling for a page every time a user visits.Page cache is detected by looking for an active page cache plugin as well as making three requests to the homepage and looking for one or more of the following HTTP client caching response headers:
cache-control, expires, age, last-modified, etag, x-cache-enabled, x-cache-disabled, x-srcache-store-status, x-srcache-fetch-status.
Median server response time was 2,918 milliseconds. It should be less than the recommended 600 milliseconds threshold.
No client caching response headers were detected.
A page cache plugin was not detected.
Learn more about page cache(opens in a new tab)//////////////
Im using PHP 8.3, Nginx 1.24.0 and MYSQL 5.7.43
September 17, 2024 at 23:52 #48544@themodactyl- 0 Topics
- 6602 Posts
Hi VUSAGaming,
Thank you for buying our theme. We hope it will meet all your expectations! 🙂
Regarding PHP, while WordPress does support PHP 8, it’s important to note that not all plugins or themes may be fully compatible with the latest versions of PHP, such as 8.3. If you’re experiencing issues, I would recommend reverting to PHP 8.1 to see if this resolves the critical problems you’re facing. This version is currently more widely tested with WordPress and should provide better compatibility.
Here are a few steps that might help:
- Switch to PHP 8.1: Check with your hosting provider or server settings to switch to PHP 8.1, and monitor whether the issues persist.
- Debug Mode & WP_DEBUG_LOG: Debug mode can indeed slow down your site and expose sensitive information. To disable the debug log, you can update your wp-config.php file:
// Enable WP_DEBUG mode define( 'WP_DEBUG', false ); // Enable Debug logging to the /wp-content/debug.log file define( 'WP_DEBUG_LOG', false ); // Disable display of errors and warnings define( 'WP_DEBUG_DISPLAY', false ); @ini_set( 'display_errors', 0 );
Be sure that the log file isn’t publicly accessible or consider moving it to a safe directory.
- Page Cache: To address the caching issue, I’d recommend installing a caching plugin like WP Rocket. This will help improve your site’s performance by reducing server response times and allowing cached pages to be served faster.
After these changes, test the performance again and see if the critical issues are resolved.
Feel free to reach out if you need further assistance.
Best regards,
September 18, 2024 at 10:34 #48545VUSAGamingParticipant@hunter7890- 1 Topics
- 2 Posts
Thank you very much for the detailed instruction. I’ll give it a try.
Will keep you posted
September 18, 2024 at 14:46 #48546 -
AuthorPosts
You must be logged in to reply to this topic.