PHP Error Log Messages When Grid is Empty

QuestionsPHP Error Log Messages When Grid is Empty
Rick Stevens asked 9 years ago

I have discovered that the php error log is loaded with the following messages when the query for a grid returns no rows (using mssql native). A single, simple grid that returns no rows can insert this warning 32 times on a single load. If a record exists in the query result, no warnings are inserted into the log. I'm concerned about excessive log file growth.

[26-Dec-2014 11:28:09] PHP Warning: array_keys() expects parameter 1 to be array, boolean given in C:WebsitesLocalUserSonoma-DEVlibincadodbdriversadodb-mssqlnative.inc.php on line 708
[26-Dec-2014 11:28:09] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in C:WebsitesLocalUserSonoma-DEVlibincadodbdriversadodb-mssqlnative.inc.php on line 709

2 Answers
Abu Ghufran answered 9 years ago

Try following:

1. Download latest adodb: https://github.com/ADOdb/ADOdb/archive/master.zip
2. Extract the archive and rename the main folder to adodb
3. In phpgrid lib, go to lib/inc folder
4. Rename existing adodb folder to adodb-old, and move the downloaded adodb folder there.

Rick Stevens answered 9 years ago

That fixed it. Thank you!

Your Answer

20 + 0 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?