Rank Math SEO Page Title Bug

#245797
  • Resolved Onur Ozden
    Rank Math free

    Hello. I’m using original/licensed rank math pro business on onurozden.com.tr But i dont have access the pro business account. I have created new rank math account to get support this issue.

    Issue:
    The variable values is not being fetch in my category and tag pages. I am creating the title with this values (%term% Kategorisi %page% %sep% %sitename%) in rank math settings (screenshot 2). However, when I look through the inspect element, I see that the the variable values are not fetched, only the text (Kategorisi) I have written manually (screenshot 1). I am using rank math pro business latest version. I am using WordPress 5.8 and woocommerce 5.5.2 with Onum theme. How can I solve this?
    Example category page: https://www.onurozden.com.tr/kategori/anahtar-teslim-website/
    (please dont deactivate any plugin for testing, i have 7/24 online e-commerce website and too much clients, and please give me report what you do)
    See also: Screenshots
    screenshot 1
    screenshot 2

Viewing 14 replies - 1 through 14 (of 14 total)
  • Ankit
    Rank Math business

    Hello,

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

    I am able to replicate the issue on your website, Since you said not to touch anything, Could you please create a staging site for us and replicate the issue there so we can further investigate this issue without worrying about breaking the live site?

    You can use this plugin to create a staging environment for your site:
    https://wordpress.org/plugins/wp-staging/

    We are looking forward to helping you with this one.

    Okay. I will create staging environment for my site on different domain.

    Hello,

    Thank you. Please do share the login details of the staging website after you create it. We will keep this ticket open for you.

    In the meantime, please don’t hesitate to contact us anytime if you need our assistance with anything else. Thank you

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    I added login credentials to sensitive data.

    Note 1: I removed all posts and woocommerce to avoid duplicate indexing problem on seo, you can add new post to testing posts or add woocommerce and customize
    Note 2: Some domain-licenced extensions not working this staging domain. Example: elementor, social login, ithemes security, rank math seo pro business etc.
    Note 3: You can test this site anything you want. I just want you to tell me how you solved the problem so I can edit it on onurozden.com.tr

    Example: Elementor pro* (this is correct)

    I added this line (disallow: /) to robots.txt and enabled wordpress noindex feature. Please don’t change these to avoid duplicate content/index issues on seo

    Note 4: I removed all customer users and orders to avoid gdpr issues. You can add new customer user or get order to testing.

    Hello,

    Thank you for providing the staging website for us.

    I conducted a plugin/theme conflict troubleshooting and I discovered that this plugin “join.chat” is causing issues with Rank Math when generating the title meta. Please refer to my video screencast here: https://i.rankmath.com/VotrC5

    Can you contact the folks from “join.chat” and see if they have already encountered this issue before? See if they may be able to offer a fix.

    We are looking forward to hearing again from you. Thank you.

    Thank you. I will try downgrade or disable joinchat plugin

    I fixed this issue. I edited the class-joinchat-util.php

    Original codes (starts line 244):

    	public static function get_title() {
    
    		if ( is_home() || is_singular() ) {
    			$title = single_post_title( '', false );
    		} elseif ( is_tax() ) {
    			$title = single_term_title( '', false );
    		} elseif ( function_exists( 'wp_get_document_title' ) ) {
    			$title = wp_get_document_title();
    
    			// Try to remove sitename from $title for cleaner title
    			$sep   = apply_filters( 'document_title_separator', '-' );
    			$site  = get_bloginfo( 'name', 'display' );
    			$title = str_replace( esc_html( convert_chars( wptexturize( " $sep " . $site ) ) ), '', $title );
    		} else {
    	        $title = get_bloginfo( 'name' );
    		}
    
    		return apply_filters( 'joinchat_get_title', $title );
    
    	}

    Edited codes:
    `public static function get_title() {

    if ( is_home() || is_singular() ) {
    $title = single_post_title( ”, false );
    } elseif ( is_archive() ) {
    $title = single_term_title( ”, false );
    } elseif ( function_exists( ‘wp_get_document_title’ ) ) {
    $title = wp_get_document_title();

    // Try to remove sitename from $title for cleaner title
    $sep = apply_filters( ‘document_title_separator’, ‘-‘ );
    $site = get_bloginfo( ‘name’, ‘display’ );
    $title = str_replace( esc_html( convert_chars( wptexturize( ” $sep ” . $site ) ) ), ”, $title );
    } else {
    $title = get_bloginfo( ‘name’ );
    }

    return apply_filters( ‘joinchat_get_title’, $title );

    }`

    Removed the is_tax() condition and added is_archive() condition. This is right way for avoid this bug.

    Better way:

    instead of just using is_archive() , use this condition: is_archive() || is_tax()

    wordpress.org support forum topic for this issue
    https://wordpress.org/support/topic/joinchat-category-page-title-bug-when-using-seo-plugin/

    Hello,

    I am glad that you have located the source of the bug. I see that you already informed Joinchat over their support page. Let us know how it goes.

    If you do have another question/issues 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 14 replies - 1 through 14 (of 14 total)

You must be logged in to reply to this ticket.