Page tab titles says Page Not Found

#659309
  • Resolved Anonymous
    Rank Math free

    We have reached out to Gravity Forms to correct a problem with the page tab titles – which are showing PAGE NOT FOUND even if the page does exist.

    This was the message from Gravit Forms:

    Note that the page not found title is being added by the Rank Math plugin – which is inadvertently recognizing the page as a 404. There team is aware of this issue, but I recommend also reporting this issue to their team to ensure they are not altering the page title (tagging as 404) when $wp_query->is_404 = false;

    Kindly let us know if it can be rectified as it is very annoying.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for the delay and for any inconvenience this issue may have caused you.

    Our development team has been already communicating with the Gravity Forms team to fix this issue permanently.

    We will notify everyone via the usual communication channels once this is added to our update.

    You can also keep an eye on our changelog here:
    https://rankmath.com/changelog/

    We would appreciate your kind patience regarding this matter.

    Thank you.

    Anonymous
    Rank Math free

    Hi,

    Checking in on this issue. Do you have a timeline when it can be solved?

    Hello,

    Thank you for your patience.

    Our developers are currently working on it, but we don’t have any ETA on its release.

    However, could you please share the affected URL so we can suggest a filter for a temporary fix?

    Looking forward to helping you.

    Anonymous
    Rank Math free
    Anonymous
    Rank Math free

    Sorry, we had submitted this in another ticket. I was under the impression you already had this.

    Hello,

    Please add the following filter to your site to resolve the issue for now:

    add_filter( 'rank_math/paper/hash', function( $hash ) {
    	if ( $hash[ 'Error_404' ] && 'join-growmance' === get_query_var( 'name' ) ) {
    		$hash[ 'Error_404' ] = false;
    	}
    
    	return $hash;
    } );

    Here is how to add a filter to your site: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Anonymous
    Rank Math free

    I want to note that we have about 7 of these forms on our site. So, I am supposed to do this 7 times?

    Hello,

    We have modified the code to work for multiple pages, not just the /join-growmance page.

    You can include the page slugs to the array of the slugs for all the pages you want to target.

    add_filter( 'rank_math/paper/hash', function( $hash ) {
        // Array of page slugs you want to target
        $target_slugs = array('join-growmance', 'slug-2', 'slug-3', 'slug-4', 'slug-5', 'slug-6', 'slug-7');
    
        // Check if the current page's slug is in the array of target slugs
        if ( $hash['Error_404'] && in_array(get_query_var('name'), $target_slugs) ) {
            $hash['Error_404'] = false;
        }
    
        return $hash;
    } );

    Here’s how you can add filter/hook to your WordPress site:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Ensure you replace the line 'slug-2', 'slug-3', 'slug-4', 'slug-5', 'slug-6', 'slug-7' with you page slugs for the code to work on those form pages as well.

    We hope that helps, and please don’t hesitate to get in touch if you have any other questions.

    Thank you.

    Anonymous
    Rank Math free

    Ok. Thank you. What is the ETA on this getting fixed?

    Hello,

    I’m afraid, there is currently no fixed ETA for this, but we are currently working with the Gravity Forms team to fix this permanently. You can keep an eye on our changelog page to see when this is live.

    Regards,

    Anonymous
    Rank Math free

    Ok. You can close this. Thanks.

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

Viewing 12 replies - 1 through 12 (of 12 total)

The ticket ‘Page tab titles says Page Not Found’ is closed to new replies.