i have error ( Warning: A non-numeric value encountered) when go to the first page in the categories
opencart 2.3.0.2
opencart 2.3.0.2
Attachments
Capture.PNG (75.92 KiB) Viewed 2171 times
Change all instances of this code in: category, manufacturer, search, special, product
to this
Code: Select all
$page = $this->request->get['page'];
Code: Select all
$page = (int)$this->request->get['page'];
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Is this also true for 3.0.3.2? We're getting this error at the top of the Packing Slip and refers to :
Warning: A non-numeric value encountered in storage/modification/admin/controller/sale/order.php on line 2048
We don't have any modifications installed that should be modifying the order file.
Warning: A non-numeric value encountered in storage/modification/admin/controller/sale/order.php on line 2048
We don't have any modifications installed that should be modifying the order file.
Of course, you do:
Warning: A non-numeric value encountered in storage/modification/admin/controller/sale/order.php on line 2048
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
Yeah I saw that too. But none of the extensions should be affecting that file. The error only appears on the packing slip view, not on the order view - which is weird. I'd expect the error to be in both.
Update. I've disabled all Modifications. Refreshed the Cache in OC & Browser. And the error still exists
Update. I've disabled all Modifications. Refreshed the Cache in OC & Browser. And the error still exists
Change this
to this
from admin/controller/sale/order.php
and this (2 places)
to this
Code: Select all
$option_weight = '';
Code: Select all
$option_weight = 0;
and this (2 places)
Code: Select all
$data['order_id'] = $this->request->get['order_id'];
Code: Select all
$data['order_id'] = (int)$this->request->get['order_id'];
Last edited by xxvirusxx on Wed Sep 25, 2019 6:52 pm, edited 1 time in total.
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Who is online
Users browsing this forum: No registered users and 25 guests