Antonio Caccese Posted September 26, 2020 Share Posted September 26, 2020 Hi, I need to setup a cronjob for rebuild the search index of poducts. I've installed the cron in the cpanel cron manager: https://www.MY-DOMAIN.com/admin602gy6fgf/index.php?controller=AdminSearch&action=searchCron&ajax=1&full=1&token=vQ3TSk2r&id_shop=1 as is shown in the search configurations in prestashop shop parameters. In cPanel i have: wget -q -O - https://www.MY-DOMAIN.com/admin602gy6fgf/index.php?controller=AdminSearch&action=searchCron&ajax=1&full=1&token=vQ3TSk2r&id_shop=1 > /dev/null 2>&1 When the cron runs i receive a mail from cpanel with the output of the call, in this output i can see the html of the prestashop login form. So i think that there is some authentication problem. If i execute the URL directly in the browser (even i'm not authenticated) the search index is correctly rebuild. Why does this happen? How can I solve? Link to comment Share on other sites More sharing options...
Prescol Posted September 26, 2020 Share Posted September 26, 2020 Open an incognito tab where you are not logged in your shop. Then try the link. What do you see? Link to comment Share on other sites More sharing options...
Antonio Caccese Posted September 27, 2020 Author Share Posted September 27, 2020 I tried as you suggested. A blank white page is returned to me. In the browser, even with incognito browsing, it works. Link to comment Share on other sites More sharing options...
Prescol Posted September 30, 2020 Share Posted September 30, 2020 If it works in an incognito tab, should work with wget. Check for mispellings Link to comment Share on other sites More sharing options...
hannes01 Posted January 22, 2022 Share Posted January 22, 2022 Hi Antonio, I have exactly the same issue. Did you find a solution? Thanks! 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