I just migrated from prestashop 1.6.16 and when I try to generate pdf delivery slips by date I get this error:
Argument 1 passed to HTMLTemplateDeliverySlipCore::__construct() must be an instance of OrderInvoice, instance of OrderInvoiceCore given, called in /home/fredfred/public_html/classes/range/pdf/PDF.php on line 98 at line34in fileclasses/range/pdf/HTMLTemplateDeliverySlip.php
29. */
30. class HTMLTemplateDeliverySlipCore extends HTMLTemplate
31. {
32. public $order;
33.
34. public function __construct(OrderInvoice $order_invoice, $smarty)
35. {
36. $this->order_invoice = $order_invoice;
37. $this->order = new Order($this->order_invoice->id_order);
38. $this->smarty = $smarty;
Question
Brian
I just migrated from prestashop 1.6.16 and when I try to generate pdf delivery slips by date I get this error:
Argument 1 passed to HTMLTemplateDeliverySlipCore::__construct() must be an instance of OrderInvoice, instance of OrderInvoiceCore given, called in /home/fredfred/public_html/classes/range/pdf/PDF.php on line 98
at line 34 in file classes/range/pdf/HTMLTemplateDeliverySlip.php
29. */ 30. class HTMLTemplateDeliverySlipCore extends HTMLTemplate 31. { 32. public $order; 33. 34. public function __construct(OrderInvoice $order_invoice, $smarty) 35. { 36. $this->order_invoice = $order_invoice; 37. $this->order = new Order($this->order_invoice->id_order); 38. $this->smarty = $smarty;
Help?
3 answers to this question
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