VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: robwuk on August 20, 2014, 01:03:51 AM

Title: [solved] problem noticed after a successful update
Post by: robwuk on August 20, 2014, 01:03:51 AM
Ive upgraded my VirtueMart to 2.6.8 from 2.6.6 by installing the two seperate files com_virtuemart.2.6.8 and com_virtuemart.2.6.8_ext_aio

All this seemed to go ok we have had one order since update

Ive just come to alter the status of a test order i have just cancelled, paypal when i click cancel just took be back the site but with a white screen

I then went into the orders, selected by order and changed the status manually to cancelled, clicked on 'update order status' which tries to load the following url, which doesnt look complete

http://www.mywebsite.co.uk/administrator/index.php?option=com_virtuemart&view=orders#

the page redirects to http://www.mywebsite.co.uk/administrator/index.php and is blank (white page)

if i refresh it tries to send again but still with white page and url above.

any ideas what im doing wrong or have done wrong with the update?

Thanyou

Rob
Title: Re: problem noticed after a successful update
Post by: GJC Web Design on August 20, 2014, 10:17:17 AM
The url is correct - the parameters are passed as a Post (as you describe works fine on my 2.6.8 installs)

I would suspect lack of memory perhaps - you need to do all the normal server error debugging steps
look in logs - turn on debugging and error reporting full up
Title: Re: problem noticed after a successful update
Post by: robwuk on August 21, 2014, 00:58:50 AM
Thankyou for reply, at least i know if works fine for someone.

I will look into what you have suggested.

Cheers

Rob
Title: Re: problem noticed after a successful update
Post by: robwuk on August 21, 2014, 01:18:03 AM
This was the error


Fatal error: Call to undefined method PaypalHelperPayPalStd::RefundTransaction() in /home/*********/public_html/plugins/vmpayment/paypal/paypal.php on line 1156

This is what is in the file at those lines, first line below being like 1156

   if ($paypalInterface->RefundTransaction($payment)) {
            if ($this->_currentMethod->payment_type == '_xclick-subscriptions') {
               $paypalInterface->debugLog(vmText::_('VMPAYMENT_PAYPAL_SUBSCRIPTION_CANCELLED'), 'plgVmOnUpdateOrderPayment Refund', 'message', true);
            } else {
               //Mark the order as refunded
               // $order->order_status = $method->status_refunded;
               $paypalInterface->debugLog(vmText::_('VMPAYMENT_PAYPAL_API_TRANSACTION_REFUNDED'), 'plgVmOnUpdateOrderPayment Refund', 'message', true);
            }

Title: Re: problem noticed after a successful update
Post by: GJC Web Design on August 21, 2014, 12:53:19 PM
and do you have a function RefundTransaction ($payment) around line 403  in plugins/vmpayment/paypal/paypal/helpers/paypalapi.php ?

But Alatak is the expert on payment plugins  - have given her a heads up?
Title: Re: problem noticed after a successful update
Post by: alatak on August 22, 2014, 09:33:51 AM
hello
Thank you for reporting, i will check that issue.
Title: Re: problem noticed after a successful update
Post by: robwuk on August 22, 2014, 10:42:31 AM
Quote from: GJC Web Design on August 21, 2014, 12:53:19 PM
and do you have a function RefundTransaction ($payment) around line 403  in plugins/vmpayment/paypal/paypal/helpers/paypalapi.php ?

Yes i do have that function in that place in the file, but i wouldnt know if there was a mistake here

Quote from: GJC Web Design on August 21, 2014, 12:53:19 PM
But Alatak is the expert on payment plugins  - have given her a heads up?

Thankyou
Title: Re: problem noticed after a successful update
Post by: alatak on August 29, 2014, 09:56:01 AM
Hello
I was not able to reproduce your problem, but i have done a fix in case it happens again.