Skip to main content

How do I resolve this Error in my website

More
10 years 5 months ago #239073 by Lordtech
-- 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.

More
10 years 5 months ago #239117 by Xavier
Hi,

Please replace the code:
Code:
$ctrl_param = $this->params->get('main_ctrl',''); if(!empty($ctrl_param)) $type_item = $ctrl_param;
By:
Code:
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.

More
10 years 5 months ago #239157 by Lordtech
Wow, worked perfectly. Thanks Xavier

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

Time to create page: 0.169 seconds
Powered by Kunena Forum