
I recently upgraded one of my WordPress website to PHP version 7.2
Everything was working fine, but when I checked error_log file, I found many PHP error messages like:
Everything was working fine, but when I checked error_log file, I found many PHP error messages like:
You can get similar error message for other WordPress constants on PHP 7.2 like:
Solution
Solution is very simple. In your wordpress declaration code, put true inside quotation.
Example:
define( 'DISALLOW_FILE_EDIT', 'true' );
define( 'DISABLE_WP_CRON', 'true' );
I hope this article was helpful to you.
Category
- Improve Security Of WordPress Website Using Sucuri Plugin
- WordPress – Harden Security by Limited Database Permissions