zencart: 1.5.8
php 8.1.1.2
I use a program called shipworks to sync my orders for shipping purposes.
I am getting a strange error. Anyone have any suggestions
[06-Dec-2022 14:32:40 America/New_York] Request URI: /xxx/shipworks3.php, IP address: 66.176.65.97
--> PHP Fatal error: Uncaught Error: Call to undefined function zen_get_orders_status() in /home/inverter/public_html/xxxr/shipworks3.php:740
Stack trace:
#0 /home/inverter/public_html/xxx/shipworks3.php(169): Action_GetStatusCodes()
#1 {main}
thrown in /home/inverter/public_html/xxx/shipworks3.php on line 740.
line 740
Code:
$codes = zen_get_orders_status();
below is just some more of the code not sure if needed
Code:
function Action_GetStatusCodes()
{
writeStartTag("StatusCodes");
$codes = zen_get_orders_status();
// reset($codes);
// while (list($key, $val) = each($codes))
foreach($codes as $key => $value) {
writeStartTag("StatusCode");
writeElement("Code", $val['id']);
writeElement("Name", $val['text']);
writeCloseTag("StatusCode");
}
Bookmarks