Skip to main content

Fatal Error in Control Panel

More
11 years 1 month ago #212468 by a2zcs
-- url of the page with the problem -- : northeastcoffeeco.com
-- HikaShop version -- : 2.5.0
-- HikaMarket version -- : 1.6.5
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.3.28
-- Browser(s) name and version -- : Firefox 40.0.2
-- Error-message(debug-mod must be tuned on) -- : Fatal error: Call to a member function shippingMethods() on a non-object in /home/necoffee/public_html/components/com_hikamarket/views/ordermarket/view.html.php on line 1205

in the control panel in the front when clicking on the order button ( northeastcoffeeco.com/index.php/control-panel/order )

We get this error"Fatal error: Call to a member function shippingMethods() on a non-object in /home/necoffee/public_html/components/com_hikamarket/views/ordermarket/view.html.php on line 1205"

Our host "hostgator" has been messing around with an SSL on another account, but i believe has done something to the shared ssl on the server. could this be causing this?

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

More
11 years 1 month ago #212489 by Jerome
Replied by Jerome on topic Fatal Error in Control Panel
Hi,

You have in your orders some with invalid shipping methods, so the import of the shipping plugin failed.
Please edit the file "components/com_hikamarket/views/ordermarket/view.html.php" and replace
Code:
$shippingMethod = hikamarket::import('hikashopshipping', $shipping_method); $methods = $shippingMethod->shippingMethods($shipping); $shipping_name = $shipping->shipping_name.' - '.$methods[$shipping_id];
By
Code:
$shippingMethod = hikamarket::import('hikashopshipping', $shipping_method); $methods = array(); if(!empty($shippingMethod)) $methods = $shippingMethod->shippingMethods($shipping); if(isset($methods[$shipping_id])) $shipping_name = $shipping->shipping_name.' - '.$methods[$shipping_id];
It will avoid such fatal error (and we will include that patch in the next release).

Regards,

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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Moderators: Obsidev
Time to create page: 0.189 seconds
Powered by Kunena Forum