cpanel problems

  • Posts: 5
  • Thank you received: 0
7 years 9 months ago #262107

-- HikaShop version -- : 3.0.0
-- Joomla version -- : 3.6.5
Hi,
I have upgraded a site with hikashop 3.0 buiseness and i have 2 problems with the cpanel menu link.

when i clic on the link see your orders : i had this error :
Call to a member function trans() on null

and i can't access to the see your oreders option, so the customers can't buy their order when they already exist.
i enable the debug option in joomla and i had this :
Call stack
# Function Location
1 JApplicationCms->execute() /datas/vol3/w4a162733/var/www/domain.tld/htdocs/index.php:49
2 JApplicationSite->doExecute() /datas/vol3/w4a162733/var/www/domain.tld/htdocs/libraries/cms/application/cms.php:261
3 JApplicationSite->dispatch() /datas/vol3/w4a162733/var/www/domain.tld/htdocs/libraries/cms/application/site.php:230
4 JComponentHelper::renderComponent() /datas/vol3/w4a162733/var/www/domain.tld/htdocs/libraries/cms/application/site.php:191
5 JComponentHelper::executeComponent() /datas/vol3/w4a162733/var/www/domain.tld/htdocs/libraries/cms/component/helper.php:380
6 require_once() /datas/vol3/w4a162733/var/www/domain.tld/htdocs/libraries/cms/component/helper.php:405
7 hikashopController->execute() /datas/vol3/w4a162733/var/www/domain.tld/htdocs/components/com_hikashop/hikashop.php:77
8 JControllerLegacy->execute() /datas/vol3/w4a162733/var/www/domain.tld/htdocs/administrator/components/com_hikashop/helpers/helper.php:1728
9 orderController->listing() /datas/vol3/w4a162733/var/www/domain.tld/htdocs/libraries/legacy/controller/legacy.php:702
10 hikashopController->listing() /datas/vol3/w4a162733/var/www/domain.tld/htdocs/components/com_hikashop/controllers/order.php:85
11 hikashopController->display() /datas/vol3/w4a162733/var/www/domain.tld/htdocs/administrator/components/com_hikashop/helpers/helper.php:1485
12 JControllerLegacy->display() /datas/vol3/w4a162733/var/www/domain.tld/htdocs/administrator/components/com_hikashop/helpers/helper.php:1749
13 OrderViewOrder->display() /datas/vol3/w4a162733/var/www/domain.tld/htdocs/libraries/legacy/controller/legacy.php:664
14 hikashopView->display() /datas/vol3/w4a162733/var/www/domain.tld/htdocs/components/com_hikashop/views/order/view.html.php:24
15 JViewLegacy->display() /datas/vol3/w4a162733/var/www/domain.tld/htdocs/administrator/components/com_hikashop/helpers/helper.php:2019
16 JViewLegacy->loadTemplate() /datas/vol3/w4a162733/var/www/domain.tld/htdocs/libraries/legacy/view/legacy.php:216
17 include() /datas/vol3/w4a162733/var/www/domain.tld/htdocs/libraries/legacy/view/legacy.php:677

if someone has an answer for this, thanks by advance

Last edit: 7 years 9 months ago by lefabdu51.

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
7 years 9 months ago #262120

Hi,

Add the code:

$category = hikashop_get('type.categorysub');
		$category->type = 'status';
		$category->load(true);
		$this->assignRef('order_statuses',$category);
		$cart = hikashop_get('helper.cart');
		$this->assignRef('cart',$cart);
		$currencyClass = hikashop_get('class.currency');
		$this->assignRef('currencyHelper',$currencyClass);
after the line:
public function listing() {
in the file components/com_hikashop/views/order/view.html.php
That's because you have a view override of the orders listing view file from an old version of HikaShop and we've completely rewritten it for HikaShop 3.0.0. This code change I'm proposing will add the backward compatibility so that you should be able to keep your view override.

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

  • Posts: 5
  • Thank you received: 0
7 years 9 months ago #262158

thanks. This solves the probleme.
but when i had the list, no orders appears.
I have this message for the lines 114, 116, 121, 126,189 and 193.
Notice: Trying to get property of non-object in /datas/vol3/w4a162733/var/www/domain.tld/htdocs/templates/protostarplus/html/com_hikashop/order/listing.php on line

If i delete this file, this works fine with the hikashop V3 view

Another problem i have with the cpanel is with one overriden file cpanel.php
i haven't touched your code but i had inserted a jmodulehelper function to load one specific module directly in the end of the page.
(after your last div)...
but both legacy and new css style appears in the same place.

Idem, this works fine if i delete the cpanel.php file.
your legacy functions doesnt seems to work fine for me.

So i am thinking about redoing all my overrides, unless if it is useful for you if i post everey error that i have.

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

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
7 years 9 months ago #262194

Hi,

1 - Because you have a view override, you have some old content and some code might not be fully compatible with the new internal data for order listing.
But I know that Nicolas made a commit recently in order to fix some retro-compatibility in the order listing.

2 - Without knowing on which version your override was based on, it will be difficult to tell you.
Please note that there is just "legacy" feature for the "add to cart" and the "checkout".
Afterwards, we provide a "style / default" CSS file which is a legacy CSS file ; but there is no extra "legacy" settings in HikaShop for these views.
But because HikaShop 3.0 is a major release ; a lot of content have change and we tried to improve as much as we could.
So if you have an old cpanel, you need to also have the retro-compatibility CSS to display that cpanel using the old CSS rules.
Otherwise, you can use the new cpanel design by making a new override.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 5
  • Thank you received: 0
7 years 9 months ago #262260

Hi,
My overrides are based on 2.6.4 version for hikashop.
I have begin this project 2 months ago.

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
7 years 9 months ago #262261

Hi,

Ok. Try changing the code:
$rows = $db->loadObjectList('order_id');
to:
$rows = $db->loadObjectList();
in the file components/com_hikashop/views/order/view.html.php and it should remove these warnings and display your orders with your old view override.

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

Time to create page: 0.060 seconds
Powered by Kunena Forum