Skip to main content

Fatal error plugin: hikashopproductinsert.php

More
10 years 3 months ago #243019 by goslingcools
-- 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.

More
10 years 3 months ago #243028 by nicolas
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.

More
10 years 3 months ago #243074 by goslingcools
I meant J2.5, sorry :-)

COBIZ webdevelopment | www.cobiz.nl

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

More
10 years 3 months ago #243078 by nicolas
So did the modification solve the problem ?

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

Time to create page: 0.185 seconds
Powered by Kunena Forum