User creation via Joomla CLI

  • Posts: 11
  • Thank you received: 0
  • Hikashop Business
2 weeks 6 days ago #364250

-- HikaShop version -- : 5.1.1
-- Joomla version -- : 5.2.0
-- PHP version -- : 8.2

We have a user account creation process via the new Joomla commands (php cli/joomla.php user:add ...)
However, the `hikashop_user` plugin system triggers an error on the `onAfterStoreUser` event.

There seems to be a use of

setUserState
not accessible from the Joomla CLI context.
For the moment, we have been able to get around the problem by adding the following lines to `hikashop_user`:

if (method_exists($app, ‘isClient’) && $app->isClient(‘cli’)) {
return;
}

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
2 weeks 6 days ago #364255

Hi,

Thanks for your feedback. We'll be adding some patches for this for the next version of HikaShop.

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

Time to create page: 0.056 seconds
Powered by Kunena Forum