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) »
  • Joomla cron pulls error - Could not open input file!
Pages: [1]

Author Topic: Joomla cron pulls error - Could not open input file!  (Read 1045 times)

gana1

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: CiviCRM 4.3.4
  • CMS version: Joomla! 2.5.6 Stable
  • MySQL version: 5.1.62-cll
  • PHP version: 5.3.25
Joomla cron pulls error - Could not open input file!
May 25, 2014, 06:33:14 pm
Hi ,
I have tried to set up the cron job as specified by the instructions provided in the documentation, I have also reviewed as many forum posts as possible to gain a greater understanding and see if any of the solutions would fix why the Cron job is not working.
the purpose of this is so that i can schedule mail invitations to the events that i have set up.


The Cron that i have set in my
Joomla 3 installation
CiviCRM 4.4.5.

is in the Cpanel CRON job
/usr/local/bin/php -f /home/user/public_html/dev/administrator/components/com_civicrm/civicrm/bin/cron.php?name=xxxxx&pass=xxxx&key=xxxxxxxxxxxxxxx

the username and password are being pulled from the super user

and the key is coming from the civicrm.settings.php file

the file sends an email to my email as it executes , however the email reads

"Could not open input file: /home/user/public_html/dev/administrator/components/com_civicrm/civicrm/bin/cli.php?name=admin"

I am housing my site with in a folder called DEV and i have created a sub domain for it . and the file most defiantly exists and the persmissions are set correctly.

I cannot work out what is going on and or why the cron cant find the input file and send the invitation emails  ?

any help would be greatly appreciated
Thanks :)

p.s The host company are not being very useful.
p.p.s the test mail out and confirmation emails all work correctly .





Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Joomla cron pulls error - Could not open input file!
May 26, 2014, 10:19:58 am
You are using the "web" format but the "CLI" method, that is the problem. See here:

http://wiki.civicrm.org/confluence/display/CRMDOC/Managing+Scheduled+Jobs#ManagingScheduledJobs-PHPclimethod

for the correct format for your Cron job. 
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.

gana1

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: CiviCRM 4.3.4
  • CMS version: Joomla! 2.5.6 Stable
  • MySQL version: 5.1.62-cll
  • PHP version: 5.3.25
Re: Joomla cron pulls error - Could not open input file!
May 26, 2014, 08:20:23 pm
i think ive got it all asse end up

is this right ?

$ php /home/xxxxx/public_html/dev/administrator/components/com_civicrm/civicrm/bin/cli.php -s site -u xxxx -p xxxxxxx -e Job -a process_mailing


Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Joomla cron pulls error - Could not open input file!
May 27, 2014, 03:24:45 am
Looks right. But does it work?
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.

gana1

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: CiviCRM 4.3.4
  • CMS version: Joomla! 2.5.6 Stable
  • MySQL version: 5.1.62-cll
  • PHP version: 5.3.25
Re: Joomla cron pulls error - Could not open input file!
May 28, 2014, 08:29:34 pm
i get this error message. in my email

/bin/sh: $: command not found

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Joomla cron pulls error - Could not open input file!
May 29, 2014, 03:47:43 am
Your cron job should be:

Code: [Select]
php /home/xxxxx/public_html/dev/administrator/components/com_civicrm/civicrm/bin/cli.php -s site -u xxxx -p xxxxxxx -e Job -a process_mailing
Without the $
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.

gana1

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: CiviCRM 4.3.4
  • CMS version: Joomla! 2.5.6 Stable
  • MySQL version: 5.1.62-cll
  • PHP version: 5.3.25
Re: Joomla cron pulls error - Could not open input file!
June 02, 2014, 08:36:14 pm
Hi Hershel,
thanks for your responce , but now i get this error

X-Powered-By: PHP/5.3.26
Content-type: text/html

<br />
<b>Fatal error</b>:  cli.php can only be run from command line. in <b>/home/xxxxxx/public_html/dev/administrator/components/com_civicrm/civicrm/bin/cli.class.php</b> on line <b>83</b><br />

any ideas?

M

gana1

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: CiviCRM 4.3.4
  • CMS version: Joomla! 2.5.6 Stable
  • MySQL version: 5.1.62-cll
  • PHP version: 5.3.25
Re: Joomla cron pulls error - Could not open input file!
June 04, 2014, 09:10:22 pm
is this correct


php /home/xxxxxxx/public_html/dev/administrator/components/com_civicrm/civicrm/bin/cli.php -s site -u xxxx -p xxxxxx -e Job -a process_mailing

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Joomla cron pulls error - Could not open input file!

This forum was archived on 2017-11-26.