tenecifer
Forum Replies Created
-
Hello !
There is my solution :
In the file wp-content/plugins/translatepress-multilingual/includes/advanced-settings/do-not-translate-certain-paths.php, comment or delete the lines 319 and 320 :if( !isset( $TRP_LANGUAGE ) || $settings['default-language'] == $TRP_LANGUAGE )
return;(Keep in mind that if there is a plugin update, you must redo this operation if the issue is not fixed by the developers)
I didn’t look deeply into this because, well I am not paid for this, but there are some remarks :In the render_default_language() function of the wp-content/plugins/translatepress-multilingual/includes/class-translation-render.php file, the first conditions check if certain options are enabled like the one Tikotot disabled and if the native language is not the default one.
If the conditions return true, the handle_custom_links_and_forms() function is used.
Again, under certain conditions and in particular, if I understand correctly, if the language used is not the default one, the “trp_force_custom_links” filter is used on the url to display.
We find the trp_exclude_include_filter_custom_links() function associated with this filter in the file do-not-translate-certain-paths line 301.
Then it is again checked line 319 that the language used is not the default one and if it returns true, the url returned is empty (null)… It is possible that I am wrong somewhere but in any case, it’s weird…
And unfortunately, no idea why it suddenly didn’t work anymore…
Please, tell me if it is working for you !Hello, I have good news !
I located the origin of the issue in the code !
I need a bit more time to fully understand the problem, to fix it (properly) and to test it. Then I’ll post my solution in 1 or 2 days ??Hello,
Thank you for your reply.
These next days I’ll try to spare some time and energy to look into my database and/or into the code of their plugin and see if I can patch it…
Meanwhile, I have a question for you : do you use a cache plugin for your WordPress ?
It’s the only thing I changed between the moment when the plugin worked then breaks. However I used the same cache plugin before and everything was fine. I tried to replicate the issue on a new WordPress but there was no issue.
Even stranger, I tried to use a backup of my database and I also reinstalled the plugin but it was the same result… There was no update so It’s really weird, I don’t see what I am missing…