In some place the method "falls":
fwrite($fc, "[1]"); $arOrders = $obmen->runObmenOrdersIn(); fwrite($fc, [2]"); Ie, the record "1" is, and "2" is no longer.
I put an exception in the method, hoping to find a place where something is wrong and get the error text:
public function runObmenOrdersIn() { try{ $allOrders['NEW'] = $this->getOrdersLast('NEW'); $this->insertOrdersInDB($allOrders['NEW']); unset($allOrders['NEW']); $allOrders['CHANGED'] = $this->getOrdersLast('CHANGED'); $this->updateOrdersInDB($allOrders['CHANGED']); unset($allOrders['CHANGED']); $allOrders['CANCELED'] = $this->getOrdersLast('CANCELED'); $this->updateCanseledOrdersInDB($allOrders['CANCELED']); unset($allOrders['CANCELED']); } catch (Exception $ex) { return $ex->getMessage(); } } I write down what the method returns:
$arOrders = $obmen->runObmenOrdersIn(); fwrite($fc, $arOrders); Is empty. Tell me how to implement it correctly?
fwrite($fc, [2]");- haven't you forgotten the quote here? - Manitikylerror_reporting = e_all,ini_set.display_errors = true- Lexx918