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) »
  • Cronjob
Pages: [1]

Author Topic: Cronjob  (Read 3857 times)

jsappiak

  • Guest
Cronjob
June 06, 2007, 07:36:08 am
I just recently had a server error and needed to redo my installation of civicrm and the database.  When I was done, I was having a lot of problems, but finally got my civicrm up and running... so I think.  My problem is with the civimail send mail function.  I put the cronjob I download off the web page civimail.cronjob.php back on the server in the same spot that I had it before.  When I run the cronjob I get an error.  There are no errors listed in the log, but this is the error that comes up on the browser...

Fatal error: require_once() [function.require]: Failed opening required '../civicrm.config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/siamncom/public_html/teamisaan/administrator/components/com_civicrm/civicrm/civimail_cronjob.php on line 45

I can't figure out how to get the mail sent.  If there is an alternative way... or some configuration I am missing, please let me know.Thanks for the help.

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: Cronjob
June 06, 2007, 12:19:48 pm

1. how did u redo the civicrm reinstall? did u run the component installer again?

2. in joomla, we create a file in the installer at:

/home/siamncom/public_html/teamisaan/administrator/components/com_civicrm/civicrm/civicrm.config.php


3. also civimail.cronjob.php should be in the bin directory and should be part of the install, so not sure why you had to copy 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

jsappiak

  • Guest
Re: Cronjob
June 06, 2007, 05:24:28 pm
I tried running the cronjob on a different domain, using the cronjob that is in the bin directory and I get this error:


Fatal error: require_once() [function.require]: Failed opening required 'CRM/Core/Config.php' (administrator/components/com_civicrm/civicrm/packages:.:/usr/lib/php:/usr/local/lib/php') in /aghbkk/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php on line 46

I don't have any mail waiting to go out on that domain, but should have this error... right?

jsappiak

  • Guest
Re: Cronjob
June 06, 2007, 05:32:49 pm
Actually when I look at the details here I seem one major reason for the error.  I have three joomla installs each on a separate subdomain.  For some reason this cronjob is trying to find the files in a different subdomain.  I am running the cronjob in www.aghbkk.org, but it is looking for the files in www.isaan.org.  I am not sure why.  Is there some configuration to change to fix that???

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: Cronjob
June 06, 2007, 06:07:07 pm

check the contents of civicrm.config.php and see its values. It tells the system where to pick up the civicrm.settings.php file and hence all information about that particular sub-domain

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

jsappiak

  • Guest
Re: Cronjob
June 06, 2007, 08:54:26 pm
I managed to uninstall civicrm and reinstall it with the newest version and everything seems to be working again... Thanks

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

This forum was archived on 2017-11-26.