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 CiviMail (Moderator: Piotr Szotkowski) »
  • Cron error
Pages: [1]

Author Topic: Cron error  (Read 2203 times)

Tonyf

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
Cron error
January 19, 2009, 05:25:30 am
Hi I'm just starting to use CiviMail, and have created my first mailing which is sitting in the scheduled mailings.

I understand I have to use Cron to get the mailings to actually go.  Do I have to configure any of the php files?

When I manually run cron using http://www.iffa.org.au/tony/sites/all/modules/civicrm/bin/civimail.cronjob.php?name=tonyf&pass=mypassword
I get back an error as follows:

Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' in /home/iedgg/public_html/tony/sites/all/modules/civicrm/civicrm.config.php on line 37. 

What am I doing wrong?

Cheers,
Tony.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Cron error
January 19, 2009, 05:36:48 am
Tony,

Can you re-check if your server is on php 5.x, you can also try echo php_info(); and check php version.

Kurund
Found this reply helpful? Support CiviCRM

Tonyf

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
Re: Cron error
January 22, 2009, 04:09:59 am
Thanks Kurund, sorry to be so slow responding.

Using a tiny script with
<?
phpinfo();
?>
 I get a report back saying PHP version 5.2.4. 

Not sure why I had to use phpinfo() instead of what you suggested echo php_info()

Still getting same error.

Tony.

Tonyf

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
Re: Cron error
January 22, 2009, 04:27:18 am
Looking at some other topics i saw that someone suggested what for me would be

http://www.iffa.org.au/tony/civicrm/mailing/queue?reset=1

and this worked to send the queued emails, so I have that as the workaround.

Could the error in manually running the cron have something to do with Civicrm being in a subdirectory?

Tony

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 error
January 22, 2009, 06:49:39 am

hey tony:

1. i assume u put the test script here: http://www.iffa.org.au/tony/sites/all/modules/civicrm/bin/testPHPVersion.php (or in some similarly named file etc). If not, can u please put it there and get the version

2. Can you cut-n-paste lines 30-40 from civicrm.config.php

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

Tonyf

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
Re: Cron error
January 26, 2009, 03:25:04 am
Thanks Lobo,

I have now put the script there where you suggest and I do get php version 5.2.4.  Check it out yourself, I'll leave it there a little while.

Here's lines 30-40 from civicrm.config.php: seems an odd selection maybe my file is weird in some way:

 *  9. $confdir/org
 *
 * 10. $confdir/default
 *
 * 11. Check the current directory so we can work with standalone installations
 */

use this line to test for junk

function conf_init() {
    global $skipConfigError;

Many thanks,
Tony.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Cron error

This forum was archived on 2017-11-26.