Fatal error plugin: hikashopproductinsert.php

  • Posts: 38
  • Thank you received: 0
9 years 1 month ago #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_demo
Your plugin tries to call a method thats unknown in J3.x guess...


COBIZ webdevelopment | www.cobiz.nl

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

  • Posts: 84079
  • Thank you received: 13635
  • MODERATOR
9 years 1 month ago #243028

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) && method_exists($app, 'getBody')) {
in plugins/system/hikashopproductinsert/hikashopproductinsert.php

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

  • Posts: 38
  • Thank you received: 0
9 years 1 month ago #243074

I meant J2.5, sorry :-)


COBIZ webdevelopment | www.cobiz.nl

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

  • Posts: 84079
  • Thank you received: 13635
  • MODERATOR
9 years 1 month ago #243078

So did the modification solve the problem ?

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

Time to create page: 0.059 seconds
Powered by Kunena Forum