Jump to content

Re-build search index cron in Prestashop 1.7.x problem


IgnacioPer
 Share

Recommended Posts

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?

Share this post


Link to post
Share on other sites

  • 10 months 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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More