VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: ayushwebkul on May 01, 2015, 16:58:41 PM

Title: Internal server error on cart view page after upgrade to VM3
Post by: ayushwebkul on May 01, 2015, 16:58:41 PM
After upgrade my joomla site from 2.5.8 to joomla 3.4.1 and upgrade virtuemart 2 to virtuemart 3 got an internal server error in cart view page and on category view page. please reply thanks in advance.
Title: Re: Internal server error on cart view page after upgrade to VM3
Post by: jenkinhill on May 01, 2015, 17:24:23 PM
Exactly which VirtueMart 3 version?

What do the server error logs show as the cause of the internal server error?
Title: Re: Internal server error on cart view page after upgrade to VM3
Post by: ayushwebkul on May 02, 2015, 11:17:33 AM
vituemart version is 3.0.8
joomla version 3.4.1

error are

Notice:  Undefined index: virtuemart_state_id in /home/ayush/public_html/agriculture/administrator/components/com_virtuemart/helpers/calculationh.php on line 1265



Notice:  Undefined variable: document in /home/ayush/public_html/agriculture/templates/green_machine/html/com_virtuemart/productdetails/defaultsecond.php on line 18



Fatal error:  Call to a member function addScript() on a non-object in /home/ayush/public_html/agriculture/templates/green_machine/html/com_virtuemart/productdetails/defaultsecond.php
Title: Re: Internal server error on cart view page after upgrade to VM3
Post by: jenkinhill on May 02, 2015, 13:48:30 PM
The notices are not relevant, as they can be turned off.

The fatal error is caused by your template override which appears to need updating for VM3, as addScript() is not used in VM3.

Try using the VM default productdetails/default.php template instead, although if you have other overrides then thay may also still be for VM2 versions so there could be other problems. There are major differences between VM2 and VM3 default templates.