Coder Social home page Coder Social logo

Comments (19)

funkjedi avatar funkjedi commented on July 25, 2024

Just did a testing using mqTranslate and everything seems to work as expected. Can you elaborate as to the issue you're experiencing?

from acf-qtranslate.

jonaswannfors avatar jonaswannfors commented on July 25, 2024

It breaks the main editor (with mqTranslate) so it doesn't save the content in it att all, it wipes whatever was in it. When I turn of acf-qtranslate the main editor works with mqTranslate as supposed.

from acf-qtranslate.

jonaswannfors avatar jonaswannfors commented on July 25, 2024

Investigated it a bit further:It is possible to save content in the HTML tab if ity is already active when page loads. As soon as I switch editor tab it breaks.

from acf-qtranslate.

jonaswannfors avatar jonaswannfors commented on July 25, 2024

Any progress with WP 3.9/mQtranslate compability? Would like to help if I could but I don't think my skills are enough...

from acf-qtranslate.

jonaswannfors avatar jonaswannfors commented on July 25, 2024

If I change featured image while main editor is in WYSIWYG-mode it clears alla content on update, but if I keep it in text(HTML)-mode it works. If I turn of acf-qtranslate it seems to work.

from acf-qtranslate.

fburatti avatar fburatti commented on July 25, 2024

acf qtranslate works quite well with mqtranslate. Only 1 problem (mentioned above) only occurs with ACF Wysiwyg field that will override the content in the main editor.

perhaps (if can help) we need to change in your plugin acf_qtranslate_monkey_patch() function: in mqtranslate_javascript.php file the $ q_config ['js'] ['qtrans_hook_on_tinyMCE'] has been changed.

Also referred to this function with mqtranslate are generated notice that do not occur with qtranslate:

Notice: Undefined index: js in /htdocs/wp/wp-content/plugins/acf-qtranslate/acf-qtranslate.php on line 54

Notice: Undefined index: js in /htdocs/wp/wp-content/plugins/acf-qtranslate/acf-qtranslate.php on line 55

Notice: Undefined index: qtrans_hook_on_tinyMCE in /htdocs/wp/wp-content/plugins/acf-qtranslate/acf-qtranslate.php on line 60

Notice: Undefined index: qtrans_hook_on_tinyMCE in /htdocs/wp/wp-content/plugins/acf-qtranslate/acf-qtranslate.php on line 61

from acf-qtranslate.

iam4x avatar iam4x commented on July 25, 2024

@funkjedi @fburatti The monkey_patch_hook doesn't seems do be needed anymore with mqTranslate

Just comment line 49 in acf-qtranslate.php and the errors won't show ;)

from acf-qtranslate.

 avatar commented on July 25, 2024

Hello,

I came up with same issue on wysiwyg due to recent migration from qtranslate to mqtranslate.
It does not keep the main wysiwyg content while saving. (was working perfectly with qtranslate).

Is there finally a way to keep both wysiwg contents (the standard one and the acf one) or shall i definitely not use acf wysiwyg field with mqtranslate ?

thanks

from acf-qtranslate.

loganyott avatar loganyott commented on July 25, 2024

I am experiencing this issue as well. It seems to be JS related.

If I switch between language tabs on the WYSIWYG editor for the post body, the last custom file WYSIWYG editor content overrides the post body.

This did not happen with qTranslate, only after switching to mqTranslate.

from acf-qtranslate.

loganyott avatar loganyott commented on July 25, 2024

Nevermind. I found the problem in mqtranslate_javascript.php.

The qtrans_save tries to save the content of the last blurred editor to content, regardless of what the editor actually was. I'll raise this issue with them. Thanks for the awesome plugin!

from acf-qtranslate.

Ashkas avatar Ashkas commented on July 25, 2024

@loganyott Have you heard back from them in regards to this issue? Or have you worked out an interim work-around?

We just discovered this (or a similar) issue on user ACF-mqTranslate on the user profile page. When you switch language tabs, the "update user" button no longer works.

from acf-qtranslate.

loganyott avatar loganyott commented on July 25, 2024

I'm not sure if that's quite a similar issue. Mine had to do with mqTranslate JS not being specific when trying to save WYSIWYG editor content. Turns out, I just needed to update mqTranslate as it was fixed in 2.6.6.

I'd recommend checking out a newer version of mqTranslate locally and see if that resolves your issue. Otherwise, they do seem quite responsive to bugs.

from acf-qtranslate.

SvyrydovAndrey avatar SvyrydovAndrey commented on July 25, 2024

Hello. I'm have problem with plugin :( I am haven't switch language tabs .
mqTranslate 2.8 ACF 4.3.9 WordPress 3.9.2
Notice: Undefined index: js in /wp-content/plugins/acf-qtranslate/acf-qtranslate.php on line 40
Notice: Undefined index: js in /wp-content/plugins/acf-qtranslate/acf-qtranslate.php on line 41
Notice: Undefined index: qtrans_hook_on_tinyMCE in /wp-content/plugins/acf-qtranslate/acf-qtranslate.php on line 46
Notice: Undefined index: qtrans_hook_on_tinyMCE in wp-content/plugins/acf-qtranslate/acf-qtranslate.php on line 47
Please tell me how to fix this bug.
Thanks.

from acf-qtranslate.

loganyott avatar loganyott commented on July 25, 2024

Hi @SvyrydovAndrey,

Are you saying that you are having an issue with the language tabs not switching in addition to the notices appearing? The notices you posted are harmless and shouldn't be causing problems. If you want to hide them, you can add define('WP_DEBUG_DISPLAY', false); to your wp-config.php.

from acf-qtranslate.

SvyrydovAndrey avatar SvyrydovAndrey commented on July 25, 2024

Hi thanks for the answer to the problem was my code.
Thanks for the plugin :)

from acf-qtranslate.

jamimeson avatar jamimeson commented on July 25, 2024

Hey @loganyott, I seem to be having the same problem you described only it seems to happen to my standard content field. It's fine with my custom fields. Any idea why this is?

from acf-qtranslate.

jamimeson avatar jamimeson commented on July 25, 2024

( I should probably mention that this issue goes away when I disable ACF)

from acf-qtranslate.

loganyott avatar loganyott commented on July 25, 2024

Hi @jamimeson

What version of mqTranslate are you running? My issue was that some js in mqtranslate_javascript.php was using a jQuery selector that selected the last WYSIWYG editor on the page when it populated the language tabs on the main content field. I think the particular problem was this function.

So although it seemed like this plugin was causing the problem, it was really the selector used by mqTranslate. I originally started to write a patch and then found out they fixed it in v2.6.6.

Let me know if you're having a different problem that I totally didn't understand. :)

from acf-qtranslate.

jamimeson avatar jamimeson commented on July 25, 2024

Hey @loganyott
Oddly enough, I figured out the problem just now. It was due to my own error, I must have had other things on my mind on Friday. I had created two ACF Field Groups, both applying fields to my custom post type, but had only told one to hide the content field. Thanks for the help though!

from acf-qtranslate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.