Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-18175

Cron triggers "Constant CIVICRM_SETTINGS_PATH already defined" warning

    Details

    • 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.

        Attachments

          Activity

            People

            • Assignee:
              haystack Christian Wach
              Reporter:
              haystack Christian Wach
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: