I had a peculiar error today I never had on an often used query composed by form with version 4.3.1. The error stays with me now.
I don't see I did anything different this time. The URL composed by the form is
I never inspected this so I cannot say if there is something wrong with this construction. Anyhow, as I didn't compose this URL and used the form as usual (show one column only, one select condition on one column), I don't see how I could be responsible for any garbage in this URL, if ever.
I'm sure I used the same kind of query yesterday a couple of times without problem. It's very irritating. I didn't change anything in my environment. I just sent my machine to sleep yesterday and awakened it this morning.
The following message is shown twice:
Severity: Warning
Message: count(): Parameter must be an array or an object that implements Countable
Filename: a/adminer-4.3.1.php
Line Number: 1809
Backtrace:
File: /www/plugins/a/adminer-4.3.1.php
Line: 1809
Function: _error_handler
File: /www/application/models/A.php
Line: 19
Function: include_once
...
The result is okay.
So I upgraded to the latest version:
replaced old by new version
# include_once "./plugins/a/adminer-4.3.1.php";
include_once "./plugins/a/adminer-4.6.2.php";
The results of the same URL:
0.0375 Error: Call to a member function convertSearch() on null in /www/plugins/a/adminer-4.6.2.php:1520
Stack trace:
#0 /www/plugins/a/adminer-4.6.2.php(1911): Adminer->selectSearchProcess(Array, Array)
#1 /www/application/models/A.php(20): include_once('/www/plugins/a/...')
#2 /www/application/core/WP_Model.php(173): A->_display()
#3 /www/application/core/WP_Model.php(90): WP_Model->_init()
#4 /www/system/core/Loader.php(358): WP_Model->__construct()
#5 /www/application/controllers/Pages.php(14): CI_Loader->model('A')
#6 /www/system/core/CodeIgniter.php(483): Pages->view('a')
#7 /www/index.php(295): require_once('/www/system/cor...')
#8 {main}
Same query in SQL box runs fine in both versions.
A simple select call to the table itself produces the following error:
http://wiss.b2d:8010/a/?server=m1&username=bil&db=df4&select=ex
0.0439 Error: Call to a member function tableHelp() on null in /www/plugins/a/adminer-4.6.2.php:1486
Stack trace:
#0 /www/plugins/a/adminer-4.6.2.php(1917): Adminer->selectLinks(Array, '')
#1 /www/application/models/A.php(20): include_once('/www/plugins/a/...')
#2 /www/application/core/WP_Model.php(173): A->_display()
#3 /www/application/core/WP_Model.php(90): WP_Model->_init()
#4 /www/system/core/Loader.php(358): WP_Model->__construct()
#5 /www/application/controllers/Pages.php(14): CI_Loader->model('A')
#6 /www/system/core/CodeIgniter.php(483): Pages->view('a')
#7 /www/index.php(295): require_once('/www/system/cor...')
#8 {main}
Another try, same error:
http://wiss.b2d:8010/a/?server=m1&username=bil&db=df4&table=ex
0.0172 Error: Call to a member function tableHelp() on null in /www/plugins/a/adminer-4.6.2.php:1486
Stack trace:
#0 /www/plugins/a/adminer-4.6.2.php(1696): Adminer->selectLinks(Array)
#1 /www/application/models/A.php(20): include_once('/www/plugins/a/...')
#2 /www/application/core/WP_Model.php(173): A->_display()
#3 /www/application/core/WP_Model.php(90): WP_Model->_init()
#4 /www/system/core/Loader.php(358): WP_Model->__construct()
#5 /www/application/controllers/Pages.php(14): CI_Loader->model('A')
#6 /www/system/core/CodeIgniter.php(483): Pages->view('a')
#7 /www/index.php(295): require_once('/www/system/cor...')
#8 {main}
I switched back to previous version.
Please provide repro instructions:
Use source codes of Adminer to report any stack traces.
The issue is with null
$driver
which is initialized inauth.inc.php
. I remeber there were some issues with this but they are probably fixed now.