CRM-18411 Update to 4.7.6 caused CRON error

    Details

    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      I thought I had found a fix for this issue but I was too hasty. Upon upgrading to 4.7.6, the job that runs cli.php stopped running. I found a joomla database issue, but it did not fix this issue.

      Warning: Missing argument 1 for CRM_Utils_System_Joomla::getDefaultSiteSettings(), called in /home/mysite/public_html/administrator/components/com_civicrm/civicrm/CRM/Utils/System/Joomla.php on line 687 and defined in /home/mysite/public_html/administrator/components/com_civicrm/civicrm/CRM/Utils/System/Joomla.php on line 698
      Error displaying the error page: Application Instantiation Error: Failed to start the session because headers have already been sent by "/home/mysite/public_html/administrator/components/com_civicrm/civicrm/CRM/Utils/System/Joomla.php" at line 698

        Attachments

          Activity

          [CRM-18411] Update to 4.7.6 caused CRON error
          Stephen Palmstrom added a comment -

          Fixes
          Warning: Missing argument 1 for CRM_Utils_System_Joomla::getDefaultSiteSettings(), called in D:\CiviCRM_Custom.git\joomla\administrator\components\com_civicrm\civicrm\CRM\Utils\System\Joomla.php on line 687 and defined in D:\CiviCRM_Custom.git\joomla\administrator\components\com_civicrm\civicrm\CRM\Utils\System\Joomla.php on line 698

          Stephen Palmstrom added a comment -

          I hit the same problem with joomla.php, and the upgrade failed. I was able to upgrade successfully by changing line 698 to:

          public function getDefaultSiteSettings($dir=null) {

          getDefaultSiteSettings is called with no argument in 687.

          1. This patch file was generated by NetBeans IDE
          2. It uses platform neutral UTF-8 encoding and \n newlines.
              • a/<html>Joomla.php (<b>1496c67</b>)</html>
                +++ b/<html><b>Current File</b></html>
                @@ -695,7 +695,7 @@
                /**
          • @inheritDoc
            */
          • public function getDefaultSiteSettings($dir) {
            + public function getDefaultSiteSettings($dir=null) {
            $config = CRM_Core_Config::singleton();
            $url = preg_replace(
            '|/administrator|',
          Paul Butler added a comment -

          Thank you so much!! I was REALLY getting tired of the hourly reminder of the error from CRON.

          Everything tested great and it is back up and running. Any chance this can update the Civicrm code?

          Aaron

          Jitendra Purohit added a comment -

            People

            • Assignee:
              Jitendra Purohit
              Reporter:
              Paul Butler

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h