A small problem that has recently cropped up with a few Magento installations is not being able to see the full order overview when an order is placed.
The bug occurs when you place the first test order, and as you can see in the below screenshot, the order comes through, but you cannot click on it to view, and the full overview does not display. Not very helpful if you need to see what order has come in to be able to process it! You can find another way around it, but it’s something that needs to be sorted to ensure the Magento system runs smoothly.
The reason is due to not having a high enough version of PHP running on the server then some of the PHP functions in the Sage Pay Suite plugin aren’t compatible with lower versions of PHP, therefore causing errors. Below is a temporary fix until hopefully Ebizmarts resolve this.
1) Check the Error
It’s a simple solution, which you can double check what the error is by going to the route /index.php page. Change the following code:
#ini_set('display_errors', 1);
to:
ini_set('display_errors', 1);
This will display the error you are looking for in the Magento Admin area unders Sales > Orders
As you can see, there is an issue with the following file:
/app/code/local/Ebizmarts/SagePaySuite/Block/Adminhtml/Sales/Order/Grid/Renderer/State.php
2) Solve the Error
Simply open this file and comment out the following:
/* $interval = $datetime1->diff($datetime2); $intervalInDays = $interval->format('%a'); $diff = ($intervalInDays !== false) ? $intervalInDays : 1; if($diff < 1) { $transaction->updateFromApi(); } */ }
Hopefully Ebizmarts can help solve the problem fully and put a fix in place for the next release!