CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • cron.php fails silently
Pages: 1 [2]

Author Topic: cron.php fails silently  (Read 3880 times)

holmesg

  • I post occasionally
  • **
  • Posts: 61
  • Karma: 0
  • CiviCRM version: CiviCRM 4.3.4
  • CMS version: Joomla! 2.5.8
  • MySQL version: 5.1.70
  • PHP version: PHP Version 5.3.22
Re: cron.php fails silently
September 12, 2013, 12:12:04 pm
Stranger and stranger ...

It dies at

      require $joomlaBase . '/libraries/cms/version/version.php';


in CRM/Utils/System/Joomla.php

Digging more ...

holmesg

  • I post occasionally
  • **
  • Posts: 61
  • Karma: 0
  • CiviCRM version: CiviCRM 4.3.4
  • CMS version: Joomla! 2.5.8
  • MySQL version: 5.1.70
  • PHP version: PHP Version 5.3.22
Re: cron.php fails silently
September 12, 2013, 12:16:15 pm
OK.

It dies in

/public_html/libraries/cms/version/version.php

Immediately at

Code: [Select]
defined('_JEXEC') or die;
Wha?

holmesg

  • I post occasionally
  • **
  • Posts: 61
  • Karma: 0
  • CiviCRM version: CiviCRM 4.3.4
  • CMS version: Joomla! 2.5.8
  • MySQL version: 5.1.70
  • PHP version: PHP Version 5.3.22
Re: cron.php fails silently
September 12, 2013, 01:40:30 pm
Don't know if I should have, but I commented out the

defined('_JEXEC') or die;

in version.php, and kept going ...

So now I've tracked it through jobmanager.php. I'm not hitting any job that is_active, even though there are unsent civimail jobs.

Quote
    // it's not asynchronous at this stage
    CRM_Utils_Hook::cron($this);

    foreach ($this->jobs as $job) {
   


      if ($job->is_active) {
     

        if ($job->needsRunning()) {
       


          $this->executeJob($job);
         

holmesg

  • I post occasionally
  • **
  • Posts: 61
  • Karma: 0
  • CiviCRM version: CiviCRM 4.3.4
  • CMS version: Joomla! 2.5.8
  • MySQL version: 5.1.70
  • PHP version: PHP Version 5.3.22
Re: cron.php fails silently
September 13, 2013, 08:40:01 am
And just to being this closure:

http://forum.civicrm.org/index.php/topic,29977.0.html


I had to enable the job. Huh :)  ::)   :P

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: cron.php fails silently
September 13, 2013, 10:56:00 am

glad u found the issue :)

Can you please modify the wiki so we avoid going down a wild goose chase with other folks down the road. Maybe make it clear in cron.php that only active jobs are run and folks should double check etc

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

freeform.steph

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.3.4
  • CMS version: Joomla 2.5
  • MySQL version: 5.5.33
  • PHP version: 5.3
Re: cron.php fails silently
September 23, 2013, 04:01:48 pm
I am unable to run any active scheduled jobs using either cron (via plesk or cpanel) or the url method - no matter what I try, nothing happens.

I am having the same problem on two different servers (I set-up a second instance on a different server to see if I could replicate the issue when using a fresh install with no other components)

CiviCRM 4.3.4
Joomla! 5.2

Site key is configured and declared in "/administrator/components/com_civicrm" and "/components/com_civicrm"

Enabled the job "cleanup", left it at its defaults.

On both sites I tested using the Super Admin account, so there should be no question that the user has permission.

Per the documentation, I ran "http://[siteroot]/administrator/components/com_civicrm/civicrm/bin/cron.php?name=[username]&pass=[password]&key=[sitekey]", but all I get is a white screen.

Unlike the issue discussed previously, NO logs are being added to the Scheduled Jobs log - as far as I can tell, nothing is happening.

- enabled logging and backtracing in CiviCRM error handling settings
- checked the server error log, nothing related to civicrm
- checked /logs, nothing
- checked /media/civicrm/ConfigAndLog, contains '.htaccess' and 'Config.IDS.ini', but no logs
- checked file permissions on cli.php and cron.php, 755 as recommended
- ensured max_execution_time = 600 in case it was a timeout issue

I am at my wit's end, any suggestions on what else to try?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: cron.php fails silently
September 23, 2013, 04:49:03 pm

I'm assuming u mean joomla 2.5, right?

what happens when you hit "Execute Now?" from the scheduled jobs page. Do jobs execute when triggered from there

can u edit cron.php and add various echo statements at various places so u know where things are dying. that might give us a few better clues

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

freeform.steph

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.3.4
  • CMS version: Joomla 2.5
  • MySQL version: 5.5.33
  • PHP version: 5.3
Re: cron.php fails silently
September 24, 2013, 08:51:45 am
Thank you for your quick reply!

Yes, sorry, typo on the Joomla version, it is 2.5.

"Execute Now" is the only method that does work, it adds an entry to the log as expected.

I added an echo after every line, I get nothing after the echo for "$config = CRM_Core_Config::singleton();"
which would suggest there is something failing with the line "CRM_Utils_System::authenticateScript(TRUE);"

freeform.steph

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.3.4
  • CMS version: Joomla 2.5
  • MySQL version: 5.5.33
  • PHP version: 5.3
Re: cron.php fails silently
September 27, 2013, 07:27:03 am
Hi - just wanted to follow-up. I wasn't able to get any further on my end - were you able to find anything with "CRM_Utils_System::authenticateScript(TRUE);" that would cause it to fail, or know where I could look? I'm a Drupal developer and fairly new to our CiviCRM team, still learning the system, and this is my first case dealing with a Joomla! client so I'm a little out of my comfort zone ;)

freeform.steph

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.3.4
  • CMS version: Joomla 2.5
  • MySQL version: 5.5.33
  • PHP version: 5.3
Re: cron.php fails silently
October 16, 2013, 10:42:59 am
Would like to share that the following was the solution that worked for us (replacing administrator/components/com_civicrm/civicrm/CRM/Utils/System/Joomla.php with a provided alternative)

http://forum.civicrm.org/index.php/topic,28660.msg124997.html#msg124997

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: cron.php fails silently
October 16, 2013, 10:56:19 am

hey steph:

can you take a look at the two files and the diff and hopefully submit a PR (and issue) that works for both 2.5 and 3.x

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: 1 [2]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • cron.php fails silently

This forum was archived on 2017-11-26.