[resolved] blank page (16 posts)

  1. pumpkineater
    Posted 3 years ago #

  2. Frank Bueltge
    Plugin Author

    Posted 2 years ago #

    The loader cant find you config. Do you have a non default install, maybe other path?

  3. pumpkineater
    Posted 2 years ago #

    Nothing special, i.e.



    tail -f /var/log/apache2//error.log

    [Tue Aug 20 11:00:14 2013] [warn] [client] mod_fcgid: stderr: PHP Fatal error: require_once(): Failed opening required '/home/me/wp-settings.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/me/wp-config.php on line 121, referer: http://me.lan/wp-admin/network/settings.php?page=adminer/adminer.php

    I m running Apache 2.2.22, Server API FCGI and SuExec with WordPress 3.6 installation, configured for multi-site use.
    I've tested Adminer 1.2.3 with and without other plugins disabled.

    I have no problems with Adminer 1.2.2

    In Adminer 1.2.2

    Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method AdminerForWP::get_object() should not be called statically

    adminer.php line 77 should be
    public static function get_object() {

    for singleton use


  4. Frank Bueltge
    Plugin Author

    Posted 2 years ago #

    But you habe your config file deeper as the rest of the public html.
    I have my config on root, plugin, content and WP in different folders via constant. The error message is clear, cant find the settings, there are inside the folder public_html.
    The script find the config, but the hint to the settings file is wrong.

    in 1.2.2 works fine, really?

    php strict error - on my local dev is it fixed, will update on the next release.

  5. pumpkineater
    Posted 2 years ago #

    I keep wp-config in user root directory as recommended by wordpress.org.
    The hint to wp-settings in wp-config is correct. i.e.

    if ( !defined('ABSPATH') )
    define('ABSPATH', dirname(__FILE__) . '/');
    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . 'wp-settings.php');

    My WordPress installation and all installed plugins (approx 30) can find wp-settings, including adminer 1.2.2, but NOT adminer 1.2.3

    I haven't run a diff on adminer.php, loader.php in 1.2.2 and 1.2.3, but their must be a difference which is causing the problem

  6. Frank Bueltge
    Plugin Author

    Posted 2 years ago #

    I work on a new version and include the older function to find the config of WordPress, maybe this works for your.

  7. pumpkineater
    Posted 2 years ago #

    Would be great Frank, thanks !

    BTW Adminer 1.2.2 still working fine for me with WP 3.8.1 :-)

  8. Frank Bueltge
    Plugin Author

    Posted 2 years ago #

    and works also version 1.3.0?

  9. pumpkineater
    Posted 2 years ago #

    Unfortunately, 1.3.0 did not solve the problem, still:

    [Mon Jan 27 20:11:27 2014] [warn] [client] mod_fcgid: stderr: PHP Fatal error: require_once(): Failed opening required '/home/me/wp-settings.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/me/wp-config.php on line 115

    In Firefox console
    GET http://me.lan/wp-content/plugins/adminer/inc/adminer/loader.php [HTTP/1.1 500 Internal Server Error 10ms]

    In Chromium console:

    GET http://me.lan/wp-content/plugins/adminer/inc/adminer/loader.php?username=me_blwp&db=me_wordpress&?KeepThis=true& 500 (Internal Server Error) load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,utils&ver=3.8:4
    (anonymous function) load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,utils&ver=3.8:4
    x.fn.extend.domManip load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,utils&ver=3.8:4
    x.fn.extend.append load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,utils&ver=3.8:4
    tb_show load-scripts.php?c=0&load%5B%5D=hoverIntent,common,admin-bar,thickbox,svg-painter,heartbeat,wp-auth…:203
    tb_click load-scripts.php?c=0&load%5B%5D=hoverIntent,common,admin-bar,thickbox,svg-painter,heartbeat,wp-auth…:33
    x.event.dispatch load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,utils&ver=3.8:4

    So I revert back again to 1.2.2 for now, which is not showing any of these errors. Weird , isn't it ?

  10. Frank Bueltge
    Plugin Author

    Posted 2 years ago #

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

  11. pumpkineater
    Posted 2 years ago #


    I removed all previous adminer plugin files and data before installing your test version from the dropbox account.

    Unfortunately, also this version of adminer still seems not able to find settings in wp-config.php.
    error.log shows identical output as mentioned in earlier post

    All your releases after 1.2.2 do render a blank page unless I relocate wp-config.php into the wordpress root, i.e. public_html/wp-config.php.
    Again, for security reasons as recommended by WordPress I would like to keep wp-config.php not in public_html but one level higher.

    So the question is, what has changed since 1.2.2 ?

    testing with:
    wp 3.8.1 multi-site
    php 5.4.4-14
    mysql 5.5.35

  12. Frank Bueltge
    Plugin Author

    Posted 2 years ago #

    The difference is the loader, in 1.2.2 was a other loader to find the wp-config. But I have include the old loader as last instance, if I can't find the config with the new loader, there fix a lot of other topics to find the file.

  13. pumpkineater
    Posted 2 years ago #

    Good work, Frank !

    So I replaced inc/admin/loader.php in the 1.30 test version with the loader from 1.22 and it all seems to be working well !!

    Even as a temporary workaround, I am very happy it works : )

    Thanks for all your efforts to investigate the issue.

  14. Frank Bueltge
    Plugin Author

    Posted 2 years ago #

    Hello again.

    Please can you test the current trunk version, download here.
    My last idea. http://downloads.wordpress.org/plugin/adminer.zip

    But the small hint to change to keep the wp-config.php - http://wordpress.stackexchange.com/questions/58391/is-moving-wp-config-outside-the-web-root-really-beneficial

  15. pumpkineater
    Posted 2 years ago #


    Tested the version from the trunk branch (1.31)
    Works fine for me, but as before, only with the old loader.php

    I didn't run a diff on the files, so I don't know what the difference is with your previous test version


    Danke, I will evaluate the cons & pro's !
    My intuition still says to keep config files out of the web root.
    Maybe it is getting time to refactor wp-config for security reasons ;-)

  16. Frank Bueltge
    Plugin Author

    Posted 2 years ago #

    Thanks. The new loader support also plugins in Adminer, maybe for select checkboxes with key Shift and more formats to export database, now include a timestamp.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.