News:

Support the VirtueMart project and become a member

Main Menu

Error after upgrading an old plugin to VM4

Started by webgobe, September 29, 2024, 18:17:50 PM

Previous topic - Next topic

webgobe

After upgrading an old custom fields plugin written for VM3, when I add the new custom field to a product on save I got this error:
vmError: Plugin plgVmCustomMyParam must be updated, called in vmcustomplugin.php OnStoreProduct The plugin seems to work, but the error message is annoying.
I found somewhere that adding the $key variable to the OnStoreProduct like there:
function plgVmOnStoreProduct($data,$plugin_param,$key=-1){should solve the issue, but the error is still there. Any help would be greatly appreciated!
Like a fine wine... Good from the start and getting better over time.

webgobe

Nevermind, I missed one instance of the call for the OnStoreProduct. Adding the $key to the call solved the problem.
Like a fine wine... Good from the start and getting better over time.