Jump to content

[SOLVED] searchcron.php error


Recommended Posts

Hi,

I'm trying to set up a cron job for searchcron.php. I'm getting the folowing error: Could not open input file: httpdocs/eprekyba/searchcron.php?full=1 chmod is 777 for tthis file

I've tested a cron job with simple test.php file in the same folder, everything works fine. What am I doing wrong with this one?

Link to comment
Share on other sites

It is written, that he has "typed up the cron commands in Windows Notepad and uploaded them". I didin't do that, I entered the cron command manualy in Crontab "php -q httpdocs/eprekyba/searchcron.php?full=1&token=gEy9DxXJ&id_shop=1".

 

I've commented everything in that file (searchcron.php) and wrote a echo "hello world" line. I've got the same "Could not open input file" error, BUT if I remove this cron command part "?full=1&token=gEy9DxXJ&id_shop=1" it works fine, and I'm getting a "hello world". Maybe searchcron.php trying to open other file, that has no premission...

Link to comment
Share on other sites

  • 1 year later...

@Evelita

I'm having the exact same issue as you are here. Could you share what change your service provider recommended to get your cron tasks to run? My scripts will execute without error if I leave off the "?token=XXXX" at the end of the files, but they don't do anything. I can't find anywhere that tells what is necessary to make them work with the token. Any help is greatly appreciated!

 

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...