Got the following error today, was not showing prior to todays login:
WARNING: /home/thehostingguy/analytics.thehostingguy.com/plugins/Feedback/Feedback.php(117): Warning - Use of undefined constant PIWIK_TEST_MODE - assumed ‘PIWIK_TEST_MODE’ (this will throw an Error in a future version of PHP) - Matomo 3.12.0-b1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
This is poor programming practice.
You should precede the return statement with an IF like so:
if (!defined(‘PIWIK_TEST_MODE’)) return false;
and then remove the test for PIWIK_TEST_MODE being defined from the return statement. That way, you’re not dependent on the execution of the implied IF statement being always left-to-right.