Menu

#609 Call to a member function convertSearch() on null

Git
closed-invalid
nobody
None
5
2019-01-22
2018-04-02
karlk
No

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

http://wiss.b2d:8010/a/?server=m1&username=bil&db=df4&select=ex&columns%5B0%5D%5Bfun%5D=&columns%5B0%5D%5Bcol%5D=base&columns%5B1%5D%5Bfun%5D=&columns%5B1%5D%5Bcol%5D=&where%5B0%5D%5Bcol%5D=id_ex&where%5B0%5D%5Bop%5D=%3D&where%5B0%5D%5Bval%5D=2348&where%5B2%5D%5Bcol%5D=&where%5B2%5D%5Bop%5D=%3D&where%5B2%5D%5Bval%5D=&order%5B0%5D=&limit=500&text_length=100

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.

Discussion

  • Jakub Vrána

    Jakub Vrána - 2018-05-06
    • status: open --> pending
     
  • Jakub Vrána

    Jakub Vrána - 2018-05-06

    Please provide repro instructions:

    1. SQL command to create the table in operation, populate with sample data if necessary.
    2. What did you do in the UI.
    3. What did you get.

    Use source codes of Adminer to report any stack traces.

     
  • Jakub Vrána

    Jakub Vrána - 2019-01-22
    • status: pending --> closed-invalid
     
  • Jakub Vrána

    Jakub Vrána - 2019-01-22

    The issue is with null $driver which is initialized in auth.inc.php. I remeber there were some issues with this but they are probably fixed now.

     

Log in to post a comment.