How do I resolve this Error in my website

  • Posts: 51
  • Thank you received: 1
9 years 3 months ago #239073

-- HikaShop version -- : 2.6.2
-- Joomla version -- : 3.5.1
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- : Fatal error: Call to a member function get() on a non-object in ..../components/com_hikashop/views/vote/view.html.php on line 28

Pls help, I'm receiving the following message after updating hikashop. The homepage is just displaying a product picture while the rest of the page is blank

Fatal error: Call to a member function get() on a non-object in ..../components/com_hikashop/views/vote/view.html.php on line 28

On checking the line 28, here is the code
$ctrl_param = $this->params->get('main_ctrl','');

How do i resolve this please?

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

  • Posts: 13201
  • Thank you received: 2322
9 years 3 months ago #239117

Hi,

Please replace the code:

		$ctrl_param = $this->params->get('main_ctrl','');
		if(!empty($ctrl_param))
			$type_item = $ctrl_param;
By:
		if(!empty($this->params)){
			$ctrl_param = $this->params->get('main_ctrl','');
			if(!empty($ctrl_param))
				$type_item = $ctrl_param;
		}

The following user(s) said Thank You: Lordtech

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

  • Posts: 51
  • Thank you received: 1
9 years 3 months ago #239157

Wow, worked perfectly. Thanks Xavier

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

Time to create page: 0.078 seconds
Powered by Kunena Forum