Ready to get started?Download WordPress


Role Scoper
[resolved] PHP Warning: mysql_get_server_info() expects parameter 1 to be resource (2 posts)

  1. Anthony Somerset
    Posted 2 years ago #

    this error is present in the latest version of the plugin

    it appears that around line 197 of role-scoper.php the following code is present which appears to be now deprecated in WP (http://core.trac.wordpress.org/ticket/11443)

    the offending code is:

    } else {
          if ( ! $wpdb->has_cap( 'subqueries' ) ) {
                  rs_notice('Sorry, this version of Role Scoper requires a database server that supports subqueries (such as MySQL 4.1+).  Please upgrade your server or deactivate Role Scoper.');
                  $bail = 1;

    commenting it out successfully prevents this warning


  2. kevinB
    Plugin Author

    Posted 2 years ago #

    Thanks for pointing that out. The obsolete code is removed in the current Role Scoper version.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic