vinaysaini Posted November 3, 2014 Share Posted November 3, 2014 Hello, I can not add manual order from back office in prestashop 1.6.0.9 Can anyone please tell me how can I fix that. The error I am getting is [Mon Nov 03 15:16:31 2014] [error] [client 127.0.0.1] PHP Fatal error: Call to a member function getPageLink() on a non-object in /var/www/prestashop/cache/smarty/compile/56/8c/2d/568c2d28b4099654d4eb3dde2fa17d5dd519039c.file.blockcart.tpl.php on line 65, referer: http://prestashop2.dev/admin123/index.php?controller=AdminOrders&addorder&token=b2401b5bd5d06baf6618a34787b7c6b8 I am getting 3 warnings also in case if that helps [Mon Nov 03 15:16:31 2014] [error] [client 127.0.0.1] PHP Notice: Undefined index: PS_CATALOG_MODE in /var/www/project/cache/smarty/compile/56/8c/2d/568c2d28b4099654d4eb3dde2fa17d5dd519039c.file.blockcart.tpl.php on line 62, referer: http://prestashop2.dev/admin123/index.php?controller=AdminOrders&addorder&token=b2401b5bd5d06baf6618a34787b7c6b8 [Mon Nov 03 15:16:31 2014] [error] [client 127.0.0.1] PHP Notice: Trying to get property of non-object in /var/www/project/cache/smarty/compile/56/8c/2d/568c2d28b4099654d4eb3dde2fa17d5dd519039c.file.blockcart.tpl.php on line 62, referer: http://prestashop2.dev/admin123/index.php?controller=AdminOrders&addorder&token=b2401b5bd5d06baf6618a34787b7c6b8 [Mon Nov 03 15:16:31 2014] [error] [client 127.0.0.1] PHP Notice: Undefined index: link in /var/www/project/cache/smarty/compile/56/8c/2d/568c2d28b4099654d4eb3dde2fa17d5dd519039c.file.blockcart.tpl.php on line 65, referer: http://prestashop2.dev/admin123/index.php?controller=AdminOrders&addorder&token=b2401b5bd5d06baf6618a34787b7c6b8 [Mon Nov 03 15:16:31 2014] [error] [client 127.0.0.1] PHP Notice: Trying to get property of non-object in /var/www/project/cache/smarty/compile/56/8c/2d/568c2d28b4099654d4eb3dde2fa17d5dd519039c.file.blockcart.tpl.php on line 65, referer: http://prestashop2.dev/admin123/index.php?controller=AdminOrders&addorder&token=b2401b5bd5d06baf6618a34787b7c6b8 Link to comment Share on other sites More sharing options...
NemoPS Posted November 3, 2014 Share Posted November 3, 2014 blockcart.tpl is not supposed to be there, did you modify any file? Link to comment Share on other sites More sharing options...
vinaysaini Posted November 3, 2014 Author Share Posted November 3, 2014 Yeah I have made very small changes into blockcart.tpl file. Like adding extra class to a div. Link to comment Share on other sites More sharing options...
NemoPS Posted November 5, 2014 Share Posted November 5, 2014 Only that? for some reason prestashop is fetching blockcart.tpl in the AdminOrdersController, do you have any override in place? Link to comment Share on other sites More sharing options...
Geckogrouplu Posted November 5, 2014 Share Posted November 5, 2014 Hi, i got the error "Fatal error: Call to a member function addOrderPayment() on a non-object in /usr/www/users/mynames/shop/classes/PaymentModule.php on line 395" by adding a product manualy? Thanks for helping Link to comment Share on other sites More sharing options...
NemoPS Posted November 7, 2014 Share Posted November 7, 2014 It seems $order Is not a valid object for some reason, hard to tell why Link to comment Share on other sites More sharing options...
vinaysaini Posted November 7, 2014 Author Share Posted November 7, 2014 Hi Nemo, I appreciate your help I got the issue, It was my mistake accidentally I removed hookhome from blockcart module. And manual add order was using some functionality from this module through ajax. Link to comment Share on other sites More sharing options...
Recommended Posts