I am using Yoast on a site using translations by Transposh, one of the main translation plugins for WordPress.
So as to have translated pages (of the format mydomaincom/ja/2023/01/….) listed in Yoast sitemaps, Transposh integrates with Yoast, and Yoast plugin files needs to be edited.
The edit, as described on https://vidyut.net/transposh-translation-filter-yoast-sitemaps-compatibility/, work fine with Yoast 20.2.1 : some code needs to be inserted into public function get_sitemap_links( $type, $max_entries, $current_page )
at line 242 in the file ?wordpress-seo/inc/sitemaps/class-post-type-sitemap-provider.php?
What I wondered is, so that I can enable auto-updates for Yoast without losing my modifications, whether it’s possible to write a filter or something in my theme functions.php, that will have the same impact, and not be overwritten when I update Yoast.
Thanks for any tip
]]>But it does not work with woocommerce product variation option. The options become grey and unable to choose if transposh is active. If I disactivate transposh the options become available again.
Please help!
]]>https://www.beautyspot.gr/en/product-category/fashion-accessories-gifts/sunglasses
https://www.beautyspot.gr/en/product/kalintika-somatos/body-mist-deodorants/victorias-secret-rush-body-mist-250-ml
https://www.beautyspot.gr/en/product/kalintika-somatos/body-mist-deodorants/hugo-boss-bottled-unlimited-deodorant-spray-150-ml
https://www.beautyspot.gr/en/product/kalintika/creams-serum-mation/nuxe-bio-beaute-detox-eye-cream-15-ml/
https://www.beautyspot.gr/en/product/niche-perfumes/niche-men-perfumes/amouage-interlude-black-iris-man-100-ml-eau-de-parfum/
I have an old one site with you plugin Transposh. Here all is ok, when I select not main language (russian) and go thruogh the menu – pages change but I always stay with russian language with URLs like https://stoshka.com.ua/ru/…
Problems:
1. Today I tried to install Transposh to my second website https://maksmile.seorange.in.ua/
Here is the main language is russian and the second one is ukrainian. When I select ukrainian page has url https://maksmile.seorange.in.ua/uk/ but when i select another page in menu it becomes russian again ((( How can I make it to work as in the first my website? I need like that: if I chose ukrainan – all the links become /uk for me and no need to change language on each page.
My settings of plugin at this website:
https://c2n.me/4bySEMD
https://c2n.me/4bySFdX
https://c2n.me/4bySWmM
https://c2n.me/4bySXnQ
2. One mor new website when I installed Transposh today is https://meggapolis.com.ua
The same: russian is the main and ukrainian is the second language. I had no problem with homepage. At the moment I received a translation of it and a posibility to change translation, but translation doesn’t work on all other pages in menu and redirects of /uk/redirects also doesn’t work (((
Settings of plugin at this website:
https://c2n.me/4bySS1t
https://c2n.me/4bySSXJ
https://c2n.me/4bySURK
https://c2n.me/4bySVo6
And here a Language Switcher for Transposh is installed.
Please help me to resolve these problems.
]]>can you please suggest any fix to it
thanks
Gaurav Gupta
WordPress v5.6
Server Nginx v1.18.0
PHP-FPM v7.4.13
Hi dear @oferwald , this is the error found in my WordPress debug.log file:
ERROR NUMBER 1
PHP Notice: Trying to access array offset on value of type null in /my-website.com/httpdocs/wp-content/plugins/transposh-translation-filter-for-wordpress/wp/transposh_db.php on line 273
ERROR NUMBER 2
PHP Notice: Trying to access array offset on value of type null in /my-website.com/httpdocs/wp-content/plugins/transposh-translation-filter-for-wordpress/wp/transposh_db.php on line 322
Please help me to solve this problem caused by Transposh WordPress Translation plugin.
I am waiting for your reply.
Thanks in advance for the support.
]]>WordPress v5.6
Server Nginx v1.18.0
PHP-FPM v7.4.13
Hi dear @oferwald , this is the Nginx error found in my server log file:
FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: Call to a member function find() on bool in /my-website.com/httpdocs/wp-content/plugins/transposh-translation-filter-for-wordpress/core/parser.php:737
Stack trace:
#0 /my-website.com/httpdocs/wp-content/plugins/transposh-translation-filter-for-wordpress/transposh.php(426): tp_parser->fix_html()
#1 [internal function]: transposh_plugin->process_page()
#2 /my-website.com/httpdocs/wp-includes/functions.php(4755): ob_end_flush()
#3 /my-website.com/httpdocs/wp-includes/class-wp-hook.php(287): wp_ob_end_flush_all()
#4 /my-website.com/httpdocs/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#5 /my-website.com/httpdocs/wp-includes/plugin.php(484): WP_Hook->do_action()
#6 /my-website.com/httpdocs/wp-includes/load.php(1052): do_action()
#7 [internal function]: shutdown_action_hook()
#8 {main}
thrown in /my-website.com/httpdocs/wp-content/plugins/transposh-tran” while reading response header from upstream
These errors due to Transposh cause the website to be blocked every 12/18 hours and a restart of the Nginx server is required to get the website back online.
Please help me resolve this Transposh issue.
Thanks in advance for the support.
]]>