|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62721 False positive "Argument ... must be an array, null given"
Submitted: 2012-08-01 20:33 UTC Modified: 2013-02-18 00:35 UTC
From: register at bazanov dot net Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 5.3.15 OS: Debian
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2012-08-01 20:33 UTC] register at bazanov dot net
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/ on line 478 and defined in /srv/www/ on line 58

// OrderHelper.php, Line 478:
$order = PendingOrderService::PreparePendingOrder($customer, $orderLines, $isDDP, $CustomerOrderN);
PendingOrderService::AddOrder($order, $_SESSION['RestrictWithMinPrices']);

          $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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-08-02 01:15 UTC]
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.

 [2012-08-02 01:15 UTC]
-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
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jun 19 07:01:31 2024 UTC