• Resolved freebetc

    (@freebetc)


    Hello,

    After a recent Gamipress plugin update, I’m getting the following fatal error. If I deactivate Gamipress plugin, the error is resolved. I was wondering if anyone could point me in the right direction to resolve the problem? Thanks for any assistance.

    Fatal error: Uncaught Error: Call to undefined method stdClass::render_screen_reader_content() in /homepages/9/d833304510/htdocs/wp-admin/includes/class-wp-list-table.php:842 Stack trace: #0 /homepages/9/d833304510/htdocs/wp-admin/includes/class-wp-list-table.php(242): WP_List_Table->pagination(‘top’) #1 /homepages/9/d833304510/htdocs/wp-content/plugins/gamipress/libraries/ct-ajax-list-table/includes/functions.php(152): WP_List_Table->__call(‘pagination’, Array) #2 /homepages/9/d833304510/htdocs/wp-content/plugins/gamipress/libraries/ct-ajax-list-table/includes/functions.php(75): ct_render_ajax_list_tablenav(Object(CT_List_Table), ‘top’) #3 /homepages/9/d833304510/htdocs/wp-content/plugins/gamipress/includes/admin/users.php(473): ct_render_ajax_list_table(‘gamipress_user_…’, Array, Array) #4 /homepages/9/d833304510/htdocs/wp-content/plugins/gamipress/includes/admin/users.php(38): gamipress_profile_user_earnings(Object(WP_User)) #5 /homepages/9/d833304510/htdocs/wp-includes/class-wp-hook.php(287): gamipress_user_profile_ in /homepages/9/d833304510/htdocs/wp-admin/includes/class-wp-list-table.php on line 842

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ruben Garcia

    (@rubengc)

    Hi @freebetc

    The error describes that the is not the WordPress class Screen

    This could happen because you are using a plugin that is rendering your users profile at frontend

    Could you provide more details of this issue? Describe the steps to reproduce it, some screenshots, etc

    Thread Starter freebetc

    (@freebetc)

    Hi,

    Thanks for your reply. I’m using the Disuputo WordPress theme with bbpress integration. One of the features of the theme is a profile editing page and the user’s Gamipress rank and achievement show up there. I realized that this problem only affects admin accounts, so it’s not a big deal and I have already configured a separate page to display Gamipress rank and achievements.

    I did notice another unrelated bug with Gamipress that I’ll mention here just in case it interests you.

    When using siteorigin layout, if I insert the Gamipress Achievements List widget into the layout and try to give the widget an additional css class, it breaks the layout block and reports the error message: “This block has encountered an error and cannot be previewed.”

    This is console output:

    Console output screenshot

    • This reply was modified 4 years, 2 months ago by freebetc.
    Plugin Author Ruben Garcia

    (@rubengc)

    Hi @freebetc

    Then, as expected, migrate the user profile screen at frontend could cause several issues because there are components that much plugins uses and that are only loaded in your backed, for that you got this error, and you got this only for administrators because GamiPress only places its components to administrators (since they are tools to let admins award or revoke elements)

    A way you can fix this issue is by removing the GamiPress components to avoid this, there is the code required:

    function my_prefix_remove_gamipress_components_at_frontend() {
        if( is_admin() ) { return; }
        
        remove_action( 'show_user_profile', 'gamipress_user_profile_data' );
        remove_action( 'edit_user_profile', 'gamipress_user_profile_data' );
    }
    add_action( 'init', 'my_prefix_remove_gamipress_components_at_frontend' );

    About the SiteOrigin Layout, you should report to them this error since looks like their custom block is removing some vars that our blocks uses

    Hope it helps

    Thread Starter freebetc

    (@freebetc)

    Hi,

    Just to say that your code snippit worked like a charm, Gamipress elements are gone from frontend and CSS is working as it should again. Thank you very much!

    Plugin Author Ruben Garcia

    (@rubengc)

    Awesome @freebetc

    Glad to help you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal Error’ is closed to new replies.