[Skip to main content](#vessel-content)

#   Wishes module - Call to a member function displayButton() on null

##

- **[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")**
- [![neo191987's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35364.jpg)](/forum/user/35364-neo191987 "View neo191987's Profile") Topic Author
- [ Offline](/forum/user/35364-neo191987)

Less More

- Posts: 431
- Thank you received: 19
-
-

9 years 11 months ago -  9 years 11 months ago [\#256198](#256198) by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")  *[Wishes module - Call to a member function displayButton() on null](/forum/41-wishlist/887667-wishes-module-call-to-a-member-function-displaybutton-on-null#256198 "-- HikaShop version -- : 2.6.4  Hi today hikashop upgraded to latest archive from today and the wishes module gives the following error: Error displaying the error page: Call to a member function displayButton () on null: Call to a member function displayButton () on null. The previous archive was no problem. template: Gantry 5.3.9 / hydrogen 5.3.9 Displayed somewhere here's the problem: echo $this-&gt;cartHelper-&gt;displayButton($displayText, 'wishlist', $this-&gt;params, hikashop&#95;completeLink('cart&amp;task=showcart&amp;cart&#95;id=' . $this-&gt;element-&gt;cart&#95;id . $this-&gt;cart&#95;itemid . '&amp;cart&#95;type='.$this-&gt;cart&#95;type), 'window.location.href = &#92;''.hikashop&#95;completeLink('cart&amp;task=showcart&amp;cart&#95;id='.$this-&gt;element-&gt;cart&#95;id . $this-&gt;cart&#95;itemid . '&amp;cart&#95;type='.$this-&gt;cart&#95;type).'&#92;';return false;');")* was created by *[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")*

-- HikaShop version -- : 2.6.4

Hi today hikashop upgraded to latest archive from today and the wishes module gives the following error: Error displaying the error page: Call to a member function displayButton () on null: Call to a member function displayButton () on null. The previous archive was no problem.
template: Gantry 5.3.9 / hydrogen 5.3.9
Displayed somewhere here's the problem:
echo $this-&gt;cartHelper-&gt;displayButton($displayText, 'wishlist', $this-&gt;params, hikashop_completeLink('cart&amp;task=showcart&amp;cart_id=' . $this-&gt;element-&gt;cart_id . $this-&gt;cart_itemid . '&amp;cart_type='.$this-&gt;cart_type), 'window.location.href = \''.hikashop_completeLink('cart&amp;task=showcart&amp;cart_id='.$this-&gt;element-&gt;cart_id . $this-&gt;cart_itemid . '&amp;cart_type='.$this-&gt;cart_type).'\';return false;');

[ ![ScreenShot11-27-16at10.14AM.PNG](/forum/attachment/34821) ](/forum/attachment/34821 "...6at10.14AM.PNG")

- [ ![ScreenShot11-27-16at10.14AM.PNG](/forum/attachment/34821) ](/forum/attachment/34821 "...6at10.14AM.PNG") [ ](/forum/attachment/34821?download=1 "...6at10.14AM.PNG")

Last edit: 9 years 11 months ago by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQxLXdpc2hsaXN0Lzg4NzY2Ny13aXNoZXMtbW9kdWxlLWNhbGwtdG8tYS1tZW1iZXItZnVuY3Rpb24tZGlzcGxheWJ1dHRvbi1vbi1udWxsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26395
- Thank you received: 4077
-
- [](http://obsi.dev)
-

9 years 11 months ago [\#256208](#256208) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Wishes module - Call to a member function displayButton() on null](/forum/41-wishlist/887667-wishes-module-call-to-a-member-function-displaybutton-on-null#256208 "-- HikaShop version -- : 2.6.4  Hi today hikashop upgraded to latest archive from today and the wishes module gives the following error: Error displaying the error page: Call to a member function displayButton () on null: Call to a member function displayButton () on null. The previous archive was no problem. template: Gantry 5.3.9 / hydrogen 5.3.9 Displayed somewhere here's the problem: echo $this-&gt;cartHelper-&gt;displayButton($displayText, 'wishlist', $this-&gt;params, hikashop&#95;completeLink('cart&amp;task=showcart&amp;cart&#95;id=' . $this-&gt;element-&gt;cart&#95;id . $this-&gt;cart&#95;itemid . '&amp;cart&#95;type='.$this-&gt;cart&#95;type), 'window.location.href = &#92;''.hikashop&#95;completeLink('cart&amp;task=showcart&amp;cart&#95;id='.$this-&gt;element-&gt;cart&#95;id . $this-&gt;cart&#95;itemid . '&amp;cart&#95;type='.$this-&gt;cart&#95;type).'&#92;';return false;');")*

Hi,

You're displaying the view "product / cart".
Your problem is related to the variable "cartHelper" which should be an object but which is currently "null" in your case.

If we take a look at the "view.html.php" file for "product", we can see that code in the function "cart" (function called just before the display of the view), line 2216: Code:

$cartHelper = hikashop_get('helper.cart'); $this-&gt;assignRef('cartHelper', $cartHelper); $this-&gt;cart = $this-&gt;cartHelper;

So the cart helper is right loaded by HikaShop and right assigned as reference for the view.

Now, the first possibility is that your helper cart file is missing.
The second possibility is that you have something in your website which interact with HikaShop and remove that reference.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQxLXdpc2hsaXN0Lzg4NzY2Ny13aXNoZXMtbW9kdWxlLWNhbGwtdG8tYS1tZW1iZXItZnVuY3Rpb24tZGlzcGxheWJ1dHRvbi1vbi1udWxsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")**
- [![neo191987's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35364.jpg)](/forum/user/35364-neo191987 "View neo191987's Profile") Topic Author
- [ Offline](/forum/user/35364-neo191987)

Less More

- Posts: 431
- Thank you received: 19
-
-

9 years 11 months ago -  9 years 11 months ago [\#256249](#256249) by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")  Replied by *[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")* on topic *[Wishes module - Call to a member function displayButton() on null](/forum/41-wishlist/887667-wishes-module-call-to-a-member-function-displaybutton-on-null#256249 "-- HikaShop version -- : 2.6.4  Hi today hikashop upgraded to latest archive from today and the wishes module gives the following error: Error displaying the error page: Call to a member function displayButton () on null: Call to a member function displayButton () on null. The previous archive was no problem. template: Gantry 5.3.9 / hydrogen 5.3.9 Displayed somewhere here's the problem: echo $this-&gt;cartHelper-&gt;displayButton($displayText, 'wishlist', $this-&gt;params, hikashop&#95;completeLink('cart&amp;task=showcart&amp;cart&#95;id=' . $this-&gt;element-&gt;cart&#95;id . $this-&gt;cart&#95;itemid . '&amp;cart&#95;type='.$this-&gt;cart&#95;type), 'window.location.href = &#92;''.hikashop&#95;completeLink('cart&amp;task=showcart&amp;cart&#95;id='.$this-&gt;element-&gt;cart&#95;id . $this-&gt;cart&#95;itemid . '&amp;cart&#95;type='.$this-&gt;cart&#95;type).'&#92;';return false;');")*

Hi I compared the old and the new file and the difference is:
if($cart_id){
$cartInfo = $cartClass-&gt;loadCart($cart_id);
$currUser = hikashop_loadUser(true);
$session = JFactory::getSession();
if(@$currUser-&gt;user_cms_id != $cartInfo-&gt;user_id &amp;&amp; $session-&gt;getId() != $cartInfo-&gt;session_id){
$notice_html = '';
$this-&gt;assignRef('notice_html', $notice_html);
return;
}
}

If you remove the line: return; - already working but do not know if Incorrect be removed.

Last edit: 9 years 11 months ago by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQxLXdpc2hsaXN0Lzg4NzY2Ny13aXNoZXMtbW9kdWxlLWNhbGwtdG8tYS1tZW1iZXItZnVuY3Rpb24tZGlzcGxheWJ1dHRvbi1vbi1udWxsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86359
- Thank you received: 14296
-
-

9 years 11 months ago [\#256287](#256287) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Wishes module - Call to a member function displayButton() on null](/forum/41-wishlist/887667-wishes-module-call-to-a-member-function-displaybutton-on-null#256287 "-- HikaShop version -- : 2.6.4  Hi today hikashop upgraded to latest archive from today and the wishes module gives the following error: Error displaying the error page: Call to a member function displayButton () on null: Call to a member function displayButton () on null. The previous archive was no problem. template: Gantry 5.3.9 / hydrogen 5.3.9 Displayed somewhere here's the problem: echo $this-&gt;cartHelper-&gt;displayButton($displayText, 'wishlist', $this-&gt;params, hikashop&#95;completeLink('cart&amp;task=showcart&amp;cart&#95;id=' . $this-&gt;element-&gt;cart&#95;id . $this-&gt;cart&#95;itemid . '&amp;cart&#95;type='.$this-&gt;cart&#95;type), 'window.location.href = &#92;''.hikashop&#95;completeLink('cart&amp;task=showcart&amp;cart&#95;id='.$this-&gt;element-&gt;cart&#95;id . $this-&gt;cart&#95;itemid . '&amp;cart&#95;type='.$this-&gt;cart&#95;type).'&#92;';return false;');")*

Hi,

Thanks for the feedback.
That's a security check we've added and is necessary.
Removing the return is not a good solution.
It's better to move the code that Jerome pointed at before the code you pointed at.
It will avoid the fatal error and will keep the security check working properly.
I've done the change on our end in the install package available on our website.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQxLXdpc2hsaXN0Lzg4NzY2Ny13aXNoZXMtbW9kdWxlLWNhbGwtdG8tYS1tZW1iZXItZnVuY3Rpb24tZGlzcGxheWJ1dHRvbi1vbi1udWxsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")**
- [![neo191987's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35364.jpg)](/forum/user/35364-neo191987 "View neo191987's Profile") Topic Author
- [ Offline](/forum/user/35364-neo191987)

Less More

- Posts: 431
- Thank you received: 19
-
-

9 years 11 months ago -  9 years 11 months ago [\#256293](#256293) by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")  Replied by *[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")* on topic *[Wishes module - Call to a member function displayButton() on null](/forum/41-wishlist/887667-wishes-module-call-to-a-member-function-displaybutton-on-null#256293 "-- HikaShop version -- : 2.6.4  Hi today hikashop upgraded to latest archive from today and the wishes module gives the following error: Error displaying the error page: Call to a member function displayButton () on null: Call to a member function displayButton () on null. The previous archive was no problem. template: Gantry 5.3.9 / hydrogen 5.3.9 Displayed somewhere here's the problem: echo $this-&gt;cartHelper-&gt;displayButton($displayText, 'wishlist', $this-&gt;params, hikashop&#95;completeLink('cart&amp;task=showcart&amp;cart&#95;id=' . $this-&gt;element-&gt;cart&#95;id . $this-&gt;cart&#95;itemid . '&amp;cart&#95;type='.$this-&gt;cart&#95;type), 'window.location.href = &#92;''.hikashop&#95;completeLink('cart&amp;task=showcart&amp;cart&#95;id='.$this-&gt;element-&gt;cart&#95;id . $this-&gt;cart&#95;itemid . '&amp;cart&#95;type='.$this-&gt;cart&#95;type).'&#92;';return false;');")*

Hi this problem disappeared but after a short test already has several other problems:
1. Product information (such as name, image, delete button and etc.) no longer appear in module - Wishes.
2. If you go to another page module Wishes will display that no products, although there are.

Last edit: 9 years 11 months ago by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQxLXdpc2hsaXN0Lzg4NzY2Ny13aXNoZXMtbW9kdWxlLWNhbGwtdG8tYS1tZW1iZXItZnVuY3Rpb24tZGlzcGxheWJ1dHRvbi1vbi1udWxsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86359
- Thank you received: 14296
-
-

9 years 11 months ago [\#256301](#256301) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Wishes module - Call to a member function displayButton() on null](/forum/41-wishlist/887667-wishes-module-call-to-a-member-function-displaybutton-on-null#256301 "-- HikaShop version -- : 2.6.4  Hi today hikashop upgraded to latest archive from today and the wishes module gives the following error: Error displaying the error page: Call to a member function displayButton () on null: Call to a member function displayButton () on null. The previous archive was no problem. template: Gantry 5.3.9 / hydrogen 5.3.9 Displayed somewhere here's the problem: echo $this-&gt;cartHelper-&gt;displayButton($displayText, 'wishlist', $this-&gt;params, hikashop&#95;completeLink('cart&amp;task=showcart&amp;cart&#95;id=' . $this-&gt;element-&gt;cart&#95;id . $this-&gt;cart&#95;itemid . '&amp;cart&#95;type='.$this-&gt;cart&#95;type), 'window.location.href = &#92;''.hikashop&#95;completeLink('cart&amp;task=showcart&amp;cart&#95;id='.$this-&gt;element-&gt;cart&#95;id . $this-&gt;cart&#95;itemid . '&amp;cart&#95;type='.$this-&gt;cart&#95;type).'&#92;';return false;');")*

Hi,

This indicates that the code is not able to load the content of the cart.
You're talking about the "wishes" module, so I assume that you're talking about a wishlist module.
I's possible that the type set to load the data is not correct.
Try adding the line:
$cartClass-&gt;cart_type = $cart_type;
before the line:
$cartInfo = $cartClass-&gt;loadCart($cart_id);
in that view.html.php file.
That will force the type of the cart and should hopefully fix that.

The following user(s) said Thank You: [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQxLXdpc2hsaXN0Lzg4NzY2Ny13aXNoZXMtbW9kdWxlLWNhbGwtdG8tYS1tZW1iZXItZnVuY3Rpb24tZGlzcGxheWJ1dHRvbi1vbi1udWxsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")**
- [![neo191987's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35364.jpg)](/forum/user/35364-neo191987 "View neo191987's Profile") Topic Author
- [ Offline](/forum/user/35364-neo191987)

Less More

- Posts: 431
- Thank you received: 19
-
-

9 years 11 months ago [\#256324](#256324) by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")  Replied by *[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")* on topic *[Wishes module - Call to a member function displayButton() on null](/forum/41-wishlist/887667-wishes-module-call-to-a-member-function-displaybutton-on-null#256324 "-- HikaShop version -- : 2.6.4  Hi today hikashop upgraded to latest archive from today and the wishes module gives the following error: Error displaying the error page: Call to a member function displayButton () on null: Call to a member function displayButton () on null. The previous archive was no problem. template: Gantry 5.3.9 / hydrogen 5.3.9 Displayed somewhere here's the problem: echo $this-&gt;cartHelper-&gt;displayButton($displayText, 'wishlist', $this-&gt;params, hikashop&#95;completeLink('cart&amp;task=showcart&amp;cart&#95;id=' . $this-&gt;element-&gt;cart&#95;id . $this-&gt;cart&#95;itemid . '&amp;cart&#95;type='.$this-&gt;cart&#95;type), 'window.location.href = &#92;''.hikashop&#95;completeLink('cart&amp;task=showcart&amp;cart&#95;id='.$this-&gt;element-&gt;cart&#95;id . $this-&gt;cart&#95;itemid . '&amp;cart&#95;type='.$this-&gt;cart&#95;type).'&#92;';return false;');")*

Great all is well now. Can you fix the archives of Hikashop.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQxLXdpc2hsaXN0Lzg4NzY2Ny13aXNoZXMtbW9kdWxlLWNhbGwtdG8tYS1tZW1iZXItZnVuY3Rpb24tZGlzcGxheWJ1dHRvbi1vbi1udWxsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26395
- Thank you received: 4077
-
- [](http://obsi.dev)
-

9 years 11 months ago [\#256327](#256327) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Wishes module - Call to a member function displayButton() on null](/forum/41-wishlist/887667-wishes-module-call-to-a-member-function-displaybutton-on-null#256327 "-- HikaShop version -- : 2.6.4  Hi today hikashop upgraded to latest archive from today and the wishes module gives the following error: Error displaying the error page: Call to a member function displayButton () on null: Call to a member function displayButton () on null. The previous archive was no problem. template: Gantry 5.3.9 / hydrogen 5.3.9 Displayed somewhere here's the problem: echo $this-&gt;cartHelper-&gt;displayButton($displayText, 'wishlist', $this-&gt;params, hikashop&#95;completeLink('cart&amp;task=showcart&amp;cart&#95;id=' . $this-&gt;element-&gt;cart&#95;id . $this-&gt;cart&#95;itemid . '&amp;cart&#95;type='.$this-&gt;cart&#95;type), 'window.location.href = &#92;''.hikashop&#95;completeLink('cart&amp;task=showcart&amp;cart&#95;id='.$this-&gt;element-&gt;cart&#95;id . $this-&gt;cart&#95;itemid . '&amp;cart&#95;type='.$this-&gt;cart&#95;type).'&#92;';return false;');")*

Hi,

The patch is already commit for the current release.

Regards,

---

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

The following user(s) said Thank You: [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQxLXdpc2hsaXN0Lzg4NzY2Ny13aXNoZXMtbW9kdWxlLWNhbGwtdG8tYS1tZW1iZXItZnVuY3Rpb24tZGlzcGxheWJ1dHRvbi1vbi1udWxsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[CarlosC](/forum/user/6899-carlosc "View CarlosC's Profile")**
- [![CarlosC's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6899-carlosc "View CarlosC's Profile")
- [ Offline](/forum/user/6899-carlosc)

Less More

- Posts: 23
- Thank you received: 0
-
-

9 years 11 months ago [\#256727](#256727) by [CarlosC](/forum/user/6899-carlosc "View CarlosC's Profile")  Replied by *[CarlosC](/forum/user/6899-carlosc "View CarlosC's Profile")* on topic *[Wishes module - Call to a member function displayButton() on null](/forum/41-wishlist/887667-wishes-module-call-to-a-member-function-displaybutton-on-null#256727 "-- HikaShop version -- : 2.6.4  Hi today hikashop upgraded to latest archive from today and the wishes module gives the following error: Error displaying the error page: Call to a member function displayButton () on null: Call to a member function displayButton () on null. The previous archive was no problem. template: Gantry 5.3.9 / hydrogen 5.3.9 Displayed somewhere here's the problem: echo $this-&gt;cartHelper-&gt;displayButton($displayText, 'wishlist', $this-&gt;params, hikashop&#95;completeLink('cart&amp;task=showcart&amp;cart&#95;id=' . $this-&gt;element-&gt;cart&#95;id . $this-&gt;cart&#95;itemid . '&amp;cart&#95;type='.$this-&gt;cart&#95;type), 'window.location.href = &#92;''.hikashop&#95;completeLink('cart&amp;task=showcart&amp;cart&#95;id='.$this-&gt;element-&gt;cart&#95;id . $this-&gt;cart&#95;itemid . '&amp;cart&#95;type='.$this-&gt;cart&#95;type).'&#92;';return false;');")*

Hi,
thanks for this patch it has also solved my ERR 0 - Call to a member function displayButton() on null.

But now if I change my cart to o wishlist and I go back with the ('HIKA_BACK') button there will occure the next ERR because the wishlist is emty.

ERR_CACHE_MISS
(same in Chrome and Firefox)

components\com_hikashop\views\cart\tmpl\showcart.php line: 124
&lt;a href="#" onclick="history.back(); return false;"&gt;
&lt;span class="icon-32-back" title="&lt;?php echo JText::_('HIKA_BACK'); ?&gt;"&gt;&lt;/span&gt; &lt;?php echo JText::_('HIKA_BACK'); ?&gt;
&lt;/a&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQxLXdpc2hsaXN0Lzg4NzY2Ny13aXNoZXMtbW9kdWxlLWNhbGwtdG8tYS1tZW1iZXItZnVuY3Rpb24tZGlzcGxheWJ1dHRvbi1vbi1udWxsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86359
- Thank you received: 14296
-
-

9 years 11 months ago [\#256731](#256731) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Wishes module - Call to a member function displayButton() on null](/forum/41-wishlist/887667-wishes-module-call-to-a-member-function-displaybutton-on-null#256731 "-- HikaShop version -- : 2.6.4  Hi today hikashop upgraded to latest archive from today and the wishes module gives the following error: Error displaying the error page: Call to a member function displayButton () on null: Call to a member function displayButton () on null. The previous archive was no problem. template: Gantry 5.3.9 / hydrogen 5.3.9 Displayed somewhere here's the problem: echo $this-&gt;cartHelper-&gt;displayButton($displayText, 'wishlist', $this-&gt;params, hikashop&#95;completeLink('cart&amp;task=showcart&amp;cart&#95;id=' . $this-&gt;element-&gt;cart&#95;id . $this-&gt;cart&#95;itemid . '&amp;cart&#95;type='.$this-&gt;cart&#95;type), 'window.location.href = &#92;''.hikashop&#95;completeLink('cart&amp;task=showcart&amp;cart&#95;id='.$this-&gt;element-&gt;cart&#95;id . $this-&gt;cart&#95;itemid . '&amp;cart&#95;type='.$this-&gt;cart&#95;type).'&#92;';return false;');")*

Hi,

I'm not able to reproduce the problem on my end.
I've also tried to look for information about that error online but I couldn't find any conclusive thing.

Note that with HikaShop 3 which will be released in the next few weeks, we'll have a whole new cart/wishlist system and it should prevent strange issues like that.

The following user(s) said Thank You: [CarlosC](/forum/user/6899-carlosc "View CarlosC's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQxLXdpc2hsaXN0Lzg4NzY2Ny13aXNoZXMtbW9kdWxlLWNhbGwtdG8tYS1tZW1iZXItZnVuY3Rpb24tZGlzcGxheWJ1dHRvbi1vbi1udWxsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.067 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
