Menu

#601 Unable to include in 3rd party applications

Git
closed-fixed
nobody
None
5
2018-03-01
2018-02-27
No

Hi,

We used to include Adminer directly into our admin interface for several reasons (eg. authentication, ...), but unfortunately this doesn't work anymore in the latest version :(

Here's how we include Adminer:
https://github.com/pimcore/pimcore/blob/2787b6e1ec2a4607002b71d0df16e19a3d89aeca/pimcore/lib/Pimcore/Bundle/AdminBundle/Controller/Admin/External/AdminerController.php#L50

The problem seems to be caused by some global variable magic.
The error message is:
Call to a member function tableHelp() on null
in vendor/vrana/adminer/adminer/include/adminer.inc.php (line 191)

So basically the $driver variable isn't available here:
https://github.com/vrana/adminer/blob/master/adminer/include/adminer.inc.php#L198

I was able to fix the problem by adding $GLOBALS['driver'] = $driver after this line:
https://github.com/vrana/adminer/blob/master/adminer/include/auth.inc.php#L170

Would be good if you could fix that in respect of interoperability :)

Thanks!

Discussion

  • Jakub Vrána

    Jakub Vrána - 2018-03-01
    • status: open --> closed-fixed
     
  • Jakub Vrána

    Jakub Vrána - 2018-03-01

    Fixed by PR #257.

     
    • pimcore-builds

      pimcore-builds - 2018-03-01

      Thanks!

       

Log in to post a comment.

MongoDB Logo MongoDB