Skip to content

Uncaught TypeError: method_exists() with login-servers plugin #1038

@rubenhak

Description

@rubenhak

Adminer version: 5.2.1
Compiled: docker image: adminer:5.2.1-standalone
Driver: PostgreSQL
Database version: PostgreSQL 17.0
Plugins used: login-servers

Getting the following error when using login-servers plugin.

Fatal error: 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

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