Archive

02月 2023

Showing 2 out of total 2

TCPDF Undefined variable $cellspacingx
Author : Anonymous Publish Time : 05 Feb 2023 21:02:39

    "type": "Yiisoft\\ErrorHandler\\Exception\\ErrorException",
    "message": "Undefined variable $cellspacingx",
    "code": 2,
    "file": "vendor/tecnickcom/tcpdf/tcpdf.php",
    "line": 18276,

php array_multisort Array sizes are inconsistent
Author : Anonymous Publish Time : 02 Feb 2023 15:03:34

ajax return error

string(28) "Array sizes are inconsistent"
{"status":"failed","msg":"updating cart failed","data":null}

 

this is my code 

$sortColumn = array_column($carriers, 'shipping_cost');
 
array_multisort($sortColumn, SORT_ASC, $carriers);