Skip to main content

User creation via Joomla CLI

2 years 3 weeks ago #364250 by Rivalland
-- 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
Code:
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.

2 years 3 weeks ago #364255 by nicolas
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.041 seconds
Powered by Kunena Forum