ditisrichard Posted November 27, 2015 Share Posted November 27, 2015 Hi all, I have stumbled upon some kind of bug. Sometimes, when an order is created (I think it has something to do with guest accounts, because it happened with two guest orders), it creates an invoice, but this invoice is not recognised as an actual invoice. When I click on the order, it says it has no invoice. But when I select the documents tab, I can see the invoice there. See attached image. Does anyone know a fix for this and how to prevent it in the future? Thanks in advance, Richard Link to comment Share on other sites More sharing options...
NemoPS Posted November 27, 2015 Share Posted November 27, 2015 Very odd, are you using any override? It's like not updating the orders table in the database, so not setting the invoice id there Link to comment Share on other sites More sharing options...
ditisrichard Posted November 27, 2015 Author Share Posted November 27, 2015 Well, it started occurring when my host upgraded from PHP 5.3/5.4 to 5.6. That's the only thing that has been changed in the past days. I never had this before. I'm using prestashop 1.6.1.0 My (seemingly important) overrides: AdminStoresController.php AdminAttributesGroupsController.php StoresController.php SearchController.php ProductController.php IndexController.php CategoryController.php classes: PDFGenerator.php PDF.php OrderPayment.php OrderInvoice.php Order.php But this has never been a problem till the PHP upgrade. Link to comment Share on other sites More sharing options...
ditisrichard Posted November 27, 2015 Author Share Posted November 27, 2015 By the way. I did edit the table ps_orders and added the invoice id to it. Still doesn't recognize it. Link to comment Share on other sites More sharing options...
NemoPS Posted November 28, 2015 Share Posted November 28, 2015 Any of those classes overrides might be killing it. Likely OrderInvoice, or just Order Link to comment Share on other sites More sharing options...
Recommended Posts