VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: pm4698 on August 27, 2016, 17:44:13 PM

Title: Modify custom component from vm2 to vm3
Post by: pm4698 on August 27, 2016, 17:44:13 PM
Hello there.

I created a custom vm2.6.12 component and now i am trying to move to vm3 with Joomla 3.

I made some modifications to custom component coding in order to match the vm3 format. Now, when i try to access my component from backend with debug enabled i see this error:

Strict Standards: Declaration of VirtuemartControllerSpecial::display() should be compatible with that of VmController::display() in ..\administrator\components\com_virtuemart\virtuemart.php on line 38 Strict Standards: Declaration of VirtuemartControllerSpecial::save() should be compatible with that of VmController::save() in ..\administrator\components\com_virtuemart\virtuemart.php on line 38

I have attached vm2 where all files of component are there in administrator folder and in vm3 are the files i have "upgraded" to match vm3 criteria. Any idea would be much helpful.

Thank you in advance
Title: Re: Modify custom component from vm2 to vm3
Post by: GJC Web Design on August 27, 2016, 20:01:30 PM
it saying that your functions should use the same parameters

e.g. in VM3 display is

public function display($cachable = false, $urlparams = false)
Title: Re: Modify custom component from vm2 to vm3
Post by: pm4698 on August 27, 2016, 20:16:11 PM
oh ok! Do you know vm3 parameters for save function also?
Title: Re: Modify custom component from vm2 to vm3
Post by: GJC Web Design on August 27, 2016, 22:28:05 PM
administrator\components\com_virtuemart\helpers\vmcontroller.php