VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: elleclouds on December 23, 2015, 21:30:55 PM

Title: Manually confirm order status leads to blank white screen and error 500
Post by: elleclouds on December 23, 2015, 21:30:55 PM
When looking at order statuses, I manually change the dropdown to confirm and get an error 500...literally spent 4 hours using search feature here and on google with no luck. Please, what could be the reason I am getting this error?


Joomla 2.5.28
Virtuemart 2.6.6
Title: Re: Manually confirm order status leads to blank white screen and error 500
Post by: GJC Web Design on December 23, 2015, 23:04:55 PM
VM2.6.6 ??????????????  16 versions old????  why?

the above imho is nearly always running out of memory/problem with pdf invoice creation

any white screen is logged somewhere

the 500 error is?
Title: Re: Manually confirm order status leads to blank white screen and error 500
Post by: GJC Web Design on December 24, 2015, 12:24:21 PM
Your template then isn't latest VM3 ready....

if commercial ask the developer
Title: Re: Manually confirm order status leads to blank white screen and error 500
Post by: jenkinhill on December 27, 2015, 19:14:49 PM
On the product pages you are not loading the VM JavaScript files, so no add to cart can happen. Some, but not all, of the files load on the cart page. I have no idea how you have got to that situation.
Title: Re: Manually confirm order status leads to blank white screen and error 500
Post by: GJC Web Design on December 27, 2015, 21:26:57 PM
you have a JS error on product pages

SyntaxError: expected expression, got ';'
http://www.pinkchella.com/index.php/shop/women/swimwear/alma-mia-reversible-set-959-965-966-967-968-detail
Line 333

As I said before your Gavik template is not up to date...  contact them for a fix..
Title: Re: Manually confirm order status leads to blank white screen and error 500
Post by: Studio 42 on December 28, 2015, 14:00:08 PM
THe add to cart is overide in your template.
The error is in
function check(obj) {
// use the modulus operator '%' to see if there is a remainder
remainder=obj.value % ;
quantity=obj.value;
if (remainder  != 0) {
alert('!');
obj.value = quantity-remainder;
return false;
}
return true;
}

This is obselete and don't work anymore in VM3.0.12

search in \templates\YOURTEMPLATE\html\com_virtuemart\productdetails\default.php for
echo $this->loadTemplate('addtocart');
and replace with
echo shopFunctionsF::renderVmSubLayout('addtocart',array('product'=>$this->product));

Note : gavick use a framework and the file can be in another usbfolder
If the render is bad, then copy the addtocart.pph file from \components\com_virtuemart\sublayouts\addtocart.php or any other used file in the right template sublayouts folder