Sage Pay Suite Magento plugin Error – No Order Information

Posted Monday 17th Dec 2012 by Claire Jennings

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.

Sagepay Error Orders Magento

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!

By Claire Jennings

Claire loves to design pretty website's all day long, she especially likes creating Magento and Wordpress based websites, and finding out new nifty tricks along the way. In her spare time likes to make Truffles, Think up new ideas whilst brushing her teeth, and change her hair colour. (On that note what colour shall i do next?)

See all of posts.