Changing a menu item results in error

  • Posts: 503
  • Thank you received: 21
  • Hikashop Business
10 months 1 week ago #351125

-- HikaShop version -- : 4.7.2
-- Joomla version -- : 4.2.9
-- PHP version -- : 8.1
-- Error-message(debug-mod must be tuned on) -- : Unsupported operand types: string / string

Hi,

When I try to change an excisting menu item (f.e. from URL to Hikashop-Product listing) the system returns an error:

0 Unsupported operand types: string / string
Call stack
# Function Location
1 () JROOT/administrator/components/com_hikashop/views/menus/tmpl/options_display_div.php:50
2 include() JROOT/libraries/src/MVC/View/HtmlView.php:410
3 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/administrator/components/com_hikashop/helpers/helper.php:2785
4 hikashopView->loadTemplate() JROOT/administrator/components/com_hikashop/views/menus/tmpl/options.php:75
5 include() JROOT/libraries/src/MVC/View/HtmlView.php:410
6 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/administrator/components/com_hikashop/helpers/helper.php:2785
7 hikashopView->loadTemplate() JROOT/libraries/src/MVC/View/HtmlView.php:203
8 Joomla\CMS\MVC\View\HtmlView->display() JROOT/administrator/components/com_hikashop/helpers/helper.php:2740
9 hikashopView->display() JROOT/administrator/components/com_hikashop/views/menus/view.html.php:23
10 MenusViewMenus->display() JROOT/administrator/components/com_hikashop/helpers/helper.php:872
11 hikashop_getLayout() JROOT/components/com_hikashop/fields/selectoptions.php:33
12 JFormFieldSelectoptions->getInput() JROOT/libraries/src/Form/FormField.php:1029
13 Joomla\CMS\Form\FormField->renderField() JROOT/layouts/joomla/edit/fieldset.php:43
14 include() JROOT/libraries/src/Layout/FileLayout.php:128
15 Joomla\CMS\Layout\FileLayout->render() JROOT/libraries/src/Layout/LayoutHelper.php:76
16 Joomla\CMS\Layout\LayoutHelper::render() JROOT/layouts/joomla/edit/params.php:170
17 include() JROOT/libraries/src/Layout/FileLayout.php:128
18 Joomla\CMS\Layout\FileLayout->render() JROOT/libraries/src/Layout/LayoutHelper.php:76
19 Joomla\CMS\Layout\LayoutHelper::render() JROOT/administrator/components/com_menus/tmpl/item/edit.php:139
20 include() JROOT/libraries/src/MVC/View/HtmlView.php:410
21 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/libraries/src/MVC/View/HtmlView.php:203
22 Joomla\CMS\MVC\View\HtmlView->display() JROOT/administrator/components/com_menus/src/View/Item/HtmlView.php:115
23 Joomla\Component\Menus\Administrator\View\Item\HtmlView->display() JROOT/libraries/src/MVC/Controller/BaseController.php:639
24 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/administrator/components/com_menus/src/Controller/DisplayController.php:73
25 Joomla\Component\Menus\Administrator\Controller\DisplayController->display() JROOT/libraries/src/MVC/Controller/BaseController.php:672
26 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:143
27 Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:355
28 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:143
29 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:186
30 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:294
31 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:61
32 require_once() JROOT/administrator/index.php:32

Attachments:

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

  • Posts: 81182
  • Thank you received: 12995
  • MODERATOR
10 months 1 week ago #351137

Hi,

Thank you for your feedback. I've made a patch which should fix the problem. Download again the HikaShop install package on our website and install it on yours and it will add the patch.

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

  • Posts: 503
  • Thank you received: 21
  • Hikashop Business
10 months 1 week ago #351165

Hi,

Thanks. I downloaded the package but I get an error when installing it. See screenshot.

Attachments:

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

  • Posts: 81182
  • Thank you received: 12995
  • MODERATOR
10 months 1 week ago #351171

Hi,

This indicates you have an error with the installation mechanism.
This is outside the scope of HikaShop itself.
You must have some permission issues in some of the folders of your website preventing the Joomla installer from installing HikaShop.
Are you able to install other plugins ?
If no, then it must be linked to the tmp folder when Joomla uploads the files.
If yes, then it must be linked to the folders of HikaShop. So try renaming the folders administrator/components/com_hikashop/ and components/com_hikashop to something else via FTP and try again.

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

  • Posts: 503
  • Thank you received: 21
  • Hikashop Business
10 months 1 week ago #351178

Indeed it was related to the hikashop folders. I renamed them and the install was ok. But the error still remains in the menu edit.

Last edit: 10 months 1 week ago by michelpouli.

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

  • Posts: 81182
  • Thank you received: 12995
  • MODERATOR
10 months 1 week ago #351179

Hi,

Are you sure that you've used the new install package and not an old version ?
Also, could you provide again the debug details ? It's possible that the error is not the exactly same.

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

  • Posts: 503
  • Thank you received: 21
  • Hikashop Business
10 months 1 week ago #351209

Hi, yes I downloaded the zip and tar.gz files, but they both give the same result.

This is the call stack:

Er heeft zich een fout voorgedaan.
0 Unsupported operand types: string / string
Call stack
# Function Location
1 () JROOT/administrator/components/com_hikashop/views/menus/tmpl/options_display_table.php:24
2 include() JROOT/libraries/src/MVC/View/HtmlView.php:410
3 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/administrator/components/com_hikashop/helpers/helper.php:2785
4 hikashopView->loadTemplate() JROOT/administrator/components/com_hikashop/views/menus/tmpl/options.php:75
5 include() JROOT/libraries/src/MVC/View/HtmlView.php:410
6 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/administrator/components/com_hikashop/helpers/helper.php:2785
7 hikashopView->loadTemplate() JROOT/libraries/src/MVC/View/HtmlView.php:203
8 Joomla\CMS\MVC\View\HtmlView->display() JROOT/administrator/components/com_hikashop/helpers/helper.php:2740
9 hikashopView->display() JROOT/administrator/components/com_hikashop/views/menus/view.html.php:23
10 MenusViewMenus->display() JROOT/administrator/components/com_hikashop/helpers/helper.php:872
11 hikashop_getLayout() JROOT/components/com_hikashop/fields/selectoptions.php:33
12 JFormFieldSelectoptions->getInput() JROOT/libraries/src/Form/FormField.php:1029
13 Joomla\CMS\Form\FormField->renderField() JROOT/layouts/joomla/edit/fieldset.php:43
14 include() JROOT/libraries/src/Layout/FileLayout.php:128
15 Joomla\CMS\Layout\FileLayout->render() JROOT/libraries/src/Layout/LayoutHelper.php:76
16 Joomla\CMS\Layout\LayoutHelper::render() JROOT/layouts/joomla/edit/params.php:170
17 include() JROOT/libraries/src/Layout/FileLayout.php:128
18 Joomla\CMS\Layout\FileLayout->render() JROOT/libraries/src/Layout/LayoutHelper.php:76
19 Joomla\CMS\Layout\LayoutHelper::render() JROOT/administrator/components/com_menus/tmpl/item/edit.php:139
20 include() JROOT/libraries/src/MVC/View/HtmlView.php:410
21 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/libraries/src/MVC/View/HtmlView.php:203
22 Joomla\CMS\MVC\View\HtmlView->display() JROOT/administrator/components/com_menus/src/View/Item/HtmlView.php:115
23 Joomla\Component\Menus\Administrator\View\Item\HtmlView->display() JROOT/libraries/src/MVC/Controller/BaseController.php:639
24 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/administrator/components/com_menus/src/Controller/DisplayController.php:73
25 Joomla\Component\Menus\Administrator\Controller\DisplayController->display() JROOT/libraries/src/MVC/Controller/BaseController.php:672
26 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:143
27 Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:355
28 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:143
29 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:186
30 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:294
31 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:61
32 require_once() JROOT/administrator/index.php:32

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

  • Posts: 81182
  • Thank you received: 12995
  • MODERATOR
10 months 1 week ago #351211

Hi,

Great. As I expected, it's actually not the same error.
The first one you had was in the file /administrator/components/com_hikashop/views/menus/tmpl/options_display_div.php but this new one is in /administrator/components/com_hikashop/views/menus/tmpl/options_display_table.php
It's the same type of error, but in another place.
So it indicates that my previous patch is working, but there is a second issue to fix.
I've made a new patch for this one. Please download again the install package on our website and install it on yours.

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

  • Posts: 503
  • Thank you received: 21
  • Hikashop Business
10 months 1 week ago #351222

Hi Nicolas,

Thanks, I installed it. The error is still there. This is the new call stack:

Er heeft zich een fout voorgedaan.
0 Unsupported operand types: string / string
Call stack
# Function Location
1 () JROOT/administrator/components/com_hikashop/views/menus/tmpl/options_display_list.php:25
2 include() JROOT/libraries/src/MVC/View/HtmlView.php:410
3 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/administrator/components/com_hikashop/helpers/helper.php:2785
4 hikashopView->loadTemplate() JROOT/administrator/components/com_hikashop/views/menus/tmpl/options.php:75
5 include() JROOT/libraries/src/MVC/View/HtmlView.php:410
6 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/administrator/components/com_hikashop/helpers/helper.php:2785
7 hikashopView->loadTemplate() JROOT/libraries/src/MVC/View/HtmlView.php:203
8 Joomla\CMS\MVC\View\HtmlView->display() JROOT/administrator/components/com_hikashop/helpers/helper.php:2740
9 hikashopView->display() JROOT/administrator/components/com_hikashop/views/menus/view.html.php:23
10 MenusViewMenus->display() JROOT/administrator/components/com_hikashop/helpers/helper.php:872
11 hikashop_getLayout() JROOT/components/com_hikashop/fields/selectoptions.php:33
12 JFormFieldSelectoptions->getInput() JROOT/libraries/src/Form/FormField.php:1029
13 Joomla\CMS\Form\FormField->renderField() JROOT/layouts/joomla/edit/fieldset.php:43
14 include() JROOT/libraries/src/Layout/FileLayout.php:128
15 Joomla\CMS\Layout\FileLayout->render() JROOT/libraries/src/Layout/LayoutHelper.php:76
16 Joomla\CMS\Layout\LayoutHelper::render() JROOT/layouts/joomla/edit/params.php:170
17 include() JROOT/libraries/src/Layout/FileLayout.php:128
18 Joomla\CMS\Layout\FileLayout->render() JROOT/libraries/src/Layout/LayoutHelper.php:76
19 Joomla\CMS\Layout\LayoutHelper::render() JROOT/administrator/components/com_menus/tmpl/item/edit.php:139
20 include() JROOT/libraries/src/MVC/View/HtmlView.php:410
21 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/libraries/src/MVC/View/HtmlView.php:203
22 Joomla\CMS\MVC\View\HtmlView->display() JROOT/administrator/components/com_menus/src/View/Item/HtmlView.php:115
23 Joomla\Component\Menus\Administrator\View\Item\HtmlView->display() JROOT/libraries/src/MVC/Controller/BaseController.php:639
24 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/administrator/components/com_menus/src/Controller/DisplayController.php:73
25 Joomla\Component\Menus\Administrator\Controller\DisplayController->display() JROOT/libraries/src/MVC/Controller/BaseController.php:672
26 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:143
27 Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:355
28 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:143
29 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:186
30 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:294
31 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:61
32 require_once() JROOT/administrator/index.php:32

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

  • Posts: 81182
  • Thank you received: 12995
  • MODERATOR
10 months 1 week ago #351223

Hi,

My bad, I could have thought that this file would be problematic too...
I've made a patch for this one too. It should be the last one.
Please download again the install package on our website and install it on yours.

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

  • Posts: 503
  • Thank you received: 21
  • Hikashop Business
10 months 1 week ago #351229

Thanks, that solved the issue. Works fine now.

The following user(s) said Thank You: nicolas

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

Time to create page: 0.072 seconds
Powered by Kunena Forum