VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: tjharrison on June 14, 2019, 13:49:10 PM

Title: Problems after moving website hosts
Post by: tjharrison on June 14, 2019, 13:49:10 PM
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.
Title: Re: Problems after moving website hosts
Post by: jenkinhill on June 14, 2019, 15:21:27 PM
Where is a page that uses VirtueMart? Does not seem to be a menu link to VirtueMart anywhere?
Title: Re: Problems after moving website hosts
Post by: tjharrison on June 14, 2019, 15:51:27 PM
VirtueMart is being used here:

https://westmercia.co.uk/forklift-sales/used-forklifts/used-forklift-search

Thanks
Title: Re: Problems after moving website hosts
Post by: Studio 42 on June 14, 2019, 17:00:34 PM
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!
Title: Re: Problems after moving website hosts
Post by: jenkinhill on June 15, 2019, 11:08:01 AM
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.
Title: Re: Problems after moving website hosts
Post by: Jörgen on June 15, 2019, 13:06:21 PM
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
Title: Re: Problems after moving website hosts
Post by: tjharrison on June 17, 2019, 11:13:19 AM
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?
Title: Re: Problems after moving website hosts
Post by: Studio 42 on June 17, 2019, 13:16:52 PM
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.