WordPress.org

Ready to get started?Download WordPress

Forums

Adminer
is_user_logged_in() not defined (6 posts)

  1. Maxaud
    Member
    Posted 6 months ago #

    I get this error when viewing the Adminer page:

    2013/10/02 04:11:32 [error] 9610#0: *7629 FastCGI sent in stderr: "PHP Fatal error: Call to undefined function is_user_logged_in() in /home/deployer/sites/mydomain.com/wp-includes/admin-bar.php on line 741" while reading response header from upstream, client: 127.0.0.1, server: mydomain.com, request: "GET /wp-content/plugins/adminer/inc/adminer/loader.php?username=<myusername>&db=<mydb> HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "mydomain.com", referrer: "http://mydomain.com/wp-admin/network/settings.php?page=adminer/adminer.php"

    If I deactivate my other plugins and use default theme, it works.

    It looks to be related to the use of the "is_admin_bar_showing()" function in a different plugin.

    Maybe there is a way to not load the other plugins with Adminer?

    These plugins don't throw any errors by themselves.

    http://wordpress.org/plugins/adminer/

  2. Frank
    Member
    Plugin Author

    Posted 2 months ago #

    The plugin works outside WordPress and can in your error message not identify the core files of WordPress. Maybe you install is different from default or the webspace is not typically for my tests?

  3. Maxaud
    Member
    Posted 2 months ago #

    I've actually encountered this multiple occasions on MANY different sites.

    Some times it gives the "Cheatin' uh?" WordPress error.

    In all occasions, if I change my theme to a default or deactivate all other plugins, it will start working.

  4. Frank
    Member
    Plugin Author

    Posted 2 months ago #

    This hint is my last echo, if the plugin can't find the wp-config.php of the installation.
    Can you describe the install, the folder and where is the wp-config.php? Also is the plugin active in a Multisite environment or single install? Which WP version?

  5. Maxaud
    Member
    Posted 2 months ago #

    It's happened with 3.8 in a normal root installed domain with the wp-config.php in the default location.

  6. Frank
    Member
    Plugin Author

    Posted 2 months ago #

    Please can you test this version: https://dl.dropboxusercontent.com/u/132701/adminer.zip
    Replace the completly folder in your plugin directory.
    Thanks!

Reply

You must log in to post.

About this Plugin

About this Topic