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

Joomla - Fatal Error when schedule job is executed from cron.php

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.0
    • Fix Version/s: 4.7.31
    • Component/s: None
    • Labels:
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code
    • Verified?:
      No

      Description

      When executing a schedule job, if there is a BAO object defined in the hooks/extension, executing cron job result in Fatal Error

      PHP Fatal error: Class name must be a valid object or a string in /home/****/public_html/administrator/components/com_civicrm/civicrm/Civi/API/SelectQuery.php on line 101

       

      For eg - Define a hook_civicrm_entityTypes() hook in an extension which needs to be used for a schedule job.When this job is executed from cron.php from the url - the error arises. More details in the PR.

       

      Eg extension that is affected - https://github.com/eileenmcnaughton/nz.co.fuzion.accountsync.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jitendra.purohit Jitendra Purohit
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: