Answers.Body: <p>I feel like the first thing to do is try to isolate the issue (or clarify it): did civicrm work before upgrading to Joomla 3.7, it was it civicrm that you had upgraded (what was the exact upgrade that broke the cron jobs). </p>
  
  <p>It's strange because those errors look more like a session cache issue.</p>
  
  <p>Did you try the "run all scheduled jobs" link from the jobs page?</p>
  
  <p>Are you executing with a user that had the needed permissions?</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-05-01T20:53:28.940Z
Answers.Text: Hi Randy, thanks for your reply. I upgraded Joomla AND CiviCRM at the same time so can't nail anything with that...
  
  I ran the "send emails" script from within CiviCRM and all is working right, but when I try even the web page, I get that error message. 
  
  Paul Kleingeld maybe has something: there maybe a bug in Joomla 3.7. I'll wait for an update and until then I'll send from the CiviCRM page.
  
  Thanks and have a great day!
Answers.UserDisplayName: Marc B.
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-04-30T12:25:09.790Z
Answers.LastActivityDate: 2017-04-30T12:25:09.790Z
Answers.UserDisplayName: Randy Tobias
Answers.Body: <p>I have this issue too after upgrading to Joomla 3.7.0 on a CiviCRM 4.7.18 installation that was previously working fine.
  I don't see the errors you describe, only the civi pop-up message saying cron is not running.
  Running all scheduled jobs works fine.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-05-01T12:34:08.170Z
Answers.Text: It seems that in Joomla 3.7 an issue has risen that interferes with cron; see: https://www.akeebabackup.com/home/news/1676-joomla-3-7-0-and-cli-scripts.html
Answers.UserDisplayName: Paul Kleingeld
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-05-01T20:57:39.817Z
Answers.Text: Thanks Paul. I went to see and looks like I'll wait for the update! Thanks, Marc.
Answers.UserDisplayName: Marc B.
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-05-02T00:24:30.440Z
Answers.Text: This is interesting. I skimmed the article. The thing that confuses me is that cron is a script scheduler. It really shouldn't affect how a page is rendered. If Joomla 3.7 has a bug with cron, it should affect how jobs are run. I'll have to ready up on this more closely. Either way, I hope they get it patched soon.
Answers.UserDisplayName: Randy Tobias
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-05-01T01:10:21.647Z
Answers.LastActivityDate: 2017-05-01T01:10:21.647Z
Answers.UserDisplayName: Bryan
Answers.Body: <p>To resolve the Warning: ini_set(): error, which I've experienced on my site for several updates of civiCRM I have to comment out, 'ini_set('session.use_trans_sid', '0');' in the joomla.php file. Doing this has resolved my CRON not working issue every time, except for the latest update of Joomla to 3.7 and PHP to 7.0. Now, after commenting out the above referenced line, I'm getting the following error, 'Error displaying the error page: Application Instantiation Error: Call to a member function get() on null' which I've not been able to resolve. I've posted it here as a question (<a href="https://civicrm.stackexchange.com/questions/18396/cron-job-not-working-after-civicrm-update-joomla-3-7-0-and-civicrm">Cron job not working after CIVICRM update (Joomla 3.7.0 and CIVICRM</a>) a few days ago, but have not received a response. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-05-03T17:02:55.010Z
Answers.LastActivityDate: 2017-05-03T17:02:55.010Z
Answers.UserDisplayName: CSDweb
Answers.Body: <p>It is caused by a Joomla 3.7.0 bug. See <a href="https://github.com/joomla/joomla-cms/pull/15605" rel="nofollow noreferrer">https://github.com/joomla/joomla-cms/pull/15605</a> The patch therein works OK for me (libraries/joomla/factory.php).</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-05-04T09:46:25.857Z
Answers.LastActivityDate: 2017-05-04T09:46:25.857Z
Answers.UserDisplayName: Andrew Thompson
Body: <p>we used to send emails to members with great succes before.
  Now, I've upgraded the site's Joomla and CIVICRM versions, prepared a draft email, but started to receive emails from the system about a bad configuration, her's the message:</p>
  
  <p><b>Warning</b>:  ini_set(): A session is active. You cannot change the session module's ini settings at this time in <b>/home/XXX/public_html/libraries/joomla/session/handler/joomla.php</b> on line <b>46</b><br /> <br /> <b>Fatal error</b>:  Call to a member function get() on null in <b>/home/XXX/public_html/libraries/joomla/session/handler/joomla.php</b> on line <b>71</b><br /></p>
  
  <p>I tried to execute the cron by entering the URL in a browser (wich worked before the upgrades) but I get the same error.</p>
  
  <p>So what should I look after? I tried to see by myself and looked in forums, but can't nail how to have it work out.</p>
  
  <p>Thanks for your help!</p>
  
  <p>Marc.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-01-30T05:33:49.907Z
Comments.Text: For reference working on fixes here: https://github.com/civicrm/civicrm-core/pull/11609
Comments.UserDisplayName: Matthew Wire
Tags: <civimail>
Title: Cron job not working after CIVICRM update (Joomla 3.7.0 and CIVICRM
ThreadText: # Cron job not working after CIVICRM update (Joomla 3.7.0 and CIVICRM
  
  (Asked by: username_0 on 2017-04-29)
  
  we used to send emails to members with great succes before.
  Now, I've upgraded the site's Joomla and CIVICRM versions, prepared a draft email, but started to receive emails from the system about a bad configuration, her's the message:
  
  **Warning**: ini\_set(): A session is active. You cannot change the session module's ini settings at this time in **/home/XXX/public\_html/libraries/joomla/session/handler/joomla.php** on line **46**  
     
   **Fatal error**: Call to a member function get() on null in **/home/XXX/public\_html/libraries/joomla/session/handler/joomla.php** on line **71**
  
  I tried to execute the cron by entering the URL in a browser (wich worked before the upgrades) but I get the same error.
  
  So what should I look after? I tried to see by myself and looked in forums, but can't nail how to have it work out.
  
  Thanks for your help!
  
  username_0.
  
  **Tags:** civimail
  
  > **Comments:**
  > **username_1**: For reference working on fixes here: https://github.com/civicrm/civicrm-core/pull/11609  
  
  ---
  
  ## 4 answers
  
  ### Answer by username_2 on 2017-04-30. Score: 1
  
  I feel like the first thing to do is try to isolate the issue (or clarify it): did civicrm work before upgrading to Joomla 3.7, it was it civicrm that you had upgraded (what was the exact upgrade that broke the cron jobs).
  
  It's strange because those errors look more like a session cache issue.
  
  Did you try the "run all scheduled jobs" link from the jobs page?
  
  Are you executing with a user that had the needed permissions?
  
  > **Comments:**
  > **username_0**: Hi username_2, thanks for your reply. I upgraded Joomla AND CiviCRM at the same time so can't nail anything with that...  I ran the "send emails" script from within CiviCRM and all is working right, but when I try even the web page, I get that error message.   username_4 username_4 maybe has something: there maybe a bug in Joomla 3.7. I'll wait for an update and until then I'll send from the CiviCRM page.  Thanks and have a great day!  
  
  ---
  
  ### Answer by username_3 on 2017-05-01. Score: 0
  
  I have this issue too after upgrading to Joomla 3.7.0 on a CiviCRM 4.7.18 installation that was previously working fine.
  I don't see the errors you describe, only the civi pop-up message saying cron is not running.
  Running all scheduled jobs works fine.
  
  > **Comments:**
  > **username_4**: It seems that in Joomla 3.7 an issue has risen that interferes with cron; see: https://www.akeebabackup.com/home/news/1676-joomla-3-7-0-and-cli-scripts.html  
  > **username_0**: Thanks username_4. I went to see and looks like I'll wait for the update! Thanks, username_0.  
  > **username_2**: This is interesting. I skimmed the article. The thing that confuses me is that cron is a script scheduler. It really shouldn't affect how a page is rendered. If Joomla 3.7 has a bug with cron, it should affect how jobs are run. I'll have to ready up on this more closely. Either way, I hope they get it patched soon.  
  
  ---
  
  ### Answer by username_5 on 2017-05-03. Score: 0
  
  To resolve the Warning: ini\_set(): error, which I've experienced on my site for several updates of civiCRM I have to comment out, 'ini\_set('session.use\_trans\_sid', '0');' in the joomla.php file. Doing this has resolved my CRON not working issue every time, except for the latest update of Joomla to 3.7 and PHP to 7.0. Now, after commenting out the above referenced line, I'm getting the following error, 'Error displaying the error page: Application Instantiation Error: Call to a member function get() on null' which I've not been able to resolve. I've posted it here as a question ([Cron job not working after CIVICRM update (Joomla 3.7.0 and CIVICRM](https://civicrm.stackexchange.com/questions/18396/cron-job-not-working-after-civicrm-update-joomla-3-7-0-and-civicrm)) a few days ago, but have not received a response.
  
  
  ---
  
  ### Answer by username_6 on 2017-05-04. Score: 0
  
  It is caused by a Joomla 3.7.0 bug. See <https://github.com/joomla/joomla-cms/pull/15605> The patch therein works OK for me (libraries/joomla/factory.php).
  
  
  ---
  
  