Fatal Error in Control Panel

  • Posts: 248
  • Thank you received: 7
  • Hikamarket Frontedition Hikamarket Multivendor Hikaserial Standard Hikashop Business
8 years 8 months ago #212468

-- 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.

  • Posts: 26008
  • Thank you received: 4004
  • MODERATOR
8 years 8 months ago #212489

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

	$shippingMethod = hikamarket::import('hikashopshipping', $shipping_method);
	$methods = $shippingMethod->shippingMethods($shipping);

	$shipping_name = $shipping->shipping_name.' - '.$methods[$shipping_id];
By
	$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.055 seconds
Powered by Kunena Forum