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

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

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.7.11, 4.7.12
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Core Team Funds

      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

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: