Cron doesn't work in Hikasop starter

  • Posts: 75
  • Thank you received: 2
  • Hikashop Essential
5 years 7 months ago #305276

-- HikaShop version -- : 4.0.3
-- Joomla version -- : 3.9.4
-- PHP version -- : 7.1.26
-- Browser(s) name and version -- : Firefox Quantum 66.0.1 (64 bits)
-- Error-message(debug-mod must be tuned on) -- : Call to undefined method stdClass::cron()
/home/zzzzzzzzzzzzzzzzzzzzzzzzzzzzz/plugins/system/hikashoppayment/hikashoppayment.php:121
Call stack
# Function Location
1 () JROOT/plugins/system/hikashoppayment/hikashoppayment.php:121
2 plgSystemHikashoppayment->processCronNotification() JROOT/plugins/system/hikashoppayment/hikashoppayment.php:43
3 plgSystemHikashoppayment->onAfterInitialise() JROOT/libraries/joomla/event/event.php:70
4 JEvent->update() JROOT/libraries/joomla/event/dispatcher.php:160
5 JEventDispatcher->trigger() JROOT/libraries/src/Application/BaseApplication.php:108
6 Joomla\CMS\Application\BaseApplication->triggerEvent() JROOT/libraries/src/Application/CMSApplication.php:626
7 Joomla\CMS\Application\CMSApplication->initialiseApp() JROOT/libraries/src/Application/SiteApplication.php:686
8 Joomla\CMS\Application\SiteApplication->initialiseApp() JROOT/libraries/src/Application/SiteApplication.php:212
9 Joomla\CMS\Application\SiteApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:196
10 Joomla\CMS\Application\CMSApplication->execute() JROOT/index.php:49

Hi.
After discussion about Subscription, I try the cron link and it doesn't work :

Call to undefined method stdClass::cron()
/home/zzzzzzzzzzzzzzzzzzzzzzzzzzzzz/plugins/system/hikashoppayment/hikashoppayment.php:121
Call stack
# Function Location
1 () JROOT/plugins/system/hikashoppayment/hikashoppayment.php:121
2 plgSystemHikashoppayment->processCronNotification() JROOT/plugins/system/hikashoppayment/hikashoppayment.php:43
3 plgSystemHikashoppayment->onAfterInitialise() JROOT/libraries/joomla/event/event.php:70
4 JEvent->update() JROOT/libraries/joomla/event/dispatcher.php:160
5 JEventDispatcher->trigger() JROOT/libraries/src/Application/BaseApplication.php:108
6 Joomla\CMS\Application\BaseApplication->triggerEvent() JROOT/libraries/src/Application/CMSApplication.php:626
7 Joomla\CMS\Application\CMSApplication->initialiseApp() JROOT/libraries/src/Application/SiteApplication.php:686
8 Joomla\CMS\Application\SiteApplication->initialiseApp() JROOT/libraries/src/Application/SiteApplication.php:212
9 Joomla\CMS\Application\SiteApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:196
10 Joomla\CMS\Application\CMSApplication->execute() JROOT/index.php:49


Many thanks in advance for your help.

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

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
5 years 7 months ago #305280

Hi,

Thank you for your feedback. I've added a patch so that the cron URL doesn't crash when you call it with HikaShop Starter.
You can download the install package of HikaShop on our website and install it on yours to get the patch.
However, even though it won't crash, the cron is something available only with the Essential and Business editions of HikaShop.
So the plugins and extensions needing the cron won't be called with HikaShop Starter, even if you configure the HikaShop cron on your server.
I've talked with Jerome about that and he will add a cron URL to HikaSubscriptions in the next release so that you can set it up on your own cron on your server without the need of HikaShop Essential or Business. Until then however, the only solution we have is to have HikaShop Essential or Business so that you can setup your cron via the HikaShop configuration:
www.hikashop.com/support/documentation/5...ashop-cron-task.html

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

  • Posts: 75
  • Thank you received: 2
  • Hikashop Essential
5 years 7 months ago #305295

Hi.
Thank you for discussing this together and proposing this alternative.
I can indeed see with the client the advantages of moving to a commercial version of HikaShop.
Thank you again!

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

  • Posts: 75
  • Thank you received: 2
  • Hikashop Essential
4 years 6 months ago #318797

Hello.
After a long silence, my client comes back and asks me to activate his site.
The website is up to date with Hikashop Starter 4.3.0 and Hikaserial Subscription 3.0.1.

However, calling the cron task (/index.php?option=com_hikashop&ctrl=cron) results in :
> Alerte
> Page not found: cron

What to do? Is the cron task definitely not available for the starter version of Hikashop?

Thank you in advance for your answer.
Best regards.
AlainR

Last edit: 4 years 6 months ago by AlainR.

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

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
4 years 6 months ago #318798

Hi,

The cron task is indeed not available in the Starter edition.
Note however that as promised, HikaSerial Subscription has its own cron since the 3.0.1 version.
So you can call /index.php?option=com_hikaserial&ctrl=serial&task=cron from your server's cron and you'll have it working, without the need of the cron task available with commercial editions of HikaShop.

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

Time to create page: 0.069 seconds
Powered by Kunena Forum