Use of undefined constant ABSPATH
-
I started noticing errors in web server error log:
[29-Oct-2021 20:55:10 Europe/Moscow] PHP Warning: Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in /var/www/my-wordpress/wp-admin/includes/c lass-wp-privacy-data-export-requests-list-table.php on line 11 [29-Oct-2021 20:55:10 Europe/Moscow] PHP Warning: require_once(ABSPATHwp-admin/includes/class-wp-privacy-requests-table.php): failed to open stream: No such file or directory in /var/www/my-wordpress/wp -admin/includes/class-wp-privacy-data-export-requests-list-table.php on line 11 [29-Oct-2021 20:55:10 Europe/Moscow] PHP Fatal error: require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-privacy-requests-table.php' (include_path='.:/usr/share/php') in /var/www/my-wordpress/wp-admin/includes/class-wp-privacy-data-export-requests-list-table.php on line 11
Not sure what causes them, I have a semi-clean WP installation. I also noticed few mentions of the same error messages on the web but without any solution.
- The topic ‘Use of undefined constant ABSPATH’ is closed to new replies.