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 »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Error when cron.php runs
Pages: [1]

Author Topic: Error when cron.php runs  (Read 3182 times)

jsimonis

  • I post frequently
  • ***
  • Posts: 316
  • Karma: 4
    • Forward Support, Inc.
  • CiviCRM version: 4.4-4.5
  • CMS version: Drupal 7
  • MySQL version: 5.5.37-cll
  • PHP version: 5.3.29
Error when cron.php runs
July 09, 2007, 07:00:52 pm
When I get my e-mail when cron.php runs, I get the following error:

Parse error:  syntax error, unexpected ',', expecting '(' in /home/username/public_html/sites/all/modules/civicrm/drupal/civicrm.module on line 432

I'm running this site on PHP 5.2. I'm running this download of CiviCRM: civicrm-1.7.9821-drupal-php5.tar.gz

Everything else in CiviCRM seems to be working fine, including CiviMail.

I also have a second question:

Should I be running the following file, either through a cron job or manually: /civicrm/bin/civimail.cronjob.php

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: Error when cron.php runs
July 09, 2007, 08:09:50 pm

1. r u sure cron.php is being run by a php5 interpreter? The error message makes it seem as if a php4 compiler is trying to execute a php5 file. can u double check by maybe putting a phpinfo( ); exit( ); on line 427 (approx).

2. yes you need to run civimail.cronjob.php via unix cron periodically to process mailings that are queued and waiting to be delivered

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

jsimonis

  • I post frequently
  • ***
  • Posts: 316
  • Karma: 4
    • Forward Support, Inc.
  • CiviCRM version: 4.4-4.5
  • CMS version: Drupal 7
  • MySQL version: 5.5.37-cll
  • PHP version: 5.3.29
Re: Error when cron.php runs
July 09, 2007, 08:42:23 pm
Ok, I added that to the line. You'll have to forgive my ignorance since my PHP knowledge is limited, but what do I do now?

Also, I get this error when civimail.cronjob.php is called:

Parse error:  syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/username/public_html/sites/all/modules/civicrm/CRM/Core/Config.php on line <b>57

I'm assuming this is probably related to my other problem?

jsimonis

  • I post frequently
  • ***
  • Posts: 316
  • Karma: 4
    • Forward Support, Inc.
  • CiviCRM version: 4.4-4.5
  • CMS version: Drupal 7
  • MySQL version: 5.5.37-cll
  • PHP version: 5.3.29
Re: Error when cron.php runs
July 09, 2007, 08:57:14 pm
I can tell you that when I run a phpinfo script that it tells me I'm running PHP 5.2.1

I just had my server re-do my php.ini file in case in could in any way be the cause. Cron is set to run again any minute now, so I should find out if that changed anything.

jsimonis

  • I post frequently
  • ***
  • Posts: 316
  • Karma: 4
    • Forward Support, Inc.
  • CiviCRM version: 4.4-4.5
  • CMS version: Drupal 7
  • MySQL version: 5.5.37-cll
  • PHP version: 5.3.29
Re: Error when cron.php runs
July 09, 2007, 09:05:14 pm
It's looking like it may be the way the cron runs.

Site5 uses PHP4 as the default, but you can use PHP5 via a htaccess edit.

However, apparently if you do your cron jobs the usual way, you're running them through PHP4.

I'm working on finding out how to change this and running the cron again.

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: Error when cron.php runs
July 09, 2007, 09:09:23 pm

Ok, yeah the errors u r getting are php4 errors. You could also run them via a url:

http://sitename.org/sites/all/modules/civicrm/bin/civimail.cronjob.php

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

jsimonis

  • I post frequently
  • ***
  • Posts: 316
  • Karma: 4
    • Forward Support, Inc.
  • CiviCRM version: 4.4-4.5
  • CMS version: Drupal 7
  • MySQL version: 5.5.37-cll
  • PHP version: 5.3.29
Re: Error when cron.php runs
July 09, 2007, 09:25:43 pm
Yea, that's how I've been doing both the Civimail cron file and the Drupal cron.php file. I've been running them by hand.

Now I just need to find out how to do the cron jobs over at Site5 so that it works correctly with PHP5.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Error when cron.php runs

This forum was archived on 2017-11-26.