WordPress.org

Forums

Role Scoper
[resolved] Fatal error in role group edit page (9 posts)

  1. crashtest
    Member
    Posted 2 years ago #

    I created 2 rs groups and everything was ok until i updated Role Scoper options. After that, at the bottom of each group edit page i always got this:

    Fatal error: Call to a member function get_results() on a non-object in /***/wp-content/plugins/role-scoper/admin/profile_ui_rs.php on line 324

    I uninstalled rs, deleted rs db tables, deleted all scoper_ voices in db wp options table, installed rs again and no success, as i do some changes and update rs options, i get same error.

    http://wordpress.org/extend/plugins/role-scoper/

  2. natb19
    Member
    Posted 2 years ago #

    Same thing happened to me...

  3. natb19
    Member
    Posted 2 years ago #

    Not perfect but change:

    if ( IS_MU_RS && scoper_get_option( 'mu_sitewide_groups' ) ) {
        global $wpdb, $blog_id;

    to

    global $wpdb, $blog_id;
    if ( IS_MU_RS && scoper_get_option( 'mu_sitewide_groups' ) ) {
  4. paulzee
    Member
    Posted 2 years ago #

    I'm getting the same error.

    @natb19. Can you clarify where you made that change? Thanks!

  5. natb19
    Member
    Posted 2 years ago #

    @paulzee

    wp-content/plugins/role-scoper/admin/profile_ui_rs.php

    line 625 (ish) or just do a search for the line to change ;)

  6. paulzee
    Member
    Posted 2 years ago #

    Thanks heaps @natb19. You were half right: line 313 ;) Thanks again for your help :)

  7. Nono
    Member
    Posted 2 years ago #

    Thanks for the tip. I got the same error and I rolled back to 1.3.60 for now and waiting for the developer's update.

  8. villagechris
    Member
    Posted 2 years ago #

    I experienced this same error when editing a role group and your fix worked. Thanks!

    Notice: Undefined variable: wpdb in ...\wp-content\plugins\role-scoper\admin\profile_ui_rs.php on line 324 Fatal error: Call to a member function get_results() on a non-object in ...\wp-content\plugins\role-scoper\admin\profile_ui_rs.php on line 324

  9. Kevin Behrens
    Member
    Plugin Author

    Posted 1 year ago #

    Nice to meet all you guys. This error will be fixed in the upcoming Role Scoper 1.3.62.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Role Scoper
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.