Cannot access offset of type string on string

  • Posts: 52
  • Thank you received: 2
  • Hikashop Business
4 months 1 week ago #338399

-- HikaShop version -- : 4.4.5
-- Joomla version -- : 3.10.4
-- PHP version -- : 7.4

I am copying a product successfully. When i then go to edit, the following error occurs:

Cannot access offset of type string on string

Can you advise please? Thank you

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

  • Posts: 75481
  • Thank you received: 11749
  • MODERATOR
4 months 1 week ago #338406

Hi,

Can you activate the "debug system" setting of the Joomla configuration and try again ?
It will then display an error message with more information, which will allow us to understand the situation and give you a solution.

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

  • Posts: 52
  • Thank you received: 2
  • Hikashop Business
4 months 1 week ago #338410

Here we are:

An error has occurred.
0 Cannot access offset of type string on string
/home/westernex/public_html/plugins/hikashop/vendorgroupafterpurchase/vendorgroupafterpurchase.php:52
Call stack
# Function Location
1 () JROOT/plugins/hikashop/vendorgroupafterpurchase/vendorgroupafterpurchase.php:52
2 plgHikashopVendorgroupafterpurchase->onProductDisplay() JROOT/libraries/joomla/event/event.php:70
3 JEvent->update() JROOT/libraries/joomla/event/dispatcher.php:160
4 JEventDispatcher->trigger() JROOT/libraries/src/Application/BaseApplication.php:108
5 Joomla\CMS\Application\BaseApplication->triggerEvent() JROOT/administrator/components/com_hikashop/views/product/tmpl/form.php:630
6 include() JROOT/libraries/src/MVC/View/HtmlView.php:701
7 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/administrator/components/com_hikashop/helpers/helper.php:2616
8 hikashopView->loadTemplate() JROOT/libraries/src/MVC/View/HtmlView.php:230
9 Joomla\CMS\MVC\View\HtmlView->display() JROOT/administrator/components/com_hikashop/helpers/helper.php:2571
10 hikashopView->display() JROOT/administrator/components/com_hikashop/views/product/view.html.php:31
11 ProductViewProduct->display() JROOT/libraries/src/MVC/Controller/BaseController.php:664
12 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/administrator/components/com_hikashop/helpers/helper.php:2308
13 hikashopController->display() JROOT/administrator/components/com_hikashop/controllers/product.php:56
14 ProductController->edit() JROOT/libraries/src/MVC/Controller/BaseController.php:702
15 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/administrator/components/com_hikashop/helpers/helper.php:2286
16 hikashopController->execute() JROOT/administrator/components/com_hikashop/hikashop.php:73
17 require_once() JROOT/libraries/src/Component/ComponentHelper.php:402
18 Joomla\CMS\Component\ComponentHelper::executeComponent() JROOT/libraries/src/Component/ComponentHelper.php:377
19 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:101
20 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:159
21 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:225
22 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/index.php:51

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

  • Posts: 75481
  • Thank you received: 11749
  • MODERATOR
4 months 1 week ago #338412

Hi,

This error comes from HikaMarket. Apparently, you're using an old version of HikaMarket which doesn't support your version of PHP.
Updating HikaMarket should fix the problem.
A quick fix is to disable the plugin "vendorgroupafterpurchase" included with HikaMarket as it will prevent the error from happening.
But it also means that the user won't be added to the vendor group after the purchase of the product. So if you use this capability, update will be required.

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

  • Posts: 52
  • Thank you received: 2
  • Hikashop Business
4 months 1 week ago #338445

We have uninstalled HikaMarket about 2 years ago as we did not use it anymore.

So I could delete the plugin really, I was wondering if there are some remnants of HikaMarket in the system. Is there anyway to check for that?

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

  • Posts: 52
  • Thank you received: 2
  • Hikashop Business
4 months 1 week ago #338446

Actually it seems the plugin belongs to Hikashop, see image

Attachments:

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

  • Posts: 75481
  • Thank you received: 11749
  • MODERATOR
4 months 1 week ago #338449

Hi,

The plugin is of the group "hikashop" but is included in and installed by HikaMarket.
For example HikaShop includes a plugin "Search - HikaShop products" plugin. Even though it is of the group "search" it's a plugin included in and installed by HikaShop, and not something by default in Joomla's search system.
It just means that this plugin integrates with HikaShop.

Search for "vendor" and "hikamarket" in the plugins and modules manager of your website to find remnants of HikaMarket.

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

Time to create page: 0.059 seconds
Powered by Kunena Forum