Issue with Rank Math crashing my user dashboard

#78858
  • Resolved Darren Bayton
    Rank Math free

    Hi guys,

    I have an issue with using Rank Math on my website. The plugin works fine on the main pages, but as soon as I try to access the backend user dashboard that a front end student or tutor would use, it crashes the site and causes a critical error. I’ve just read your forum and spotted that someone else was having the same Critical Error issue.

    I have made a short 3-minute video here for you to take a look.
    Rank Math Plugin issue

    Hope you can shed some light on this for me. I love your plugin so much!!

    Kind regards
    Darren Bayton
    CEO Elite EDM Stars

Viewing 15 replies - 1 through 15 (of 25 total)
  • Darren Bayton
    Rank Math free

    Hi guys,

    Bhanu asked me to leave a login for the website. I have created a Guest user admin user for you to use.

    I have added the detail in the sensitive data area.

    Regards
    Darren

    Michael Davis
    Rank Math pro

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    I checked your site and the issue seems to occur when the buddypress module is enabled in Rank math dashboard. I disabled the module for now. Please allow me to consult on this and get back to you.( Do not remove the login details yet.)

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Darren Bayton
    Rank Math free

    Hi Micheal,

    Thank you, buddy. I’ll leave everything in place for you.

    Looking forward to your reply.

    All the best
    Darren

    Hello Darren,

    Can you please add your site’s FTP access details in the Sensitive Data Sections so we can debug the issue by enabling the WP_DEBUG file and changing some code in the plugin files?

    Looking forward to helping you.

    Darren Bayton
    Rank Math free

    Hi Pratik,

    Yes sure,

    The only thing is, I have 4 website accounts within the hosting, and it also accesses my emails for all my business, so I’m just contacting my hosting guy to see if he can set up a guest login for you. If not, I’ll have to give you my login access.

    Regards
    Darren

    Michael Davis
    Rank Math pro

    Hello,

    Thank you for the follow up.

    If they create a guest account, please ask them to allow write access as we may need to edit some files to find the root of the issue.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Darren Bayton
    Rank Math free

    Will do, thanks, Micheal.

    I’ve sent a message requesting you have ‘write’ access.

    Regards
    Darren

    Darren Bayton
    Rank Math free

    Added FTP details guys in sensitive data

    Hello,

    Thank you for providing the FTP access. The Rank Math’s BuddyPress module was throwing a critical error on your site’s dashboard page. I fixed it by changing the following code on line #108 in wp-content/plugins/seo-by-rank-math/includes/frontend/paper/class-paper.php:
    replace:
    } elseif ( Post::is_simple_page() ) {
    with:
    } elseif ( Post::is_simple_page() && method_exists( $this->paper, 'set_object' ) ) {

    I am trying to reproduce this issue on my setup but I couldn’t reproduce it even after copying all the settings from your BuddyPress and Rank Math plugin.

    Sorry for my ignorance but can you please tell us how you created a dashboard page i.e members/member-name/dashboard

    The members page in BuddyPress is an author page but when dashboard is appended to it then it becomes a WordPress page which is causing problem. Are there any steps we should take to create this page?

    Looking forward to helping you.

    • This reply was modified 4 years ago by Pratik.
    Darren Bayton
    Rank Math free

    Hi Pratik,

    I’m not sure to be honest with you. I originally set this WPLMS theme up 6 years ago, I installed the theme and plugins and that was it, I had to put the project on hold until 5 months ago. So i don’t know how the dashboard was created, I presume it was automatically set up as part of the theme and instlling the themes main plugins.

    I purchased a dedicated WordPress theme for a learning academy, which had all the tools and was set up. I was a little nieive to it all 6 years ago. Now I know much more about setting up pages and WordPress in general.

    I’ve recently had the new version 4.070 of the WPLMS theme installed and updated to WP5.5. I can point you to the theme developers and I will also post in their forum for you to try and get some help with this. Here’s their support site. WPLMS Support

    Kind regards
    Darren

    Darren Bayton
    Rank Math free

    Hi Pratik.

    I have a reply back from the WPLMS Vibe Theme support team.

    This is what they said:


    Well its actually buddypress profile page and we have added custom nav item to it using this function

    function setup_nav(){
    global $bp;
    $access= 0;
    if(function_exists(‘bp_is_my_profile’))
    $access = apply_filters(‘wplms_student_dashboard_access’,bp_is_my_profile());

    bp_core_new_nav_item( array(
    ‘name’ => __(‘Dashboard’, ‘wplms-dashboard’ ),
    ‘slug’ => WPLMS_DASHBOARD_SLUG,
    ‘position’ => 4,
    ‘screen_function’ => ‘wplms_dashboard_template’,
    ‘show_for_displayed_user’ => $access
    ) );
    }

    the code is in wplms dashboard plugin
    wp-content/plugins/wplms-dashboard/includes/dashboard.php
    this is how we added it.

    Darren Bayton
    Rank Math free

    So i’m not sure this is an issue with the Rank Math Plugin this time!

    BUt i might need your help guys again once I get WPLMS support to get to the bottom of the issue.

    Darren Bayton
    Rank Math free

    I have just removed this plugin folder from my FTP to confirm it’s the issue, and the site is back up and running. So yes, it’s this causing the issue.

    Hello Darren,

    
    I have just removed this plugin folder from my FTP to confirm it’s the issue, and the site is back up and running. So yes, it’s this causing the issue.
    

    Do you mean removing Rank Math plugin fixed the issue? I see the Rank Math plugin is active on your site. Is your site crashing because of the Rank Math plugin or some other plugin?

    Please let us know if Rank Math is breaking anything else apart from the members/guestadmin/dashboard/ page.

    Looking forward to helping you.

    Darren Bayton
    Rank Math free

    Hello Pratik,

    No, it was the old WPLMS Assignments plugin from their previous older theme version. It is no longer required as they have bundled the entire plugin into one plugin just called WPLMS now.

    So the Rank Math SEO plugin should be fine.

    Sorry I wasn’t clear enough with my reply because I replied twice.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 15 replies - 1 through 15 (of 25 total)

The ticket ‘Issue with Rank Math crashing my user dashboard’ is closed to new replies.