window-tint Posted February 22, 2016 Share Posted February 22, 2016 Hi I have recently added a new custom payment module for WorldPay - (it is a modified version of the BankWire module). I tested it and all seemed fine, but after putting it live over the weekend it seems to have broken the site after it was used for the first time. (The first order went through fine). Now when someone tries to access Order.php the following error is given: Call to a member function getPageLink() on a non-object in ../classes/Tools.php on line 68 I have a feeling it is something to do with the customer not returning to the site after the payment was accepted. I'm using Prestashop 1.4.6. Thanks Tom Link to comment Share on other sites More sharing options...
tuk66 Posted February 22, 2016 Share Posted February 22, 2016 Check if the WorldPay module is compatible with your version and debug that getPageLink object. Link to comment Share on other sites More sharing options...
window-tint Posted February 22, 2016 Author Share Posted February 22, 2016 Hi Thanks for the reply. It's a custom module that I 'developed' myself (by modifying the BankWire module). How do you debug the getPageLink object? Thanks Link to comment Share on other sites More sharing options...
tuk66 Posted February 22, 2016 Share Posted February 22, 2016 I don't know the code. In general, you can debug it using a PHP IDE (my choice) or print objects out (using die()). Link to comment Share on other sites More sharing options...
window-tint Posted February 22, 2016 Author Share Posted February 22, 2016 (edited) Hi This seems to be happening to all objects, none of them seem to work with order.php - any ideas why? $link $smarty $cart $cookie Edited February 22, 2016 by window-tint (see edit history) Link to comment Share on other sites More sharing options...
window-tint Posted February 22, 2016 Author Share Posted February 22, 2016 I haven't edited order.php in anyway - I can't understand why this is happening? Link to comment Share on other sites More sharing options...
window-tint Posted February 22, 2016 Author Share Posted February 22, 2016 For some reason a file 'ParentOrderController.php' had automatically been created in /override/controllers/. No idea why, but when I removed this it all started working again. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now