Opencart Error in Aftership tracking plugin da_track_shipment on line 18

The error found in opencart log which is related to Aftership tracking plugin

PHP Unknown: Required parameter $order_id follows optional parameter $store_id in /home/xxx/domains/website/public_html/admin/model/extension/tool/da_track_shipment.php on line 18

Even though this a warning shown in PHP version 8.0+ websites, this can fill the error log. So trying to fix it

Changed line 18 from public function sendTrackingNumber($tracking_number, $slug, $store_id = 0, $order_id) {

to

public function sendTrackingNumber($tracking_number, $slug, $order_id, $store_id = 0) {

See also  Opencart Admin showing 500 error due to ScssPhp after cache clearing

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *