Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.7
-
Fix Version/s: 4.7.4
-
Component/s: WordPress Integration
-
Labels:
-
Documentation Required?:None
-
Funding Source:Contributed Code
Description
As the subject says, a cron job will trigger "Constant CIVICRM_SETTINGS_PATH already defined" warnings when it bootstraps WordPress. The constant is indeed defined in 'civicrm.config.php' before being defined again in the main CiviCRM WordPress plugin file 'civicrm.php'.
Depending on your logging sensitivity, this can lead to huge log files.
The fix is to wrap the code in 'civicrm.php' in a conditional.