Hkafop module failure ( all modules)

  • Posts: 6
  • Thank you received: 0
  • Hikashop Essential
9 months 4 weeks ago #358543

-- HikaShop version -- : 5.0.3
-- Joomla version -- : 4.4
-- PHP version -- : 8.3.2
-- Browser(s) name and version -- : firefox
-- Error-message(debug-mod must be tuned on) -- : 2 plgHikashopGroup->onHikashopBeforeDisplayView() JROOT/libraries/src/Plugin/CMSPlugin.php:289

Upgraded Joomla to version 4 and hikashop to 5 no no modules working all failing on same call to cmsplugin.php

been working on it for hours!

# Function Location
1 () JROOT/plugins/hikashop/group/group.php:33
2 plgHikashopGroup->onHikashopBeforeDisplayView() JROOT/libraries/src/Plugin/CMSPlugin.php:289
3 Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}() JROOT/libraries/vendor/joomla/event/src/Dispatcher.php:486
4 Joomla\Event\Dispatcher->dispatch() JROOT/libraries/src/Application/EventAware.php:111
5 Joomla\CMS\Application\WebApplication->triggerEvent() JROOT/administrator/components/com_hikashop/helpers/helper.php:2689
6 hikashopView->display() JROOT/administrator/components/com_hikashop/views/menu/view.html.php:393
7 MenuViewMenu->display() JROOT/administrator/components/com_hikashop/helpers/helper.php:797
8 hikashop_getMenu() JROOT/administrator/components/com_hikashop/helpers/helper.php:2438
9 hikashopController->display() JROOT/administrator/components/com_hikashop/helpers/helper.php:2177
10 hikashopController->listing() JROOT/libraries/src/MVC/Controller/BaseController.php:693

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
9 months 3 weeks ago #358548

Hi,

It's a shame you didn't provide the error message you have. You only provided the call stack.
It seems to indicate that the problem comes from HikaShop plugins which could not be updated by the Joomla installer because of the permissions on their files/folders and thus you're using the code from old versions of HikaShop which is not compatible with Joomla 4.
Now, that's just a guess. The error message would be able to confirm the issue. If it says something about a "isAdmin" function, then it would confirm what I'm suspecting, and in that case, you would need to fix your folders permissions via FTP and then run the update again by installing the install package of the latest version of HikaShop.

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

  • Posts: 6
  • Thank you received: 0
  • Hikashop Essential
9 months 3 weeks ago #358562

The error was with the isAdmin() Call had to edit the code and replace with isClient('admin')

solved immediate problem but still finding other bugs

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
9 months 3 weeks ago #358567

Hi,

You should not have to change the code manually there.
The current version of the group plugin doesn't use isAdmin. So if you have HikaShop 5.0.3, you should not have that error there.
And if you do, it means you have a permission issue in your plugins folders preventing Joomla from updating them when HikaShop is being updated. And thus, if other plugins of HikaShop are not being updated, you'll get many bugs and you'll spent a lot of time debugging things for nothing.
Instead, fix your permissions and install again the HikaShop install package so that it can automatically update all the plugins and you won't get these compatibility issues with the plugins anymore.

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

Time to create page: 0.045 seconds
Powered by Kunena Forum