Error in the snippet title with letter “à” (&agrave ;)

#85917
  • Resolved Tommaso
    Rank Math free

    I found a very strange error: if I insert, in the Title field of the Snippet section, a word ending with an “a” with grave accent (à) followed by a space, the value of the Title field is ignored, as if it were empty, and in the page appears in the <title> tag the default value “% title%% sep%% sitename%”.
    For example:

    • correct: Nuova attività
    • correct: Nuova attività?
    • wrong: Attività nuova
    • wrong: Scopri la mia nuova attività vicino a te

    I tried to test the error on pages and term pages and it always happens. I also tried other accented letters (á, è, ì, ù) but it only happens with the letter à.

    If I enter the code &avrave; the error does not occur, but as soon as it is saved again the error returns.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Alberto
    Rank Math business

    Hello,

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

    Sorry for the issue you are facing.

    Assuming you are using the latest version of all the plugins and the themes (please update if not yet), it could a conflict with one of the plugins or the theme you are using.

    To determine that, please follow this troubleshooting guide:
    https://rankmath.com/kb/check-plugin-conflicts/

    Please let us know if you find the culprit.

    Only the site admin would know and your users won’t be affected by this troubleshooting.

    Looking forward to helping you.

    Hello
    I checked and the problem occurs when the setlocale() function is used in the theme, in this case setlocale(LC_ALL, ‘it_IT’, ‘it-IT’).
    Why is this RankMath incompatibility with this function?
    Thanks

    Alberto
    Rank Math business

    Hello,

    Let me send this to the devs so they can give you a better insight into it.

    Looking forward to help you.

    Hello,

    Rank Math is not incompatible with the set_locale function. I tried to reproduce the issue by adding the setlocale() function and using the text with accented characters but everything seemed to work fine on my setup. Here is a screencast: https://i.rankmath.com/x6mKhU

    We might need to take a closer look at the settings on your site. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    Looking forward to helping you.

    I’m sorry but I can’t give you access to the site since it’s on localhost.

    The setlocale() function is called through the “after_setup_theme” action. Here is the code:

    function tp_language_settings(){
    	global $tp_lang;
    	$tp_lang = '';
    
    	if( !defined('ICL_LANGUAGE_CODE') ){
    		$tp_lang = 'it';
    		setlocale(LC_ALL, 'it_IT', 'it-IT');
    	}
    }
    add_action('after_setup_theme', 'tp_language_settings');

    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.

    You can keep an eye on the changelog and we will be mentioning this error when fixed.
    We seek your patience and understanding in this matter.

    In the meantime, if you need any other assistance, please feel free to let us know. We are here to help.

    Thank you.

    Thank you! I’m glad to have been of help to you in solving this bug.
    I await the release of the update in question.

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

The ticket ‘Error in the snippet title with letter “à” (&agrave ;)’ is closed to new replies.