qTranslate-X makes my site crash
-
Hello there ! Thanks for an awesome theme that I loved playing with the past few years.
I recently lost access to /wp-admin/ after a Wordpress update. The problem seems to be the qTranslate-X extension.
At first the website continued to function, but now that I deactivated it I have the two languages superposed:
https://oraarchitecte.com

I have created the website 3 years ago when this extension used to be recommended. I now see that Polylang is the recommended extension.
Is there a way to fix this ? Or migrate all my translations and customized content from qTranslate-X to Polylang (or qTranslate-XT maybe ?)? Or do I have to restart from scratch, install Polylang and rebuild everything.
Here is the error log:
Une erreur de type E_ERROR a été causée dans la ligne 783 du fichier /srv/data/web/vhosts/oraarchitecte.com/htdocs/wp-content/plugins/qtranslate-x/admin/qtx_admin.php. Message d’erreur : Uncaught TypeError: strpos(): Argument #1 ($haystack) must be of type string, array given in /srv/data/web/vhosts/oraarchitecte.com/htdocs/wp-content/plugins/qtranslate-x/admin/qtx_admin.php:783 Stack trace: #0 /srv/data/web/vhosts/oraarchitecte.com/htdocs/wp-content/plugins/qtranslate-x/admin/qtx_admin.php(783): strpos() #1 /srv/data/web/vhosts/oraarchitecte.com/htdocs/wp-includes/class-wp-hook.php(307): qtranxf_get_terms_args() #2 /srv/data/web/vhosts/oraarchitecte.com/htdocs/wp-includes/plugin.php(191): WP_Hook->apply_filters() #3 /srv/data/web/vhosts/oraarchitecte.com/htdocs/wp-includes/class-wp-term-query.php(407): apply_filters() #4 /srv/data/web/vhosts/oraarchitecte.com/htdocs/wp-includes/class-wp-term-query.php(307): WP_Term_Query->get_terms() #5 /srv/data/web/vhosts/oraarchitecte.com/htdocs/wp-includes/class-wp-tax-query.php(645): WP_Term_Query->query() #6 /srv/data/web/vhosts/oraarchitecte.com/htdocs/wp-includes/class-wp-tax-query.php(580): WP_Tax_Query->transform_query() #7 /srv/data/web/vhosts/oraarchitecte.com/htdocs/wp-includes/class-wp-tax-query.php(394): WP_Tax_Query->clean_query() #8 /srv/data/web/vhosts/oraarchitecte.com/htdocs/wp-includes/class-wp-tax-query.php(324): WP_Tax_Query->get_sql_for_clause() #9 /srv/data/web/vhosts/oraarchitecte.com/htdocs/wp-includes/class-wp-tax-query.php(274): WP_Tax_Query->get_sql_for_query() #10 /srv/data/web/vhosts/oraarchitecte.com/htdocs/wp-includes/class-wp-tax-query.php(250): WP_Tax_Query->get_sql_clauses() #11 /srv/data/web/vhosts/oraarchitecte.com/htdocs/wp-includes/class-wp-query.php(2159): WP_Tax_Query->get_sql() #12 /srv/data/web/vhosts/oraarchitecte.com/htdocs/wp-includes/class-wp-query.php(3586): WP_Query->get_posts() #13 /srv/data/web/vhosts/oraarchitecte.com/htdocs/wp-includes/post.php(2410): WP_Query->query() #14 /srv/data/web/vhosts/oraarchitecte.com/htdocs/wp-includes/post.php(3939): get_posts() #15 /srv/data/web/vhosts/oraarchitecte.com/htdocs/wp-includes/class-wp-theme-json-resolver.php(285): wp_get_recent_posts() #16 /srv/data/web/vhosts/oraarchitecte.com/htdocs/wp-includes/class-wp-theme-json-resolver.php(323): WP_Theme_JSON_Resolver::get_user_data_from_wp_global_styles() #17 /srv/data/web/vhosts/oraarchitecte.com/htdocs/wp-includes/class-wp-theme-json-resolver.php(387): WP_Theme_JSON_Resolver::get_user_data() #18 /srv/data/web/vhosts/oraarchitecte.com/htdocs/wp-includes/script-loader.php(3076): WP_Theme_JSON_Resolver::get_merged_data() #19 /srv/data/web/vhosts/oraarchitecte.com/htdocs/wp-includes/script-loader.php(3272): {closure}() #20 /srv/data/web/vhosts/oraarchitecte.com/htdocs/wp-includes/class-wp-hook.php(307): {closure}() #21 /srv/data/web/vhosts/oraarchitecte.com/htdocs/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #22 /srv/data/web/vhosts/oraarchitecte.com/htdocs/wp-includes/plugin.php(476): WP_Hook->do_action() #23 /srv/data/web/vhosts/oraarchitecte.com/htdocs/wp-settings.php(620): do_action() #24 /srv/data/web/vhosts/oraarchitecte.com/htdocs/wp-config.php(78): require_once('...') #25 /srv/data/web/vhosts/oraarchitecte.com/htdocs/wp-load.php(50): require_once('...') #26 /srv/data/web/vhosts/oraarchitecte.com/htdocs/wp-admin/admin.php(34): require_once('...') #27 /srv/data/web/vhosts/oraarchitecte.com/htdocs/wp-admin/plugins.php(10): require_once('...') #28 {main} thrown
Thanks in advance
-
Sorry I realized I didn't do all my homework before posting here: the original version of qTranslate-X was stopped and "replaced" by a community-led extension named qTranslate-XT.
For other people who might be in the same situation as me:
I uploaded the latest qTranslate-XT and followed the migration guideThis updated version of the extension allowed for converting of all my language content and my website is back to normal.
Now I believe this might not be a long-term solution, so I looked into migration tools from qTranslate to Polylang: the only automated solution I found was migrating to WPML using this extension and then migrating to Polylang using that one. I'm not sure of the result though, as WPML doesn't seem to work well with Lay Theme (based on other posts).
I'd be curious to have other people's feedback on this. Thanks
-
I recently used qTranslate-XT with Wordpress (without a theme) and it works superb, it even comes with an integrated woo commerce translation.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login