Skip to content

Plugins are broken in docker image #211

Description

@rubenhak

The plugins are not working with the latest adminer:5.2.1-standalone image.

Enable the login-servers plugin using:

Dockerfile

FROM adminer:5.2.1-standalone
RUN cp /var/www/html/plugins/login-servers.php /var/www/html/plugins-enabled/
$ docker build -t adminer:dev . 
$ docker run -it --rm -p 8080:8080 adminer:dev

Error:

GET /favicon.ico - Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, int given in /var/www/html/adminer.php:1142
Stack trace:
#0 /var/www/html/adminer.php(1142): method_exists(1, 'name')
#1 /var/www/html/index.php(30): Adminer\Plugins->__construct(Array)
#2 /var/www/html/index.php(53): docker\adminer_object()
#3 /var/www/html/adminer.php(1151): adminer_object()
#4 /var/www/html/index.php(56): require('/var/www/html/a...')
#5 {main}
  thrown in /var/www/html/adminer.php on line 1142

The prior fix attempt didn't fix the problem: #207

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions