• Resolved wiseowl9000

    (@wiseowl9000)


    Hi,

    I’m getting a fatal error:
    [26-Jun-2012 02:32:14] PHP Fatal error: Call to undefined function get_user_id_from_string() in /var/www/vhosts/…/wp-content/plugins/phpbb-single-sign-on/module.wp.php on line 78
    wpbb_WordPress::changePassword() /var/www/vhosts/brideonline.com.au/httpdocs/_includes/wordpress_bol_client_bridge.php:23
    wpbb_WordPress::getIdByName() /var/www/vhosts/brideonline.com.au/httpdocs/login/brideonline-client-blog/wp-content/plugins/phpbb-single-sign-on/module.wp.php:64

    Perhaps need to include:
    require_once(ABSPATH . WPINC . ‘/ms-functions.php’);
    at the top of module.wp.php ?
    as shown here:
    http://codex.wordpress.org/WPMU_Functions/get_user_id_from_string

    I’m not using WPMU, rather standard wordpress.

    Cheers,

    Ben.

    http://wordpress.org/extend/plugins/phpbb-single-sign-on/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Are you using the latest wordpress? Did you upload the plugin or did you download it through wordpress?

    I don’t have any errors with missing functions, could be a conflict with another plugin as well.

    Thread Starter wiseowl9000

    (@wiseowl9000)

    I’m using the latest version (3.4). Upgraded through the wordpress plugin manager 🙂

    I also see wordpress MU has been merged into wordpress, so it’s all one and the same now, my bad.

    I’m calling the plugin externally (using it to integrate another system into wordpress) so I’ll see if including that ms-functions.php file resolves my issue and if so mark this as resolved.

    Plugin Author onigoetz

    (@onigoetz)

    You’re completely right.

    It’ll be fixed in 0.8.7 and published in a few hours.

    Thread Starter wiseowl9000

    (@wiseowl9000)

    Thank you very much Stéphane.

    Once I upgraded I had another issue but solved it as follows:

    I’m using the file externall so inlcuded them in the following order (in case anyone else is using this plugin as a stepping stone to integrating something other than phpBB):

    require_once("wp-content/plugins/phpbb-single-sign-on/module.wp.php");
    //Include WordPress
    require_once("wp-blog-header.php");
    // dummy class to allow common-functions.php below to load
    class wpbb_phpBB3
    {
        static function loadConstants(){}
    }
    require_once("wp-content/plugins/phpbb-single-sign-on/common-functions.php");

    Then I can call wpbb_addUser and wp_signon etc.

    Cheers,

    Ben.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: PHPBB Single Sign On] Version 0.8.6 Fatal error: undefined function get_user_id_from_string’ is closed to new replies.