Hi,
I was recently tasked with migrating a websites hosting. All seemed to go fine except that there's now some problems with the VirtueMart component.
It is now taking an extremely long time to load product categories as well as the products themselves (although they do eventually load). A search form for the store is now missing. Adding a product to the cart results in the following error:
Argument 1 passed to plgVmPaymentPaypal::plgVmDisplayLogin() must be an instance of VirtuemartViewUser, instance of VmView given, called in /homepages/26/d400987012/htdocs/hosted/westmercia/libraries/joomla/event/event.php on line 70
The Joomla version is 3.9.6
The VirtueMart version is 3.4.2
The sites URL is https://www.westmercia.co.uk
I've not used VirtueMart or Joomla before, so any help would be greatly appreciated.
Where is a page that uses VirtueMart? Does not seem to be a menu link to VirtueMart anywhere?
VirtueMart is being used here:
https://westmercia.co.uk/forklift-sales/used-forklifts/used-forklift-search
Thanks
The problem is in your template or something related.
If you use this link https://www.westmercia.co.uk/forklift-sales/used-forklifts/used-electric-forklifts?template=protostar
The main page load in 600ms
But with your template it need 30 Secondes!
Very slow page! Browser console throws up "ReferenceError: Virtuemart is not defined" - you are using facebox instead of the prefered fancybox - selected in VM configuration/templates. Also you are loading the jQuery library which VirtueMart needs, as well as mootools for some reason. Like 42, I believe you have template issues, and you have additional overheads because you use yagendoo product manager.
Turning on Joomla (&VM) debug may help identify issues.
Using Mootools does not have to be a big issue, Custom Filters for VM uses Mootools for example.
But as studio42 points out, You use a very heavy template.
Jörgen @ Kreativ Fotografi
Thanks for this everyone. I'll get in touch with the developer of the site and ask about heaviness of the template and in the meantime, try to debug it a bit myself.
The site did (before the move) have a search function for its shop, which now isn't there. Would that be also have been a part of virtuemart itself?
Or you have a problem in the template or a new feature(plugin or module)
Try to unpublish each module or plugin one by one and check if this solve the slowdown.
I think that it can be solved in 1 hour with some test.