Empty Review Order Page
-
When a client is finishing submitting the order using Paypal Express, the Review Order on which they return on the site is blank so they can’t finish their order! I have updated to the latest updates today. Can you please explain how to resolve this? Thank you.
-
Is it a completely blank white page? If so please set WP_DEBUG to TRUE in your wp-config file. That should show an actual error on that page and then I can help you more based on the error you are getting.
You could also just check the PHP error log on your server.
I get the message “Parse error: syntax error, unexpected ‘endif’ (T_ENDIF) in …\wwwroot\wp-content\plugins\paypal-for-woocommerce\template\paypal-review-order.php on line 304”.
Can you please help?
Can you tell me what version of PHP you are running? We have not been able to reproduce the issue, so I’m guessing that may have something to do with it.
PHP 5.4
Ok, thanks. We’ll work to get this resolved and get another update released.
I’m unable to reproduce the problem on my server, and we’re running PHP 5.5.26, so there’s a chance that could be the problem, though it seems odd. We’ll get to the bottom of it as quickly as we can.
Ok thanks please find a solution. Should i try a rollback to a previous version and if yes is there a safe solution? (such as use of WP Rollback plugin?)
1.1.6.3.4 did not have that problem (at least it was never reported). You can roll back to that if you want, but you’ll also need to roll WooCommerce back to 2.3 temporarily.
Can you suggest a safe way to do it? It is a live site.
Well, it might be too late for what I would recommend, unfortunately.
Any time you ever update anything (especially WooCommerce and related extensions) you should make a fresh backup of your site files and your database. This could be done pretty quickly and easily through your cPanel on your hosting account.
That way, if you run the update and you discover problems you can simply restore the backup files and database data you had prior to the update.
At this point, if you don’t have a fresh backup, it may be tough to get handled.
What you could do, though, as a temporary solution, is disable the use of the review page. That option will only be viable, though, if you don’t need to calculate shipping/tax after being returned from PayPal.
If you are calculating shipping then you could try coming up with a basic flat rate that would be added to all orders by default. Then you could enable the “Skip Final Review” option in the plugin settings, which would eliminate the review page altogether and you would not run into that problem.
We should be able to get this resolved and get the update released tonight. That’s the goal anyway. First thing I have to do is reproduce it.
The “Skip Final Review” option states that “By default, users will be returned from PayPal and presented with a final review page which includes shipping and tax in the order details. Enable this option to eliminate this page in the checkout process. (This is not available because your WooCommerce orders require an account.)”.
I am redirected to the same review page even when i enable guest checkout.
Am i missing something?
So you have Guest Checkout enabled in WooCommerce checkout settings (not the plugin settings) and then you also have the Skip Final Review option enabled in the plugin settings, but it’s still displaying the review page?
The only other thing I can think that would cause that is if you have a Terms and Conditions page configured. If so, the review page is where the buyer would have to accept that so it would override the Skip Final Review option.
Ok thank you I will give it a try. Please let me know as soon as you manage to get a fix for this problem. Thank you in advance for your effort.
Ah, we found the problem. It was the use of a PHP short tag. Silly mistake that was made, and it’s a very easy fix. It only happens if your server doesn’t have short tags enabled.
Open up the file /paypal-for-woocommerce/template/paypal-review-order.php
Go to line 295 and you’ll see
<? }That needs to be
<?php }Make that change, save it and upload it, and that will resolve your issue.
If you’re not comfortable doing that, you can download the updated version here (even though we haven’t officially released it yet) and then just upload everything overwriting the files that are there now.
Let me know if you have any questions or concerns about any of that.
Yes that worked. Thank you for your time and effort.
Glad to hear it!
If you have a moment to leave a review for the plugin we’d greatly appreciate it. Thanks!
The topic ‘Empty Review Order Page’ is closed to new replies.