I made a local clone of a website that's running LIVE in order to safely work offline for a while. On every page of the local version I get a HUGE warning which says
Notice: Constant WP_POST_REVISIONS already defined in C:\xampp\htdocs\local-tutorials\wp-config.php on line 95
I guess it's been defined twice, once in
wp-config.php and once elsewhere, right? However, I've no clue where it's been defined for the second time.
wp-config.php for a second instance but no luck. I then checked the
functions.php in my theme but it doesn't contain any statement on revisions.
Googling leads mainly to rather old threads that seem to address a different issue.
I believe the error is related to a reasonably recent (< 1 year?) Wordpress update since it didn't occur previously but I'm not 100% sure on that.
Thank you in advance for any suggestions.
After searching all files, three contained
I commented out the
default-constants.php and this seems to solve the problem. I find that a bit awkward since
wp-config.php is (partly) meant to override default constants.
So I think it's strange I get this huge error when I do so. Or am I missing something?