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

#   Fatal error plugin: hikashopproductinsert.php

##

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

Less More

- Posts: 38
- Thank you received: 0
-
- [](http://www.cobiz.nl)
-

10 years 4 months ago [\#243019](#243019) by [goslingcools](/forum/user/2994-goslingcools "View goslingcools's Profile")  *[Fatal error plugin: hikashopproductinsert.php](/forum/25-install-update/885073-fatal-error-plugin-hikashopproductinsert-php#243019 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 2.5.28 -- PHP version -- : 5.6 -- Browser(s) name and version -- : N/A -- Error-message(debug-mod must be tuned on) -- : Fatal error: Call to undefined method JSite::getBody() in XXX/plugins/system/hikashopproductinsert/hikashopproductinsert.php on line 59  This error is thrown when I try to access a custom component... index.php?option=com&#95;demo Your plugin tries to call a method thats unknown in J3.x guess...")* was created by *[goslingcools](/forum/user/2994-goslingcools "View goslingcools's Profile")*

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 2.5.28
-- PHP version -- : 5.6
-- Browser(s) name and version -- : N/A
-- Error-message(debug-mod must be tuned on) -- : Fatal error: Call to undefined method JSite::getBody() in XXX/plugins/system/hikashopproductinsert/hikashopproductinsert.php on line 59

This error is thrown when I try to access a custom component... index.php?option=com_demo
Your plugin tries to call a method thats unknown in J3.x guess...

---

COBIZ webdevelopment \| [ ](http://www.cobiz.nl)[ www.cobiz.nl](http://www.cobiz.nl)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg4NTA3My1mYXRhbC1lcnJvci1wbHVnaW4taGlrYXNob3Bwcm9kdWN0aW5zZXJ0LXBocD90bXBsPW1hcmtkb3du) 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: 86358
- Thank you received: 14293
-
-

10 years 4 months ago [\#243028](#243028) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Fatal error plugin: hikashopproductinsert.php](/forum/25-install-update/885073-fatal-error-plugin-hikashopproductinsert-php#243028 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 2.5.28 -- PHP version -- : 5.6 -- Browser(s) name and version -- : N/A -- Error-message(debug-mod must be tuned on) -- : Fatal error: Call to undefined method JSite::getBody() in XXX/plugins/system/hikashopproductinsert/hikashopproductinsert.php on line 59  This error is thrown when I try to access a custom component... index.php?option=com&#95;demo Your plugin tries to call a method thats unknown in J3.x guess...")*

Hi,

The getBody function of JFactory::getApplication(); is a standard function of J3. I don't see why that wouldn't work.

But try changing the line:
if(empty($body)) {
to:
if(empty($body) &amp;&amp; method_exists($app, 'getBody')) {
in plugins/system/hikashopproductinsert/hikashopproductinsert.php

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

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

Less More

- Posts: 38
- Thank you received: 0
-
- [](http://www.cobiz.nl)
-

10 years 4 months ago [\#243074](#243074) by [goslingcools](/forum/user/2994-goslingcools "View goslingcools's Profile")  Replied by *[goslingcools](/forum/user/2994-goslingcools "View goslingcools's Profile")* on topic *[Fatal error plugin: hikashopproductinsert.php](/forum/25-install-update/885073-fatal-error-plugin-hikashopproductinsert-php#243074 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 2.5.28 -- PHP version -- : 5.6 -- Browser(s) name and version -- : N/A -- Error-message(debug-mod must be tuned on) -- : Fatal error: Call to undefined method JSite::getBody() in XXX/plugins/system/hikashopproductinsert/hikashopproductinsert.php on line 59  This error is thrown when I try to access a custom component... index.php?option=com&#95;demo Your plugin tries to call a method thats unknown in J3.x guess...")*

I meant J2.5, sorry ![:-)](/media/kunena/emoticons/3.png ":-)")

---

COBIZ webdevelopment \| [ ](http://www.cobiz.nl)[ www.cobiz.nl](http://www.cobiz.nl)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg4NTA3My1mYXRhbC1lcnJvci1wbHVnaW4taGlrYXNob3Bwcm9kdWN0aW5zZXJ0LXBocD90bXBsPW1hcmtkb3du) 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: 86358
- Thank you received: 14293
-
-

10 years 4 months ago [\#243078](#243078) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Fatal error plugin: hikashopproductinsert.php](/forum/25-install-update/885073-fatal-error-plugin-hikashopproductinsert-php#243078 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 2.5.28 -- PHP version -- : 5.6 -- Browser(s) name and version -- : N/A -- Error-message(debug-mod must be tuned on) -- : Fatal error: Call to undefined method JSite::getBody() in XXX/plugins/system/hikashopproductinsert/hikashopproductinsert.php on line 59  This error is thrown when I try to access a custom component... index.php?option=com&#95;demo Your plugin tries to call a method thats unknown in J3.x guess...")*

So did the modification solve the problem ?

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

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