Unhandled exception - Error

  • Posts: 38
  • Thank you received: 1
5 years 6 months ago #298587

-- HikaShop version -- : 3.5.1
-- Joomla version -- : 3.8.12
-- PHP version -- : 7.0.30
-- Browser(s) name and version -- : Firefox/Chrome
-- Error-message(debug-mod must be tuned on) -- : Hi,

I am receiving the following error from my site:

A PHP Exception occurred on your site. Here you can find the stack trace:
Exception Type: Error
File: components/com_hikashop/views/product/view.html.php
Line: 2387
Message: Call to a member function getParams() on null
#0 components/com_hikashop/views/product/view.html.php(28): ProductViewProduct->contact()
#1 libraries/src/MVC/Controller/BaseController.php(672): ProductViewProduct->display()
#2 administrator/components/com_hikashop/helpers/helper.php(1912): Joomla\CMS\MVC\Controller\BaseController->display(false, false)
#3 components/com_hikashop/controllers/product.php(27): hikashopController->display()
#4 libraries/src/MVC/Controller/BaseController.php(710): productController->contact()
#5 administrator/components/com_hikashop/helpers/helper.php(1890): Joomla\CMS\MVC\Controller\BaseController->execute('contact')
#6 components/com_hikashop/hikashop.php(88): hikashopController->execute('contact')
#7 libraries/src/Component/ComponentHelper.php(382): require_once('...')
#8 libraries/src/Component/ComponentHelper.php(357): Joomla\CMS\Component\ComponentHelper::executeComponent('...')
#9 libraries/src/Application/SiteApplication.php(194): Joomla\CMS\Component\ComponentHelper::renderComponent('com_hikashop')
#10 libraries/src/Application/SiteApplication.php(233): Joomla\CMS\Application\SiteApplication->dispatch()
#11 libraries/src/Application/CMSApplication.php(195): Joomla\CMS\Application\SiteApplication->doExecute()
#12 index.php(49): Joomla\CMS\Application\CMSApplication->execute()
#13 {main}
Request information
GET variables
Array
(
[Itemid] => 931
)
POST variables
Array
(
)
COOKIE variables
Array
(
[7184092563d38beca95b8a6cc16cc43e] => fr-FR
)
REQUEST variables
Array
(
[Itemid] => 931
[language] => fr-FR
[format] => html
[option] => com_hikashop
[ctrl] => product
[task] => contact
[cid] => 118
[lang] => fr-FR
[hikashop_front_end_main] => 1
[view] => product
[layout] => contact
)

Hi,

I am receiving an unhandled exception error from my site: from my site

Please see details above.
A PHP Exception occurred on your site. Here you can find the stack trace:
Exception Type: Error
File: components/com_hikashop/views/product/view.html.php
Line: 2387
Message: Call to a member function getParams() on null

Thanks,
Saad

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
5 years 6 months ago #298588

Hi,

You want to change that line from:
if($menu->getParams()->get('show_page_heading'))
to:
if(!empty($menu) && $menu->getParams()->get('show_page_heading'))
Updating to HikaShop 4 would also fix the issue as this change is already included.
www.hikashop.com/home/blog/420-hikashop-4-release.html

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

  • Posts: 38
  • Thank you received: 1
5 years 6 months ago #298608

Thank you Nicolas.

I updated to version 4 and the issues seems to be resolved.

Thanks

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

  • Posts: 12953
  • Thank you received: 1778
5 years 6 months ago #298617

Hello,

Thank you for your feedback !

Kind regards,
Mohamed Thelji.

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

Time to create page: 0.045 seconds
Powered by Kunena Forum