Skip to main content


Solution – WordPress and PHP 7.2 Error: PHP Warning Use of undefined constant

Submitted by admin on Fri, 12/10/2021 - 22:38
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:

PHP Warning: Use of undefined constant ‘DISALLOW_FILE_EDIT’ - assumed '‘DISALLOW_FILE_EDIT’' (this will throw an Error in a future version of PHP)
Subscribe to Tutorial