CATEGORIES - REBUILD (AUTOMATE)

  • Posts: 112
  • Thank you received: 1
8 years 8 months ago #251791

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.2
-- PHP version -- : 1.7.0

Hi,

How can I either automate the running of the Categories - Rebuild or trigger it to run remotely from outside of the website?

Still having problems with categories getting messed up (especially on delete) so need to keep rebuilding them.

Hope you can help.

Thx, Darrell

Please Log in or Create an account to join the conversation.

  • Posts: 83995
  • Thank you received: 13605
  • MODERATOR
8 years 8 months ago #251798

Hi,

You could do that with a cron task.

For example, you could install that plugin and configure it to auto log your own server to the backend with its IP address:
extensions.joomla.org/extensions/extensi...access/auto-login-ip
And then, configure a cron task on your server to call the URL:

http://www.yourwebsite.com/administrator/index.php?option=com_hikashop&ctrl=category&task=rebuild

Please Log in or Create an account to join the conversation.

  • Posts: 112
  • Thank you received: 1
8 years 8 months ago #252698

I get error 403 - Access Forbidden when I try that URL.

Please Log in or Create an account to join the conversation.

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
8 years 8 months ago #252707

Hi,

The Joomla administration is secured ; that is why Nicolas gave you a tip in order to be automatically login.
Otherwise, any call in the backend will be refused (because it need a login), like you have with your 403 answer.

The other solution would be to create a cron plugin to perform the category rebuild.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Time to create page: 0.096 seconds
Powered by Kunena Forum