qtranslate / qtranslate-xt

qTranslate-XT (eXTended) - reviving qTranslate-X multilingual plugin for WordPress. A new community-driven plugin soon. Built-in modules for WooCommerce, ACF, slugs and others.
GNU General Public License v2.0
550 stars 103 forks source link

ACF wysiwyg not translating #1261

Closed MarkArgent closed 1 year ago

MarkArgent commented 1 year ago

I'm using qtranslate-XT 3.12.1, ACF Pro 6.0.5 and WordPress 6.1.1 on my offline copy of a wordpress site

I've created a number of fields with ACF. On the dashboard these show language switcher flags, and various fields have a heavy blue border indicating that they can be translated. HTML input fields are fine --- a heavy left border and the content switches between English and Welsh when I switch between languages. But the wysiwyg textarea fields, the content doesn't change when I switch languages. The HTML for the fields failing to switch are:

<textarea id="acf-editor-59" class="wp-editor-area qtranxs-translatable" name=acf[field_622a6aa126935]" style="height:300px;"></textarea>

I've altered the contents of the "class" box in wp-admin/options-general.php?page=qtranslate-xt and in each case, switching language makes no difference, the combinations I have tried are:

No errors appear in the apache error log or the console in Firefox, but debug.log has the following lines appearing each time I try:

[28-Nov-2022 17:17:21 UTC] PHP Notice:  unserialize(): Error at offset 171 of 586 bytes in /home/mark/angleseyartsforum.org/data/wp-content/plugins/qtranslate-xt-master/qtranslate_frontend.php on line 772
[28-Nov-2022 17:17:21 UTC] PHP Notice:  unserialize(): Error at offset 233 of 590 bytes in /home/mark/angleseyartsforum.org/data/wp-content/plugins/qtranslate-xt-master/qtranslate_frontend.php on line 772
[28-Nov-2022 17:17:21 UTC] PHP Notice:  unserialize(): Error at offset 188 of 627 bytes in /home/mark/angleseyartsforum.org/data/wp-content/plugins/qtranslate-xt-master/qtranslate_frontend.php on line 772
[28-Nov-2022 17:17:21 UTC] PHP Notice:  unserialize(): Error at offset 233 of 590 bytes in /home/mark/angleseyartsforum.org/data/wp-content/plugins/qtranslate-xt-master/qtranslate_frontend.php on line 772

Can anyone offer any pointers?

herrvigg commented 1 year ago

Duplicate #1186. It's fixed in master. Please try downloading the last version.

MarkArgent commented 1 year ago

I struggled to get the new master, but now qTranslateXT 3.13.0 is released, I've installed that.

I still have the same problem: with the wysiwyg fields nothing changes when I switch language (so the content from one language remains when I switch to the other).

I don't know if it is relevant, but having upgraded, the error message that begins "PHP Notice: unserialize()" is still appearing though the line number in plugins/qtranslate-xt-master/qtranslate_frontend.php is now being thrown by line 797