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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Can't get CRON to run
Pages: [1]

Author Topic: Can't get CRON to run  (Read 764 times)

WPMonkey

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 4.3.3
  • CMS version: WordPress 3.5.1
  • MySQL version: 5.5.31
  • PHP version: 5.2.17
Can't get CRON to run
September 06, 2013, 03:00:06 pm
I've tried a couple of different methods, with no sucess.

First, this to a 5min cron job:
$ php /wp-content/plugins/civicrm/civicrm/bin/cli.php -u (myusername) -p (mypasword) -e Job -a execute
...nothing happened

Next:
php /home/meissner/public_html/wp-content/plugins/civicrm/civicrm/bin/cli.php -u (myusername) -p (mypassword) -e Job -a execute
...nada

Then I added the URL method with this cron:
wget -O /dev/null -q -t 1 "http://meissnernordic.org/wp-content/plugins/civicrm/civicrm/bin/cron.php?name=myusername&pass=mypassword&key=mysitekey"   

When I put the URL in a browser, I got this message:
WordPress custom post types are not supported prior to version 2.9
...we're using WP 3.6

I do have a dash (-) in my WP username... could that be it?
I'm a WP and CiviCRM admin

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: Can't get CRON to run
September 06, 2013, 07:50:08 pm

did u try removing the '-' from the user name and see if that helped?

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

WPMonkey

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 4.3.3
  • CMS version: WordPress 3.5.1
  • MySQL version: 5.5.31
  • PHP version: 5.2.17
Re: Can't get CRON to run
September 07, 2013, 08:41:29 am
I tried another admin user that did not have a dash in the name, and I still get the "WordPress custom post types are not supported prior to version 2.9" error message in the browser when I manually use the URL method.

Are there any known conflicts with other plugins? We run Postie.

WPMonkey

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 4.3.3
  • CMS version: WordPress 3.5.1
  • MySQL version: 5.5.31
  • PHP version: 5.2.17
Re: Can't get CRON to run
September 07, 2013, 11:12:02 am
When I disabled plugins and then enabled them one by one, I found these issues:

Promotions slider - creates the "WordPress custom post types are not supported prior to version 2.9" error

Redirection - creates a server error when using the URL method The website encountered an error while retrieving http://mywebsite.org/wp-content/plugins/civicrm/civicrm/bin/cron.php?name=username&pass=password&key=xxxx. It may be down for maintenance or configured incorrectly.
Error code: 500

Deactivating both of these solved the problem.

aglozier

  • I post frequently
  • ***
  • Posts: 135
  • Karma: 9
    • Phoenix Academy
  • CiviCRM version: 4.7.9
  • CMS version: WordPress 4.6.1
  • MySQL version: 5.7.14
  • PHP version: 5.6.21
Re: Can't get CRON to run
September 09, 2013, 06:51:25 am
On CiviHosting the following to run the Cron.

/usr/local/bin/php.cli /home/directory name/www/www/wp-content/plugins/civicrm/civicrm/bin/cli.php -u name -p password -e Job -a execute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Can't get CRON to run

This forum was archived on 2017-11-26.