Joomla and Hikashop update

  • Posts: 28
  • Thank you received: 3
  • Hikashop Business
10 months 2 weeks ago #357986

-- HikaShop version -- : 5.0.2
-- Joomla version -- : 4.4.1
-- PHP version -- : 8.2
-- Browser(s) name and version -- : All
-- Error-message(debug-mod must be tuned on) -- : See directly on the page, debug is on.

Hi,
I just updated a website on a clone server.
Updated from joomla 3.10.12 to Joomla 4.4.1
PHP 7.4 updated to 8.2
And hikashop 4.3.0 updated to 5.0.2
I also deactivate hikaserial 3.1.1 which was previously installed but no more needed
It seems that 4 lugins are still installed :
HikaSerial consume module
HikaShop Integration plugin
Serial Private Content
Serial Private Content editor button - HikaSerial

Can't find my way to remove them

And when i go on my shop page (library)
I have an error message...

2002

No such file or directory

Call stack
# Function Location
1 () JROOT/templates/yootheme/html/com_hikashop/owner_doesnt_buy.php:43
2 mysqli->__construct() JROOT/templates/yootheme/html/com_hikashop/owner_doesnt_buy.php:43
3 get_own_id_product_list() JROOT/templates/yootheme/html/com_hikashop/product/listing_div.php:16
4 include() JROOT/libraries/src/MVC/View/HtmlView.php:415
5 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/administrator/components/com_hikashop/helpers/helper.php:2915
6 hikashopView->loadTemplate() JROOT/components/com_hikashop/views/product/tmpl/listing.php:368
7 include() JROOT/libraries/src/MVC/View/HtmlView.php:415
8 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/administrator/components/com_hikashop/helpers/helper.php:2915
9 hikashopView->loadTemplate() JROOT/libraries/src/MVC/View/HtmlView.php:203
10 Joomla\CMS\MVC\View\HtmlView->display() JROOT/administrator/components/com_hikashop/helpers/helper.php:2869
11 hikashopView->display() JROOT/components/com_hikashop/views/product/view.html.php:29
12 ProductViewProduct->display() JROOT/administrator/components/com_hikashop/helpers/helper.php:935
13 hikashop_getLayout() JROOT/components/com_hikashop/views/category/tmpl/listing.php:143
14 include() JROOT/libraries/src/MVC/View/HtmlView.php:415
15 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/administrator/components/com_hikashop/helpers/helper.php:2915
16 hikashopView->loadTemplate() JROOT/libraries/src/MVC/View/HtmlView.php:203
17 Joomla\CMS\MVC\View\HtmlView->display() JROOT/administrator/components/com_hikashop/helpers/helper.php:2869
18 hikashopView->display() JROOT/components/com_hikashop/views/category/view.html.php:26
19 CategoryViewCategory->display() JROOT/libraries/src/MVC/Controller/BaseController.php:660
20 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/administrator/components/com_hikashop/helpers/helper.php:2576
21 hikashopController->display() JROOT/administrator/components/com_hikashop/helpers/helper.php:2285
22 hikashopController->listing() JROOT/libraries/src/MVC/Controller/BaseController.php:693
23 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/administrator/components/com_hikashop/helpers/helper.php:2554
24 hikashopController->execute() JROOT/components/com_hikashop/hikashop.php:88
25 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
26 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73
27 Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361
28 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:208
29 Joomla\CMS\Application\SiteApplication->dispatch() JROOT/libraries/src/Application/SiteApplication.php:249
30 Joomla\CMS\Application\SiteApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:293
31 Joomla\CMS\Application\CMSApplication->execute() JROOT/includes/app.php:61
32 require_once() JROOT/index.php:32

Any idea to fix it ??

Thanks a lot !
And happy new year hikateam !

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 months 2 weeks ago #357990

Hi,

The error comes from the view /templates/yootheme/html/com_hikashop/owner_doesnt_buy.php which isn't a file from HikaShop but from your template.
I would recommend reporting this issue to your template provider.
In the meantime, I can only recommend to temporarily rename the file /templates/yootheme/html/com_hikashop/product/listing_div.php via FTP in order to deactivate the view override in your template which is causing the problem.
This will remove the error, but you'll also loose the customization of your template on the products listings.

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

  • Posts: 28
  • Thank you received: 3
  • Hikashop Business
10 months 2 weeks ago #357995

Hi Nicolas,

I tryied your solution.

It seems that all the pages in JROOT/templates/yootheme/html/com_hikashop/ are not comptaible with the update of wathever ... php, joomla 4...

Now new message :

Call stack
# Function Location
1 () JROOT/templates/yootheme/html/com_hikashop/product/add_to_cart_ajax.php:13
2 include() JROOT/libraries/src/MVC/View/HtmlView.php:415
3 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/administrator/components/com_hikashop/helpers/helper.php:2915
4 hikashopView->loadTemplate() JROOT/components/com_hikashop/views/product/tmpl/add_to_cart_listing.php:13
5 include() JROOT/libraries/src/MVC/View/HtmlView.php:415
6 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/administrator/components/com_hikashop/helpers/helper.php:2915
7 hikashopView->loadTemplate() JROOT/components/com_hikashop/views/product/tmpl/listing_img_title.php:164
8 include() JROOT/libraries/src/MVC/View/HtmlView.php:415
9 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/administrator/components/com_hikashop/helpers/helper.php:2915
10 hikashopView->loadTemplate() JROOT/components/com_hikashop/views/product/tmpl/listing_div.php:201
11 include() JROOT/libraries/src/MVC/View/HtmlView.php:415
12 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/administrator/components/com_hikashop/helpers/helper.php:2915
13 hikashopView->loadTemplate() JROOT/components/com_hikashop/views/product/tmpl/listing.php:368
14 include() JROOT/libraries/src/MVC/View/HtmlView.php:415
15 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/administrator/components/com_hikashop/helpers/helper.php:2915
16 hikashopView->loadTemplate() JROOT/libraries/src/MVC/View/HtmlView.php:203
17 Joomla\CMS\MVC\View\HtmlView->display() JROOT/administrator/components/com_hikashop/helpers/helper.php:2869
18 hikashopView->display() JROOT/components/com_hikashop/views/product/view.html.php:29
19 ProductViewProduct->display() JROOT/administrator/components/com_hikashop/helpers/helper.php:935
20 hikashop_getLayout() JROOT/components/com_hikashop/views/category/tmpl/listing.php:143
21 include() JROOT/libraries/src/MVC/View/HtmlView.php:415
22 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/administrator/components/com_hikashop/helpers/helper.php:2915
23 hikashopView->loadTemplate() JROOT/libraries/src/MVC/View/HtmlView.php:203
24 Joomla\CMS\MVC\View\HtmlView->display() JROOT/administrator/components/com_hikashop/helpers/helper.php:2869
25 hikashopView->display() JROOT/components/com_hikashop/views/category/view.html.php:26
26 CategoryViewCategory->display() JROOT/libraries/src/MVC/Controller/BaseController.php:660
27 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/administrator/components/com_hikashop/helpers/helper.php:2576
28 hikashopController->display() JROOT/administrator/components/com_hikashop/helpers/helper.php:2285
29 hikashopController->listing() JROOT/libraries/src/MVC/Controller/BaseController.php:693
30 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/administrator/components/com_hikashop/helpers/helper.php:2554
31 hikashopController->execute() JROOT/components/com_hikashop/hikashop.php:88
32 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
33 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73
34 Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361
35 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:208
36 Joomla\CMS\Application\SiteApplication->dispatch() JROOT/libraries/src/Application/SiteApplication.php:249
37 Joomla\CMS\Application\SiteApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:293
38 Joomla\CMS\Application\CMSApplication->execute() JROOT/includes/app.php:61
39 require_once() JROOT/index.php:32

I think i can rename all pages one by one but it seems useless ...
Maybe there is a way to disable all hikashop/yootheme templates ?
And i'll find my way to start again my customizations ?
Thanks

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

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
10 months 2 weeks ago #357996

Hello,

We always think that you have to contact the template creator support because you have the same issue but for a different view override.
Of course you can continue to rename any concern file to get rid of the error but this cannot constitute a sufficient solution.
You have to contact the Team Yootheme.

Regards

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

  • Posts: 28
  • Thank you received: 3
  • Hikashop Business
10 months 2 weeks ago #358001

Hi,

This seems to be a Hikashop problem. Please contact Hikashop regarding this.


"On my left : Rafaël Nadal, on my right : Novak Djoković, i'm the ball !!!"

Maybe we can try... Hem... it's your hoster's problem....

Sorry trying to joke...:) :(

Last edit: 10 months 2 weeks ago by LaMarelle.
The following user(s) said Thank You: Philip

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 months 2 weeks ago #358007

Hi,

Novak must be sick today.
The error you have now is in the file /templates/yootheme/html/com_hikashop/product/add_to_cart_ajax.php
That's a view override of your template.
Rename that file via FTP and it will deactivate the override from the template and fix the problem.
So the problem is coming from the template and they should be the one addressing it.

If you want to deactivate all the overrides of HikaShop from the template, you can rename the folder /templates/yootheme/html/com_hikashop but you might loose a lot of customization from the template. Ideally, the template provider should fix the view overrides it includes for HikaShop.

The following user(s) said Thank You: Philip

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

  • Posts: 28
  • Thank you received: 3
  • Hikashop Business
10 months 2 weeks ago #358022

Hi Nicolas.
Here is Yootheme answer :

The file

/templates/yootheme/html/com_hikashop/product/add_to_cart_ajax.php

is not a Yootheme Pro file. Where does this file come from?


I'm really tired of being the ball between you and Yootheme.

...

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

  • Posts: 28
  • Thank you received: 3
  • Hikashop Business
10 months 2 weeks ago #358023

The error you have now is in the file /templates/yootheme/html/com_hikashop/product/add_to_cart_ajax.php

It is not clear to me why Hikashop thinks that Yootheme should look into a file that was created by Hikashop. Could they be a bit more specific, please?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 months 2 weeks ago #358025

Hi,

Like all standard Joomla components, HikaShop integrates with the Joomla Model View Controller pattern.
Thanks to this users can, among other things, easily customize the views of components by creating override files of the views in the template.
So, for example, the file components/com_hikashop/views/product/tmpl/add_to_cart_ajax.php can be overridden by making a copy of that file to templates/yootheme/html/com_hikashop/product/add_to_cart_ajax.php and then customizing that copy.
In HikaShop, we provide the interface in the menu Display>Views, in order to be able to create overrides more easily on your end.
The advantage of doing this is that when you update HikaShop later on, you keep your modifications instead of having to redo them after each HikaShop update. The disadvantage of this is that you keep using the code from when you made the override file. If it was done 5 years ago, then your override file is based on code that was in HikaShop 5 years ago.
And thus, when you update Joomla and Joomla has changed things up in a way that makes the old code generate errors, you won't get the modifications from the original view file in your override.
And you get errors like you reported to us.
Also, some templates ship with view overrides pre created for HikaShop.

So basically, the error either come from your template provider not updating the view overrides they include by default in their template, or from view overrides you (or someone on your end) created in the past.
Either way, these override files are not in HikaShop by default, and we don't know how you or your template provider modified these files in the past, so we can't provide a proper solution for these errors.
Since you reported the issues, I supposed these were not created on your end, and thus must have come from your template provider. But maybe you forgot you had made them in the past ?

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

  • Posts: 28
  • Thank you received: 3
  • Hikashop Business
10 months 2 weeks ago #358069

Hi Nicolas,
Ok i understand.
There's no problem regarding Yootheme.

In fact i modified views when i created the website.
So i imagine i have to discard those modifications. Update files to current version and apply my modifications again ?

Most of those modifications were about the possibility to add selected products on cart page.
We sell only ebooks and it is not necessary for us to provide the possibility to buy 2 or more exemplary.
So i need to hide this possibility everywhere it appear.

Is there a way to do this using hikashop interface or i have to modify my views as i did before ?

Thanks

Last edit: 10 months 2 weeks ago by LaMarelle.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 months 2 weeks ago #358070

Hi,

So i imagine i have to discard those modifications. Update files to current version and apply my modifications again ?

Yes, exactly.

Is there a way to do this using hikashop interface or i have to modify my views as i did before ?

You don't need to modify view files for that.
In each product, you have a setting "quantity input" where you can configure the look of the quantity input for the product, as well as deactivate it.
Also, if that setting is set to "inherit", then the system will use the main setting "quantity input method" of the HikaShop configuration page. So you can also do it there if it applies to all the products on your shop.

The following user(s) said Thank You: LaMarelle

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

Time to create page: 0.076 seconds
Powered by Kunena Forum