VirtueMart Forum

VirtueMart 2 + 3 + 4 => Frontend Modules => Topic started by: pm4698 on June 03, 2021, 20:00:04 PM

Title: Fatal error: Call to a member function getVmUikitParams() on boolean
Post by: pm4698 on June 03, 2021, 20:00:04 PM
Hi there. A friend of mine gave me a module called VMUIKIT off canvas module for joomla and virtuemart. When i am activating the module i get this fatal error:

Fatal error: Call to a member function getVmUikitParams() on boolean in ../modules/mod_onepage_offcanvas/mod_onepage_offcanvas.php on line 279

Code is:

        // Include The vmuikit Library
    jimport( 'joomla.application.component.model');
    JModelLegacy::addIncludePath (JPATH_ADMINISTRATOR . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_vmuikit' . DIRECTORY_SEPARATOR . 'models');
    $vmuikitmodel = JModelLegacy::getInstance('Vmuikits', 'VmuikitModel');
    $UikitParams = $vmuikitmodel->getVmUikitParams();


And line 279 is the last line of the attached module.

I use php 5.6.40 (I know i have to upgrade), Joomla 3.9.27 and VM 3.8.8

Thank you in advance
Title: Re: Fatal error: Call to a member function getVmUikitParams() on boolean
Post by: Jörgen on June 03, 2021, 20:05:18 PM
This is a question for the VMUIkit support team. Don´t You think so ?

Jörgen @ Kreativ Fotografi
Title: Re: Fatal error: Call to a member function getVmUikitParams() on boolean
Post by: pinochico on June 03, 2021, 20:29:39 PM
I don't know every module, but I think - Your question should be directed to the developer of this module - A friend of mine?
You can find the developer in the description of the XML file of this module.
Title: Re: Fatal error: Call to a member function getVmUikitParams() on boolean
Post by: GJC Web Design on June 04, 2021, 09:57:08 AM
is the component com_vmuikit installed?
Title: Re: Fatal error: Call to a member function getVmUikitParams() on boolean
Post by: Jörgen on June 04, 2021, 10:09:24 AM
Nice catch GJC  ;D

QuoteDIRECTORY_SEPARATOR . 'com_vmuikit' .

Did not notice that.

Jörgen
Title: Re: Fatal error: Call to a member function getVmUikitParams() on boolean
Post by: pinochico on June 04, 2021, 11:12:32 AM
GJC:

8)