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 »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • CRON Jobs not working on Wordpress Install
Pages: [1]

Author Topic: CRON Jobs not working on Wordpress Install  (Read 1354 times)

manfredwoodall

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
  • CiviCRM version: 4.5.4
  • CMS version: Wordpress 4.0.1
  • MySQL version: 5.5.xx
  • PHP version: 5.3.18
CRON Jobs not working on Wordpress Install
October 22, 2013, 12:33:48 pm
So in my current version of the CiviCRM install (4.3.4) on WP 3.6.1 I'm getting an error trying to run the CRON jobs by URL.

I've set up the CRONTAB, but it fails silently with no errors reported. So in an effort to diagnosis this I tried to run the CRON by URL:

http://[domain]/wp-content/plugins/civicrm/civicrm/bin/cron.php?name=username&pass=password&key=sitekey

When I do that it returns the following error:

Fatal error: Class 'Tribe_Template_Factory' not found in /wp-content/plugins/events-calendar-pro/lib/tribe-pro-template-factory.class.php on line 7

We're using Events Calendar pro to manage the WP display of the events which then gets fed to the Civi registration pages.

Is this causing the CRON jobs to fail? I can run them manually with no issues.

Thanks

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 Jobs not working on Wordpress Install
October 22, 2013, 01:06:07 pm

seems like that file is missing a require_once, might want to try adding it manually and see if it fixes it

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

manfredwoodall

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
  • CiviCRM version: 4.5.4
  • CMS version: Wordpress 4.0.1
  • MySQL version: 5.5.xx
  • PHP version: 5.3.18
Re: CRON Jobs not working on Wordpress Install
October 24, 2013, 06:42:30 am
I'm a little confused by this response. Looking at the configuration of set-up we're using Tribe Events and Tribe Events Pro for the nice slick front end functionality then feeding the events to Civi for the forms.

The class "Tribe_Template_Factory" exists in one plug in folder, while the PHP file referenced by this error is in a different folder. I could add a reference to the class in the referenced file, but I'm not sure that would work.

But my bigger question is why does the Civi CRON job look at either of these files in the first place?

Thanks!



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 Jobs not working on Wordpress Install
October 24, 2013, 09:10:53 am

civi does not invoke that file directly. Civi bootsraps wordpress so we can call hooks and other neat stuff, and the wp code calls that file at some step.

the code is at: CRM/Utils/System/WordPress.php, function loadBootstrap

it is possible that we can do things a bit better / differently when bootstrapping WP. Let us know if so, and we can check and tweak things

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

marcusjwilson

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.4
  • CMS version: WordPress 3.5.2
  • MySQL version: 5.1.73
  • PHP version: 5.3.27
Re: CRON Jobs not working on Wordpress Install
March 05, 2014, 05:46:13 pm
Hi -

I'm having exactly the same issue with Events Calendar plugin throwing Fatal Errors when running a Cron job in Civi...
Fatal error: Class 'Tribe_Template_Factory' not found in /wp-content/plugins/events-calendar-pro/lib/tribe-pro-template-factory.class.php on line 7

Did you find a solution to this issue?

Thanks
Marcus

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • CRON Jobs not working on Wordpress Install

This forum was archived on 2017-11-26.