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

#   Fatal error after clicking from product module

##

- **[amadeusny](/forum/user/40003-amadeusny "View amadeusny's Profile")**
- [![amadeusny's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar40003.png)](/forum/user/40003-amadeusny "View amadeusny's Profile") Topic Author
- [ Offline](/forum/user/40003-amadeusny)

Less More

- Posts: 8
- Thank you received: 1
-
-

10 years 10 months ago [\#224436](#224436) by [amadeusny](/forum/user/40003-amadeusny "View amadeusny's Profile")  *[Fatal error after clicking from product module](/forum/25-install-update/881150-fatal-error-after-clicking-from-product-module#224436 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4 -- PHP version -- : 5.7 -- Error-message(debug-mod must be tuned on) -- : Fatal error: Call to a member function get() on null in /home/amadeusn/public&#95;html/CLUBAMADEUSNY.COM/templates/tz&#95;semona&#95;2/layouts/default.php on line 21  Getting this error : Fatal error: Call to a member function get() on null in /home/amadeusn/public&#95;html/CLUBAMADEUSNY.COM/templates/tz&#95;semona&#95;2/layouts/default.php on line 21 Only when clicking add to cart from a hikashop module. From a hikashop menu page I do not get an error.  At a loss, help appreciated!")* was created by *[amadeusny](/forum/user/40003-amadeusny "View amadeusny's Profile")*

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4
-- PHP version -- : 5.7
-- Error-message(debug-mod must be tuned on) -- : Fatal error: Call to a member function get() on null in /home/amadeusn/public_html/CLUBAMADEUSNY.COM/templates/tz_semona_2/layouts/default.php on line 21

Getting this error : Fatal error: Call to a member function get() on null in /home/amadeusn/public_html/CLUBAMADEUSNY.COM/templates/tz_semona_2/layouts/default.php on line 21
Only when clicking add to cart from a hikashop module. From a hikashop menu page I do not get an error.

At a loss, help appreciated!

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

10 years 10 months ago [\#224460](#224460) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Fatal error after clicking from product module](/forum/25-install-update/881150-fatal-error-after-clicking-from-product-module#224460 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4 -- PHP version -- : 5.7 -- Error-message(debug-mod must be tuned on) -- : Fatal error: Call to a member function get() on null in /home/amadeusn/public&#95;html/CLUBAMADEUSNY.COM/templates/tz&#95;semona&#95;2/layouts/default.php on line 21  Getting this error : Fatal error: Call to a member function get() on null in /home/amadeusn/public&#95;html/CLUBAMADEUSNY.COM/templates/tz&#95;semona&#95;2/layouts/default.php on line 21 Only when clicking add to cart from a hikashop module. From a hikashop menu page I do not get an error.  At a loss, help appreciated!")*

Hi,

This looks like an issue created by your template which is trying to call an undefined function.
I bet that if you try with the default Joomla template you have no isssues ![;)](/media/kunena/emoticons/11.png ";)")

Please contact your template provider directly.

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

- **[amadeusny](/forum/user/40003-amadeusny "View amadeusny's Profile")**
- [![amadeusny's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar40003.png)](/forum/user/40003-amadeusny "View amadeusny's Profile") Topic Author
- [ Offline](/forum/user/40003-amadeusny)

Less More

- Posts: 8
- Thank you received: 1
-
-

10 years 10 months ago -  10 years 10 months ago [\#224545](#224545) by [amadeusny](/forum/user/40003-amadeusny "View amadeusny's Profile")  Replied by *[amadeusny](/forum/user/40003-amadeusny "View amadeusny's Profile")* on topic *[Fatal error after clicking from product module](/forum/25-install-update/881150-fatal-error-after-clicking-from-product-module#224545 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4 -- PHP version -- : 5.7 -- Error-message(debug-mod must be tuned on) -- : Fatal error: Call to a member function get() on null in /home/amadeusn/public&#95;html/CLUBAMADEUSNY.COM/templates/tz&#95;semona&#95;2/layouts/default.php on line 21  Getting this error : Fatal error: Call to a member function get() on null in /home/amadeusn/public&#95;html/CLUBAMADEUSNY.COM/templates/tz&#95;semona&#95;2/layouts/default.php on line 21 Only when clicking add to cart from a hikashop module. From a hikashop menu page I do not get an error.  At a loss, help appreciated!")*

I solved it by using sh404SEF plugin

For anyone else having same type of issue where template calls for menu item to render page use sh404sef or joomlas core sef plugin and you can set the add to cart url as an alias to your hikashop checkout menu and problem is fixed. I thought I would have to set an alias for each product but amazingly you only need to do it for one product and all of your add to cart links from any module and any product or button work.

Important, add the non sef url as an alias.

Last edit: 10 years 10 months ago by [amadeusny](/forum/user/40003-amadeusny "View amadeusny's Profile").

The following user(s) said Thank You: [Xavier](/forum/user/4105-xavier "View Xavier's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg4MTE1MC1mYXRhbC1lcnJvci1hZnRlci1jbGlja2luZy1mcm9tLXByb2R1Y3QtbW9kdWxlP3RtcGw9bWFya2Rvd24=) 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.148 seconds

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

[](#top)
