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

Cron jobs on Joomla triggers "Use of undefined constant JDEBUG"

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 4.7.11, 4.7.12
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      I run cron jobs using 'cd $CIVI_ROOT; $PHP bin/cli.php ...'

      On Joomla that triggers mails to webmaster saying

      {{PHP Notice: Use of undefined constant JDEBUG - assumed 'JDEBUG' in /var/www/events/libraries/joomla/access/access.php on line 602
      PHP Notice: Use of undefined constant JDEBUG - assumed 'JDEBUG' in /var/www/events/libraries/joomla/access/access.php on line 673
      PHP Notice: Use of undefined constant JDEBUG - assumed 'JDEBUG' in /var/www/events/libraries/joomla/access/access.php on line 602
      PHP Notice: Use of undefined constant JDEBUG - assumed 'JDEBUG' in /var/www/events/libraries/joomla/access/access.php on line 673
      PHP Notice: Use of undefined constant JDEBUG - assumed 'JDEBUG' in /var/www/events/libraries/joomla/access/access.php on line 211
      PHP Notice: Use of undefined constant JDEBUG - assumed 'JDEBUG' in /var/www/events/libraries/joomla/access/access.php on line 217}}

      This can be remedied by the insertion of the following line at the end of cron.php:

      {{define('JDEBUG', false);
      }}

      I have not created a patch because I don't know what the correct way to handle this platform specific change is. But the change is trivial so consider this contributed code

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              thoni56 Thomas Nilefalk
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: