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 »
  • Using CiviSMTP (Moderator: shane) »
  • CiviMail cronjob returns 404 error
Pages: [1]

Author Topic: CiviMail cronjob returns 404 error  (Read 2826 times)

markaconley

  • I’m new here
  • *
  • Posts: 21
  • Karma: 1
CiviMail cronjob returns 404 error
December 20, 2010, 01:19:00 am
Guys,

I am getting this error message back from the CiviMail cron job when running it on my GoDaddy host:

Status: 404 Not Found
Content-type: text/html

No input file specified.

My command to call the job is
 /web/cgi-bin/php5 "$HOME/html/sites/all/modules/civicrm/bin/civimail.cronjob.php?name=adminuser&pass=password&key=sitekey"

Can any tell me how to correct this issue or provide a solution?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: CiviMail cronjob returns 404 error
December 20, 2010, 03:42:38 am
Does the directory $HOME/html/sites/all/modules/civicrm/bin/ exist? That is a Drupal style directory but your profile says you use Joomla. Which are you using?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

markaconley

  • I’m new here
  • *
  • Posts: 21
  • Karma: 1
Re: CiviMail cronjob returns 404 error
December 21, 2010, 08:50:50 am
Ah, I missed that. 
I'm using Joomla and I believe the path should be $HOME/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php

I'm making the change now.  Thank you.

markaconley

  • I’m new here
  • *
  • Posts: 21
  • Karma: 1
Re: CiviMail cronjob returns 404 error
December 22, 2010, 07:34:53 am
I changed to the correct Joomla directory structure and I can locate the file, "civimail.cronjob.php".  Upon updating, afterwards I received the following error message:

Cron <sisteradmin@p3slhssl06> /web/cgi-bin/php5 "$HOME/html/snsha/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php"

Set-Cookie: PHPSESSID=gl8b74e9d3mges27qqdag9kdn3; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-type: text/html

ERROR: You need to send a valid user name and password to execute this file

===============

Resultingly, I added the user name and password, using the following syntax however, now I'm back to the following error:

Cron <sisteradmin@p3slhssl06> /web/cgi-bin/php5 "$HOME/html/snsha/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php?name=XXXXX&pass=XXXXXX&key=xN~!kpQwxm3cM1hTMV4aB09iO6"

Status: 404 Not Found
Content-type: text/html

No input file specified.


Once again I am using the GoDaddy Cron Manager in the Hosting Control Center, so it should only be a question of locating the "civimail.cronjob.php" and adding the validation string.   At least that's what I am assuming.

Is this a syntax problem?  Or something else that I am missing?

Erich

  • I post occasionally
  • **
  • Posts: 84
  • Karma: 1
Re: CiviMail cronjob returns 404 error
April 22, 2012, 08:41:57 am
I, too, am seeing this exact same error.

If I follow GoDaddy's instructions for submitting a cron job, there are no parameters on the command line and I get:
   ERROR: You need to send a valid user name and password to execute this file

Given that the cron job is a php script, if I add "?name=XXXXXXXX&pass=YYYYYYYY" I get:

   Status: 404 Not Found
   Content-type: text/html
   No input file specified.

Is there another way to pass parameters to the CiviMail cron job? 

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: CiviMail cronjob returns 404 error
April 22, 2012, 10:42:35 am
See here for two methods of sending the parameters:

http://wiki.civicrm.org/confluence/display/CRMDOC40/CiviMail+Installation#CiviMailInstallation-SettingUptheCronJob
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail »
  • Using CiviSMTP (Moderator: shane) »
  • CiviMail cronjob returns 404 error

This forum was archived on 2017-11-26.