VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: blackrat999 on August 19, 2014, 12:52:07 PM

Title: [solved] After paypal payment returns customer to blank page
Post by: blackrat999 on August 19, 2014, 12:52:07 PM
Hi.
The issue is that after going to Paypal and completing payment, you can click on "return to store" and it takes you to a blank page url is :

www.bluefrogtoys.co.uk/index.php?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived&on=4c1c09&pm=1&Itemid=0&lang=

The payment is taken and the invoice is sent as confirmed but the customer is left high and dry on a white page.

It is a similar issue with Sagepay plugin, (i have asked media-street for help with this but wondering if it is a VM issue as it happens in Paypal too)  it returns a blank page in a similar way, payment is taken but the order is not confirmed. the URL of this one is similar:

www.bluefrogtoys.co.uk/index.php?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived&on=600e08&pm=4&crypt=@eaccad4bc0988 (there are another few hundred numbers after this)

I have Joomla 2.5.24
VM 2.6.6
standard Paypal plugin not changed in any way
Could you perhaps give me any clues as to what is going wrong in the cart before confirmation of purchase ?
Title: Re: After paypal payment returns customer to blank page
Post by: seyi on August 19, 2014, 13:02:06 PM
Hello,

On my vm2660 install, I do not get a blank page when I go to
   /index.php?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived&on=4c1c09&pm=1&Itemid=0&lang=

I get the message "Thank you for your Order!"

I think you should go to global configuration, turn on debug mode and set error reporting to maximum temporarily and then refresh that page.  Hopefully you will see the error that is stopping it from being executed.
Title: Re: After paypal payment returns customer to blank page
Post by: blackrat999 on August 19, 2014, 13:13:20 PM
Thanks Seyi - i have done that but dont get any errors shown in th front end - im not really familiar with the debug mode though ?
it is on on Global config and set to max

thanks
Title: Re: After paypal payment returns customer to blank page
Post by: seyi on August 19, 2014, 15:17:09 PM
Debug mode  would display any mysql error you are receiving
Setting Error reporting to maximum should display any php error/warning/notice

If after setting it to maximum it is still not displaying anything, i think you should look at your server error logs just to verify.
Title: Re: After paypal payment returns customer to blank page
Post by: blackrat999 on August 19, 2014, 16:02:55 PM
Ok thanks - with debug on at max the front end on that URL is still totally blank - nothing showing at all and no error messages.

what i have tried :
reinstall VM 2.6.6 and aio - no change
the URL appended to another VM installation on the same server works fine "thank you for your order" etc

I have no idea where to go next with this - totally stumped

thanks
Title: Re: After paypal payment returns customer to blank page
Post by: GJC Web Design on August 19, 2014, 16:29:33 PM
has to be in a log somewhere - ask your host
Title: Re: After paypal payment returns customer to blank page
Post by: blackrat999 on August 19, 2014, 16:36:03 PM
I have my own Virtual server hosted with Memset - can you tell me where i should be looking and what for please ?
Title: Re: After paypal payment returns customer to blank page
Post by: GJC Web Design on August 19, 2014, 17:57:45 PM
no idea - I'm not your server engineer - your looking for the logged error that is causing your whitescreen
without it no one can help you
Title: Re: After paypal payment returns customer to blank page
Post by: jenkinhill on August 19, 2014, 18:18:19 PM
This FAQ may help:  http://forum.virtuemart.net/index.php?topic=117042
Title: Re: After paypal payment returns customer to blank page
Post by: samlf3rd on August 20, 2014, 15:54:01 PM
Quote from: blackrat999 on August 19, 2014, 16:36:03 PM
I have my own Virtual server hosted with Memset - can you tell me where i should be looking and what for please ?

I bet your problem is with your version of PHP. Can you go to Site/System Information/PHP information and post your PHP version. With Virtuemart the different version really really rely on certain version of PHP, while server installation and configurations may be different. On some servers I have had to enable this or that through SSH.
Right now I am working on a server that runs Virtuemart 2.0.26 just fine (well so far). Anything Virtuemart 2.6.x requires PHP 5.5.
Title: Re: After paypal payment returns customer to blank page
Post by: blackrat999 on August 20, 2014, 16:00:51 PM
Ok cracked it.
The issue was with the Sagepay plugin. I had built the site on a test IP address and when i made it live i set it to its own IP - the plugin apparently links to the IP address that it is installed on and when i moved it I guess it didnt know how to get back to the site after a purchase. The guy that fixed it said that this would have affected the Paypal plugin too (because that is miraculously working aswell now) so now all is working properly im a happy chappy.
thanks for suggestions anyway.