permalink error

#265421
  • Resolved Terry Anglin
    Rank Math business
    Content AI Creator

    I have permalinks set to 1 which works fine however I have a plugin that uses the page ID like 2 which generates an error instead of displaying the page related to that page id. It works fine if I deactivate Rank Math but gives error when I reactivate Rank Math. I tried on several sites with same result. What setting in Rank Math will reject the use of page id’s in the url?

Viewing 6 replies - 16 through 21 (of 21 total)
  • Hello,

    We understand that you are not attacking the plugin nor we would ever think that from anyone trying to explain their issues and their concerns with the way our plugin might work on the website.

    As you correctly pointed out, different combinations of plugins, themes and settings can sometimes cause some weird behavior and bring some unexpected results. We are well aware of that as due to the nature of our work we deal with it every day.

    Since we are trying to get down to the bottom of the issue could you please temporarily change line 288 from the file seo-by-rank-math/includes/modules/redirections/class-redirector.php to the following?

    
    $this->matched = true;
    

    We would test that but the credentials seem to no longer be working and we just wanted to test if the missing piece from this is the matched variable.

    Rest assured that we are committed to get to the bottom of this issue and see exactly what’s causing this.

    In the meantime, if you have a staging website that you can test a default .htacess we would also like to hear the feedback from those tests.

    Looking forward to helping you.

    Terry Anglin
    Rank Math business
    Content AI Creator

    Ok, I am sorry that I disabled access to soon. I did make the change but it still had the error when I changed the redirect back to Home Page. I have reactivated your access in to WordPress if you want to take a look at anything else.

    Hello,

    Thank you for enabling the access again, but it seems we are faced with the same error when changing some settings.

    We get a 403 error when trying to change some plugin settings to test a few more things.

    Could you please verify the same and revert back so that we can continue the debug process?

    Thank you.

    Terry Anglin
    Rank Math business
    Content AI Creator

    Good morning Miguel,
    I have turned off the protection so you should be able to proceed with testing.
    Thank you for your help
    Terry

    Terry Anglin
    Rank Math business
    Content AI Creator

    I have changed the information in the Sensitive Data area to a different website. The one you have been looking at is an active live site of my clients so I couldn’t leave it unprotected.

    The new website has the same issue plus I cleared the .htaccess file to the standard so you can be sure that it wasn’t affecting the plugin.

    The https://wpdemystified.com/?p=18 shows the same error when using the redirect to the Home Page lie the previous site. This is a tutorial test site so I don’t worry about it going down during testing.

    Thanks
    Terry

    Hello,

    We were able to reproduce the error and have logged it. Please allow us some time to test and release a fix. It should be added to the plugin in the upcoming update.

    For now, to fix the issue on your site, I added the following code to your theme’s functions.php file:

    
    add_filter( 'rank_math/redirection/fallback_exclude_locations', function( $exclude ) {
    	$exclude[] = '';
    	return $exclude;
    } );
    
    

    The old permalinks now are correctly getting redirected to the new ones. Please add the same code to your other site as well.

    I hope that helps. If you need any other assistance, please feel free to let us know. We are here to help.

    Thank you.

    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 6 replies - 16 through 21 (of 21 total)

The ticket ‘permalink error’ is closed to new replies.