News:

Support the VirtueMart project and become a member

Main Menu

VM creates multiple plugin instances

Started by Ghost, Yesterday at 10:32:14 AM

Previous topic - Next topic

Ghost

For modern plugins that use service provider VM creates multiple instances of the plugin. It's causing issues like duplicated HTML in vmcustom plugins, among other things. The problem is coming from this code block https://dev.virtuemart.net/projects/virtuemart/repository/virtuemart/revisions/11044/entry/trunk/virtuemart/administrator/components/com_virtuemart/helpers/vdispatcher.php#L209
Not sure what was the idea here but it will eventually cause even more issues like dependency conflicts. If it needs to return the plugin object, maybe $app->bootPlugin() should be used instead.

VM 4.2.18.11050.