WordPress.org

Ready to get started?Download WordPress

Forums

BC oAuth
BC auth blank page (10 posts)

  1. alexef
    Member
    Posted 3 years ago #

    Hi,

    Installed and activated plugin, but when I try to access it from the login page, the popup shows an empty page.

    Checked apache2 logs, php errors, but nothing shows up.

    Here is the test installation: http://work.eftimie.ro/~alex/wp303/wp-login.php , clicking on openid show blank popup.

    Hints?

    http://wordpress.org/extend/plugins/bc-oauth/

  2. bettercodes
    Member
    Plugin Author

    Posted 3 years ago #

    What does the Webserver error log says?

  3. Matt van Andel
    Member
    Posted 3 years ago #

    I have the same issue. When WP debug is enabled, these are the errors I get...

    Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of call_user_func(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /path-to-site/httpdocs/wp-content/plugins/bc-oauth/lib/php-openid/Auth/OpenID/Consumer.php on line 1184

    Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of call_user_func(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /path-to-site/httpdocs/wp-content/plugins/bc-oauth/lib/php-openid/Auth/Yadis/Manager.php on line 416

  4. Matt van Andel
    Member
    Posted 3 years ago #

    In my php.ini I set allow_call_time_pass_reference = On and I'm still getting the blank white screen. Also, I'm running WordPress 3.1 and PHP 5.2.6.

    The only other messages I'm getting are generic deprecated notices.

    Notice: get_settings is deprecated since version 2.1! Use get_option() instead. in /path-to-site/httpdocs/wp-includes/functions.php on line 3303

    Notice: get_settings is deprecated since version 2.1! Use get_option() instead. in /path-to-site/httpdocs/wp-includes/functions.php on line 3303

    Notice: register_sidebar_widget is deprecated since version 2.8! Use wp_register_sidebar_widget() instead. in /path-to-site/httpdocs/wp-includes/functions.php on line 3303

    Notice: register_sidebar_widget is deprecated since version 2.8! Use wp_register_sidebar_widget() instead. in /path-to-site/httpdocs/wp-includes/functions.php on line 3303

    Maybe the querystring variables aren't being properly registered with WordPress and are being lost/ignored?

  5. Matt van Andel
    Member
    Posted 3 years ago #

    Finally got a chance to poke around and the white screen fix is VERY easy.

    In bc-oauth-loader.php (btw, proper naming convention for this file should be bc-oauth.php), you simply need to add the following hook:

    add_action('init', 'bc_oauth_init');

    The problem is that the login action is trying to use wp-load.php, but there is no hooked function there to catch the login request. The init function, bc_oauth_init(), is hooked to wp_ajax, which only used by requests sent to /wp-admin/wp-ajax.php - since I don't know if that's actually used or not, I simply added an extra hook that allows bc_oauth_init() to catch requests from wp-load.php.

    Everything works great, now.

    ;-)

  6. alexef
    Member
    Posted 3 years ago #

    Thanks Veraxus!

  7. enderandrew
    Member
    Posted 3 years ago #

    Did you add:

    add_action('init', 'bc_oauth_init');

    directly above:

    add_action('wp_ajax_bc_oauth', 'bc_oauth_init');

  8. Matt van Andel
    Member
    Posted 3 years ago #

    enderandrew,

    Yes, putting it directly above add_action('wp_ajax_bc_oauth', 'bc_oauth_init'); will work fine.

  9. bettercodes
    Member
    Plugin Author

    Posted 3 years ago #

    Thanks you both alexef and Veraxus. I implemented your bugfixing solution into the current version.

  10. hxmws
    Member
    Posted 2 years ago #

    Hi All,

    Thanks for developing a great plugin for authentication I have a quick question for you. We are looking to use the Gmail login option, but would like to limit this so that only users within our googleApps account can authenticate. Is this possible and if so could you please confirm the steps that we would need to take to enable this.

    Thanks
    Matt

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags