0

I'm getting an error when migrating from php 7.4 to 8.1. Is the reason below? but how do i fix it

PHP Warning: Use of undefined constant ‘EMPTY_TRASH_DAYS’ - assumed '‘EMPTY_TRASH_DAYS’' (this will throw an Error in a future version of PHP) /wp-config.php on line 32

2
  • or this: wordpress.stackexchange.com/questions/317562/… Commented Aug 13, 2022 at 10:56
  • Your question is a bit odd: if you're getting an error in PHP 8.1, why not show that error, rather than the warning shown in PHP 7.4? Either way, the error is fairly clear: you haven't told PHP what the value of EMPTY_TRASH_DAYS should be. Without more information about your code - i.e. where you expect that value to come from - there's not much more we can tell you. Commented Aug 13, 2022 at 12:30

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.