• Plugin was throwing this error:
    PHP Warning: Use of undefined constant EMPTY_TRASH_DAYS – assumed ‘EMPTY_TRASH_DAYS’ (this will throw an Error in a future version of PHP) in /home/xxxxxxxx/public_html/wp/wp-content/plugins/generalstats/generalstats.php on line 434

    After some messing around (!) discovered that simply explicitly defining EMPTY_TRASH_DAYS in wp-config.php stops the error.

    There’s probably a more elegant way, but this seems to work OK.

  • The topic ‘PHP error ‘Use of undefined constant’ workaround’ is closed to new replies.