Evelita Posted March 1, 2017 Share Posted March 1, 2017 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 More sharing options...
Evelita Posted March 5, 2017 Author Share Posted March 5, 2017 Link to comment Share on other sites More sharing options...
rocky Posted March 6, 2017 Share Posted March 6, 2017 A quick search on Google revealed this topic. Seems it might be a permissions or file encoding issue. Link to comment Share on other sites More sharing options...
Evelita Posted March 6, 2017 Author Share Posted March 6, 2017 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 More sharing options...
Evelita Posted March 6, 2017 Author Share Posted March 6, 2017 I'm getting the same error with this cron job also "php -q httpdocs/modules/gsitemap/gsitemap-cron.php?token=fb2aa9f59f&id_shop=1" Link to comment Share on other sites More sharing options...
rocky Posted March 6, 2017 Share Posted March 6, 2017 Have you tried contacting your host for support? Link to comment Share on other sites More sharing options...
Evelita Posted March 6, 2017 Author Share Posted March 6, 2017 I'll try that Link to comment Share on other sites More sharing options...
Evelita Posted March 7, 2017 Author Share Posted March 7, 2017 My host support helped me out, gave me different cron command and it works now. Link to comment Share on other sites More sharing options...
rocky Posted March 8, 2017 Share Posted March 8, 2017 That's great. I'm happy you found a solution. Link to comment Share on other sites More sharing options...
jscroggs Posted June 13, 2018 Share Posted June 13, 2018 @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 More sharing options...
Evelita Posted June 15, 2018 Author Share Posted June 15, 2018 Hello, I'm sorry, but I do not remember anymore and I've also changed the host provider. Link to comment Share on other sites More sharing options...
Ableson Posted June 25, 2018 Share Posted June 25, 2018 If you have cron job issue with you hosting, you may try external cron job easycron.com which starts processes on the URL and a tutorial at https://www.easycron.com/cron-job-tutorials/how-to-set-up-cron-job-for-prestashop-search. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now