Answers.Body: <p>I ran an update to Joomla 3.4.8 and it resolved the issue. There must have been a bug in Joomla 3.4.7 which caused the cron issue.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-06T09:45:58.330Z
Answers.Text: [CRM-17744](https://issues.civicrm.org/jira/browse/CRM-17744), [Joomla #8755](https://issues.joomla.org/tracker/joomla-cms/8755).
Answers.UserDisplayName: Chris Burgess
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-06T04:10:55.430Z
Answers.LastActivityDate: 2016-01-06T04:10:55.430Z
Answers.UserDisplayName: undrwatrdan
Body: <p>I am running Joomla 3.4.7 and CiviCRM 4.6.9.  I am getting the following error when my cron runs automatically.  </p>
  
  <pre><code>--2016-01-05 08:00:01--  http://www.sitename.org/administrator/components/com_civicrm/civicrm/bin/cron.php?name=loginid&amp;pass=password&amp;key=c12121212121212121212121
  Resolving www.sitename.org... 188.143.132.180 Connecting to www.sitename.org|188.143.132.180|:80... connected.
  HTTP request sent, awaiting response... 500 Internal Server Error
  2016-01-05 08:00:01 ERROR 500: Internal Server Error.
  </code></pre>
  
  <p>If I run the cron manually, I get the following 500 Server Error:</p>
  
  <pre><code>The website encountered an error while retrieving http://www.divingrebels.org/administrator/components/com_civicrm/civicrm/bin/cron.php?name=loginid&amp;pass=password&amp;key=c121121212121212121212121. It may be down for maintenance or configured incorrectly.
  </code></pre>
  
  <p>The cron which is running in CPanel is a wget cron.</p>
  
  <p>I contacted my webhost and they sent me the log which shows the cron running, but the email I get after the cron runs shows the 500 Server Error.  I have a 100 emails per hour limit and have the mailer batch limit in CiviCRM set to 99.</p>
  
  <p>I have enabled debugging and backtrace in CiviCRM, but have no idea where to find the info or how to read it.  Any help would be greatly appreciated.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-01-05T14:56:52.040Z
Comments.Text: What exactly was the 500 Server Error as shown in the log files?
Comments.UserDisplayName: Catorghans
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-01-05T15:44:17.213Z
Comments.Text: There is no error in the log file which my webhost sent.
  According to the server logs, the cron command is working fine, please see below:
  
  ###
  Jan 4 21:00:01 server19 CROND[586069]: (divingr) CMD (wget 'http://www.sitename.org/administrator/components/com_civicrm/civicrm/bin/cron.php?name=loginid&pass=password&key=c121f216120e4362040e110a1f92db58' >/dev/null 2>&1)
  Jan 4 22:00:01 server19 CROND[1011811]: (divingr) CMD (wget 'http://www.sitename.org/administrator/components/com_civicrm/civicrm/bin/cron.php?name=loginid&pass=password&key=c121f216120e4362040e110a1f92db58' >/dev/null 2>&1)
Comments.UserDisplayName: undrwatrdan
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-01-05T15:49:14.457Z
Comments.Text: However, the email I get after the cron runs shows the 500 server error
  --2016-01-05 09:45:01--  http://www.sitename.org/administrator/components/com_civicrm/civicrm/bin/cron.php?name=loginid&pass=password&key=c121f216120e4362040e110a1f92db58
  Resolving www.divingrebels.org... 198.143.132.130 Connecting to www.divingrebels.org|198.143.132.130|:80... connected.
  HTTP request sent, awaiting response... 500 Internal Server Error
  2016-01-05 09:45:02 ERROR 500: Internal Server Error.
Comments.UserDisplayName: undrwatrdan
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-01-05T16:00:55.790Z
Comments.Text: ok, those seem access logs and not error logs. If the webhost could give an error log, that would help. Can you check if you can find an error in the CiviCRM log file? That should for Joomla be in a file in <joomla-root>/media/civicrm//civicrm/ConfigAndLog/
Comments.UserDisplayName: Catorghans
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-01-05T16:07:51.213Z
Comments.Text: I will ask the webhost for an error log.  The latest log file I find in the path you provided is 12/20/2015 which is before this issue started occurring.
Comments.UserDisplayName: undrwatrdan
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-01-05T16:57:39.557Z
Comments.Text: This is the response I got from my webhost:
  According to the server's logs the cron is executing as it should
  And message you got means the command has been executed 
  
  However the result of this command is "500 Internal Server Error"
  
  Are you sure you need to use wget?
  
  Perhaps this should be executed as curl?
  
  curl 'http://www.divingrebels.org/administrator/components/com_civicrm/civicrm/bin/cron.php?name=loginid&pass=password&key=c121f216120e4362040e110a1f92db58'
  
  Please contact your web developer for the best assistance
Comments.UserDisplayName: undrwatrdan
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-01-05T17:20:36.247Z
Comments.Text: Curl doesn't resolve the issue
  
  <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head>
  <title>403 Forbidden</title>
  </head><body>
  <h1>Forbidden</h1>
  <p>You don't have permission to access /administrator/components/com_civicrm/civicrm/bin/cron.php
  on this server.<br />
  </p>
  <p>Additionally, a 403 Forbidden
  error was encountered while trying to use an ErrorDocument to handle the request.</p> </body></html>
Comments.UserDisplayName: undrwatrdan
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-01-05T19:15:14.953Z
Comments.Text: Please read http://civicrm.stackexchange.com/questions/6399/how-do-i-debug-civicrm-when-i-hit-a-blank-page-white-screen-fatal-error/6400#6400 for tips on finding your error/debug logs. This varies per hosting environment. I don't think `curl` vs `wget` is your issue since you're seeing a 500 error from the server.
Comments.UserDisplayName: Chris Burgess
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-01-06T04:10:08.073Z
Comments.Text: I ran an update to Joomla 3.4.8 and it resolved the issue.  There must have been a bug in Joomla 3.4.7 which caused the cron issue.  I appreciate the effort to resolve the issue.  This issue can be closed.
Comments.UserDisplayName: undrwatrdan
Tags: <civimail><joomla><cron-job>
Title: Server Error 500 when cron runs
ThreadText: # Server Error 500 when cron runs
  
  (Asked by: username_0 on 2016-01-05)
  
  I am running Joomla 3.4.7 and CiviCRM 4.6.9. I am getting the following error when my cron runs automatically.
  
  ```
  --2016-01-05 08:00:01--  http://www.sitename.org/administrator/components/com_civicrm/civicrm/bin/cron.php?name=loginid&pass=password&key=c12121212121212121212121
  Resolving www.sitename.org... 188.143.132.180 Connecting to www.sitename.org|188.143.132.180|:80... connected.
  HTTP request sent, awaiting response... 500 Internal Server Error
  2016-01-05 08:00:01 ERROR 500: Internal Server Error.
  
  ```
  
  If I run the cron manually, I get the following 500 Server Error:
  
  ```
  The website encountered an error while retrieving http://www.divingrebels.org/administrator/components/com_civicrm/civicrm/bin/cron.php?name=loginid&pass=password&key=c121121212121212121212121. It may be down for maintenance or configured incorrectly.
  
  ```
  
  The cron which is running in CPanel is a wget cron.
  
  I contacted my webhost and they sent me the log which shows the cron running, but the email I get after the cron runs shows the 500 Server Error. I have a 100 emails per hour limit and have the mailer batch limit in CiviCRM set to 99.
  
  I have enabled debugging and backtrace in CiviCRM, but have no idea where to find the info or how to read it. Any help would be greatly appreciated.
  
  **Tags:** civimail, joomla, cron-job
  
  > **Comments:**
  > **username_1**: What exactly was the 500 Server Error as shown in the log files?  
  > **username_0**: There is no error in the log file which my webhost sent. According to the server logs, the cron command is working fine, please see below:  ### Jan 4 21:00:01 server19 CROND[586069]: (divingr) CMD (wget 'http://www.sitename.org/administrator/components/com_civicrm/civicrm/bin/cron.php?name=loginid&pass=password&key=c121f216120e4362040e110a1f92db58' >/dev/null 2>&1) Jan 4 22:00:01 server19 CROND[1011811]: (divingr) CMD (wget 'http://www.sitename.org/administrator/components/com_civicrm/civicrm/bin/cron.php?name=loginid&pass=password&key=c121f216120e4362040e110a1f92db58' >/dev/null 2>&1)  
  > **username_0**: However, the email I get after the cron runs shows the 500 server error --2016-01-05 09:45:01--  http://www.sitename.org/administrator/components/com_civicrm/civicrm/bin/cron.php?name=loginid&pass=password&key=c121f216120e4362040e110a1f92db58 Resolving www.divingrebels.org... 198.143.132.130 Connecting to www.divingrebels.org|198.143.132.130|:80... connected. HTTP request sent, awaiting response... 500 Internal Server Error 2016-01-05 09:45:02 ERROR 500: Internal Server Error.  
  > **username_1**: ok, those seem access logs and not error logs. If the webhost could give an error log, that would help. Can you check if you can find an error in the CiviCRM log file? That should for Joomla be in a file in <joomla-root>/media/civicrm//civicrm/ConfigAndLog/  
  > **username_0**: I will ask the webhost for an error log.  The latest log file I find in the path you provided is 12/20/2015 which is before this issue started occurring.  
  > **username_0**: This is the response I got from my webhost: According to the server's logs the cron is executing as it should And message you got means the command has been executed   However the result of this command is "500 Internal Server Error"  Are you sure you need to use wget?  Perhaps this should be executed as curl?  curl 'http://www.divingrebels.org/administrator/components/com_civicrm/civicrm/bin/cron.php?name=loginid&pass=password&key=c121f216120e4362040e110a1f92db58'  Please contact your web developer for the best assistance  
  > **username_0**: Curl doesn't resolve the issue  <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>403 Forbidden</title> </head><body> <h1>Forbidden</h1> <p>You don't have permission to access /administrator/components/com_civicrm/civicrm/bin/cron.php on this server.<br /> </p> <p>Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.</p> </body></html>  
  > **username_2**: Please read http://civicrm.stackexchange.com/questions/6399/how-do-i-debug-civicrm-when-i-hit-a-blank-page-white-screen-fatal-error/6400#6400 for tips on finding your error/debug logs. This varies per hosting environment. I don't think `curl` vs `wget` is your issue since you're seeing a 500 error from the server.  
  > **username_0**: I ran an update to Joomla 3.4.8 and it resolved the issue.  There must have been a bug in Joomla 3.4.7 which caused the cron issue.  I appreciate the effort to resolve the issue.  This issue can be closed.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2016-01-06. Score: 3
  
  I ran an update to Joomla 3.4.8 and it resolved the issue. There must have been a bug in Joomla 3.4.7 which caused the cron issue.
  
  > **Comments:**
  > **username_2**: [CRM-17744](https://issues.civicrm.org/jira/browse/CRM-17744), [Joomla #8755](https://issues.joomla.org/tracker/joomla-cms/8755).  
  
  ---
  
  