php 8.0: Warning: Constant ABSPATH already defined in..
-
Hello,
With PHP 8.0.2, WordPress doesn’t really work (newest, 5.7 version). For example, if would upload a template (totally new WordPress install, nothing changed), I get the following error:
‘There has been a critical error on your website, Please check your site admin email for instructions’
And template is not uploaded (of course I know that I could do it manually).Also, emails are not sent from WordPress. And who knows what other problems there are.
The background of all these problems are these error messages from php_error.log:
PHP Warning: Constant ABSPATH already defined in /web/**/**/blog/wp-config.php on line 23
I get these error messages also from a site with PHP 8.0, which works for years. So 2 totally new sites doesn’t work too well, and also a third send these messages.
My hosting provider wrote me, that this is a WordPress problem, not a hosting provider problem (but maybe it is, because I didn’t find that anyone else had this problem, with warning, I only found with notice).
Thanks a lot!
- The topic ‘php 8.0: Warning: Constant ABSPATH already defined in..’ is closed to new replies.