IgnacioPer Posted April 30, 2021 Share Posted April 30, 2021 Hello, I have found the following problem in Prestashop 1.7.x. The re-build URL has the following structure: http://example.com/ADMIN_XXX/index.php?controller=AdminSearch&action=searchCron&ajax=1&full=1&token=xxxxxx&id_shop=1 In order to access it, it's mandatory to be logged in to your admin panel. If not, the URL will redirect you to your admin login page. So, if I create a crontab using CURL, it simply won't work as you have to be logged in first. I also tried Cronjob module, but it also seems to have the same problem. ¿Does anybody knows a workaround on this issue to set up a cron to re-build the search index? Link to comment Share on other sites More sharing options...
Ress Posted March 3, 2022 Share Posted March 3, 2022 Yes, it works, some checks are made on that controller, and it works if you set a cron with it. But there are some versions of PrestaShop that do not work. For example, you can see here how the bug for 1.7.6.1 was fixed: https://github.com/PrestaShop/PrestaShop/pull/15855 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