1. liedtke,k
  2. RO CSVI
  3. Monday, 18 January 2016
  4.  Subscribe via email
Hi Roland,


I try to set a cron-job.
This is my string:

/bin/php ./administrator/components/com_csvi/helper/cron.php --key=’mysecretword’ --template_name=’Import_Artikel’

This is the protocol:

Status: 404 Not Found
X-Powered-By: PHP/5.3.29
Content-type: text/html

No input file specified.

In the template under source is the importfile defined. The manuel Import works fine.

What is wrong ?

Thanks for help.
Accepted Answer Pending Moderation
Hi Roland,
I can't believe it.
Use --help to see the help information
Processing started...
Template Import_Artikel
Import has finished

Thank you so much for your great support.

Regards
  1. more than a month ago
  2. RO CSVI
  3. # 1
Accepted Answer Pending Moderation
Hello Klaus,

It seems to show a sign of life. The error is because I sent you the cron file for the upcoming CSVI 6.5.0. Attached is the altered one for your version.
Attachments (1)
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 2
Accepted Answer Pending Moderation
Hi Roland,

Here the answer:
Processing started...
Template Import_Artikel
Fatal error: Call to undefined method CsviHelperTemplate::getEnabled() in /mnt/webm/d3/31/52727531/htdocs/NEU/administrator/components/com_csvi/helper/cron.php on line 366 PHP Fatal error: Call to undefined method CsviHelperTemplate::getEnabled() in /mnt/webm/d3/31/52727531/htdocs/NEU/administrator/components/com_csvi/helper/cron.php on line 366
  1. more than a month ago
  2. RO CSVI
  3. # 3
Accepted Answer Pending Moderation
Klaus,

Attached is the patch for the cron, you can load the patch file via the maintenance menu. After that see if you can run the cron command.
Attachments (1)
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 4
Accepted Answer Pending Moderation
u are my hero
  1. more than a month ago
  2. RO CSVI
  3. # 5
Accepted Answer Pending Moderation
Klaus,

I am rewriting the cron script so it can be used on a server like yours. Once it is done, I will let you know.
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 6
Accepted Answer Pending Moderation
Hello Klaus,

Nobody has an CLI executeable.
That is not true. The CLI I showed you is from SiteGround, so I guess you didn't ask them. Many people run cron jobs without a problem.

As you can see, you can't even run the Joomla CLI scripts either.

I was thinking something else. PHP itself comes with both the CLI and CGI versions. Shouldn't it be somewhere on the server?
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 7
Accepted Answer Pending Moderation
if i enter this:
php cli/finder_indexer.php
Answer:
Status: 404 Not Found
X-Powered-By: PHP/5.6.17
Content-type: text/html
No input file specified.

They don't have a CLI-Version.
Asked other Host-Providers.
Nobody has an CLI executeable.
Regards
Klaus
  1. more than a month ago
  2. RO CSVI
  3. # 8
Accepted Answer Pending Moderation
That is PHP telling you that no filename has been given. This is the CLI version of PHP?
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 9
Accepted Answer Pending Moderation
answer:
Status: 404 Not Found
X-Powered-By: PHP/5.6.17
Content-type: text/html

No input file specified.
  1. more than a month ago
  2. RO CSVI
  3. # 10
Accepted Answer Pending Moderation
they say the don't have a cli version.
:blink:

That means you can't run a cron job then with them. You can see this is not a CSVI only issue, by running PHP with one of the Joomla provided CLI scripts.

If you run
php cli/finder_indexer.php
it returns
Content-type: text/html

This is a command line only application.


Another one you can see as well is the deletefiles.php script. It will just return the HTML message as you see with CSVI.
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 11
Accepted Answer Pending Moderation
they say the don't have a cli version.
  1. more than a month ago
  2. RO CSVI
  3. # 12
Accepted Answer Pending Moderation
You can't change the executable, that is how the server is setup. The hosting provider should be able to tell you where the cli version of PHP is located, so you can use that.
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 13
Accepted Answer Pending Moderation
How i can change this?
  1. more than a month ago
  2. RO CSVI
  3. # 14
Accepted Answer Pending Moderation
Hello Klaus,

So you can see that is the wrong PHP executable. You need to have the one that says cli (command line interface).
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 15
Accepted Answer Pending Moderation
Hi Roland,
Thats the answer when i trie this:/usr/local/bin/php -v
PHP 5.6.17 (cgi-fcgi) (built: Jan 15 2016 12:39:55) Copyright (c) 1997-2015 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies

Regards
  1. more than a month ago
  2. RO CSVI
  3. # 16
Accepted Answer Pending Moderation
Hello Klaus,

So I have been able to reproduce this issue. The issue has to do with the used PHP instance in the terminal.

The working version:
/usr/local/bin/php -v

PHP 5.3.29 (cli) (built: Jun 1 2015 10:21:13)


The non-working version:
php -v

PHP 5.3.29 (cgi-fcgi) (built: Jun 1 2015 10:21:12)


Notice the difference between cli and cgi-fcgi. You must be using the cli version, the cgi-fcgi version will return the message.

This has nothing to do with the CSVI script but has everything to do with the PHP used.
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 17
Accepted Answer Pending Moderation
Hi Roland,
So i asked Hoster.
They said: Make sure that the script is corect. The message:
Set-Cookie: 26f232c7020f95436630efe511962dbb=uqcpisht2i3f39krapejs5iij1; path=/; HttpOnly
is the problem. This is only in http allowed. Your chrone.php must be wrong.
Regards
Klaus
  1. more than a month ago
  2. RO CSVI
  3. # 18
Accepted Answer Pending Moderation
I am out of ideas as to what is wrong with your server setup. It may be good to ask your hosting provider as to how to use command line arguments on their servers.
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 19
Accepted Answer Pending Moderation
same:
X-Powered-By: PHP/5.6.17
Set-Cookie: 26f232c7020f95436630efe511962dbb=fuomch1copjki2q8p43p2n9ks7; path=/; HttpOnly
Content-type: text/html
  1. more than a month ago
  2. RO CSVI
  3. # 20
  • Page :
  • 1
  • 2


There are no replies made for this post yet.
Be one of the first to reply to this post!