|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-08-02 01:15 UTC] aharvey@php.net
[2012-08-02 01:15 UTC] aharvey@php.net
-Status: Open
+Status: Feedback
-Package: Unknown/Other Function
+Package: Scripting Engine problem
[2013-02-18 00:35 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 03:00:01 2025 UTC |
Description: ------------ in php.log I see (2 times for the last month): [20-Jul-2012 12:12:32] PHP Catchable fatal error: Argument 2 passed to PendingOrderService::PreparePendingOrder() must be an array, null given, called in /srv/www/example.org/public_html/OrderHelper.php on line 478 and defined in /srv/www/example.org/public_html/bll/PendingOrderService.php on line 58 ... // OrderHelper.php, Line 478: $order = PendingOrderService::PreparePendingOrder($customer, $orderLines, $isDDP, $CustomerOrderN); PendingOrderService::AddOrder($order, $_SESSION['RestrictWithMinPrices']); CustomerActionsLogAccessor::AddLogEntry( $CustomerID, ADD_PENDING_ORDER_FROM_EXCEL, $CustomerOrderN, count($orderLines) . " positions", ''); ... ... // PendingOrderService.php, Line 58: public static function PreparePendingOrder(Customer $customer, array $orderLines, $isDDP, $orderN = null) ... At the same time in my log I see that the order was added on [20-Jul-2012 12:12:32] (same time when fatal error was logged) and the log contains "419 positions", so count($orderLines) executed successfully and it means $orderLines was array and not null. Also I see the saved order in the database with timestamp [20-Jul-2012 12:12:32]. So, everything went fine, $orderLines was not null, but still I got that log entry.