WordPress.org

Ready to get started?Download WordPress

Forums

qTranslate
[resolved] qTranslate broken after update WP to 3.5 version (43 posts)

  1. nozhko-i
    Member
    Posted 1 year ago #

    I have updated my WordPress using qTranslate plugin to 3.5 version Today, and qTranslate works incorrect:
    "The qTranslate Editor has disabled itself because it hasn't been tested with your WordPress version yet. This is done to prevent WordPress from malfunctioning. You can reenable it by clicking here (may cause data loss! Use at own risk!). To remove this message permanently, please update qTranslate to the corresponding version"

    http://wordpress.org/extend/plugins/qtranslate/

  2. Nikola Nikolov
    Member
    Posted 1 year ago #

    Have you tried reading this or this or maybe even this?

    If you did, you would have seen that they link to an article where I've explained how you can work-around this issue. If you had tried my solution and it doesn't work - then you should post in a different thread and not start a new one.

    Please if this fixes the issue for you, mark this topic as fixed.

  3. nozhko-i
    Member
    Posted 1 year ago #

    Thank you, nikolov.tmw. I was inattentive.
    It helped me: http://www.qianqin.de/qtranslate/forum/viewtopic.php?f=3&t=3831

  4. Nikola Nikolov
    Member
    Posted 1 year ago #

    Glad it worked :)

  5. TIIUNDER
    Member
    Posted 1 year ago #

    Just to summarize the solution for the problem:

    Use this code for qtranslate_javascript.php: Pastebin

    User this in qtranslate.php:
    change define('QT_SUPPORTED_WP_VERSION', '3.4.2');
    to define('QT_SUPPORTED_WP_VERSION', '3.5');

  6. ceddy
    Member
    Posted 1 year ago #

    I get this error after fixing.

    Warning: Cannot modify header information - headers already sent by...

    EDIT: With the Code "RAW Paste Data" at the botton of the page it works!

  7. gorito
    Member
    Posted 1 year ago #

    Thanks TIIUNDER. I was albe to use your fix and my site is working well (again). I might add that I used the beta version 2.5.32 and added the code above (pastebin). You can find it here: http://www.qianqin.de/qtranslate/download/

  8. danitxu
    Member
    Posted 1 year ago #

    After doing the change in QT_SUPPORTED_WP_VERSION and qtranslate_javascript.php I have another problem: if I update a page with the visual editor the contents are not saved; if I do it with the Text editor, it's ok.

    Anyone more having this question? anyone has found the solution?

  9. danitxu
    Member
    Posted 1 year ago #

    I see the solution: edit in Visual editor and don't save from there, but change to the Text editor and save. (Not very functional, but...)

    Apart from this, I see the height of the editor is getting small every time.

  10. nozhko-i
    Member
    Posted 1 year ago #

    I have the some problem. Thank you, danitxu, for fast solution!
    Any idea how fix it?

  11. marblesandmore
    Member
    Posted 1 year ago #

    Hi everyone,
    First of all thanks for the change of qtranslate!

    However I experience the same thing with the editor box; it appears very small.
    On a different forum I found that if I change the adjusted part in qtranslate_javascript.php (line 26) from 300 to higher, it would change the size. But that doesn't work?

    Any ideas?

  12. Nikola Nikolov
    Member
    Posted 1 year ago #

    Hi everyone,

    The problem with the editor not saving the post contents seems to fix when you load the page with the Text editor selected(you can add this code - add_filter( 'wp_default_editor', create_function('', 'return "html";') ); to your functions.php) and then switch to the visual editor, everything seems to work. Note that with this hack after saving on the first page load you will see the visual editor again, but if you refresh the page you will see the Text editor by default again.

    I know that this is not the best solution, but the thing is that qTranslate uses a lot of hacks revolving around the tinyMCE editor, that it's pretty difficult for me to find what exactly breaks the fix.

    About the size of the editor - I'm not sure why my hack doesn't work everywhere :(

  13. basieux
    Member
    Posted 1 year ago #

    If I change the code of qtranslate_javascript.php then I receive this message:

    Fatal error: Call to undefined function qtrans_initjs() in D:\www\www314\wp\wp-content\plugins\qtranslate\qtranslate_core.php on line 59

    In qtranslate_core.php on line 59 I found:
    qtrans_initJS();

    Could you tell me what's wrong?

  14. Nikola Nikolov
    Member
    Posted 1 year ago #

    Well it seems that you're missing the definition of the qtrans_initJS function. This should be in qtranslate_javascript.php and you should have something like function qtrans_initJS() {... .

  15. basieux
    Member
    Posted 1 year ago #

    I don't....
    What and where do I have to put it in?

  16. Nikola Nikolov
    Member
    Posted 1 year ago #

    Just copy the content from here and paste it to the qtranslate_javascript.php file.

  17. basieux
    Member
    Posted 1 year ago #

    thx a lot! It worked!

    now, I only have the problem, that I can't change to the visual view. I can only work in the html view. Do you know any solution for this as well?

  18. Nikola Nikolov
    Member
    Posted 1 year ago #

    Hmmm... It's working for me with those hacks. I have no clue, sorry :(

  19. basieux
    Member
    Posted 1 year ago #

    ok, thx anyway!

  20. fecar
    Member
    Posted 1 year ago #

    Hello basieux,
    I have the same issue, I can only work in HTML mode, if I change to Visual mode the content gets messy.
    Do you found any solution?

  21. basieux
    Member
    Posted 1 year ago #

    I finally forgot to do this (which is already described above):

    Use this in qtranslate.php:
    change define('QT_SUPPORTED_WP_VERSION', '3.4.2');
    to define('QT_SUPPORTED_WP_VERSION', '3.5');

    I just changed from 3.4.2 to 3.5 -
    Afterwards it worked well, even now ;o)

  22. fecar
    Member
    Posted 1 year ago #

    Use this in qtranslate.php:
    change define('QT_SUPPORTED_WP_VERSION', '3.4.2');
    to define('QT_SUPPORTED_WP_VERSION', '3.5');

    Yes I made this same change too, but even then the problem continued.

    Any other clue?

  23. basieux
    Member
    Posted 1 year ago #

    nope...sorry :(

  24. felix007
    Member
    Posted 1 year ago #

    The combination of the 3 changes worked very well for my sites in the height of the edit-box and the 3.5 version. (waiting for the official update)

    1- change define('QT_SUPPORTED_WP_VERSION', '3.4.2');
    to define('QT_SUPPORTED_WP_VERSION', '3.5');
    or you can download the latest qtranslate version

    2- Use this code for qtranslate_javascript.php: here

    3 - add this code into your functions.php
    add_filter( 'wp_default_editor', create_function('', 'return "html";') );

    Thanks a lot nikolov.tmw for the guides

  25. fecar
    Member
    Posted 1 year ago #

    Thank you felix007, your changes combination works well for me too.
    Is a alternative for sure, while we need to wait an official qTranslate update, of course, if the author has not abandonned the project.

  26. isnet
    Member
    Posted 1 year ago #

    Hello Felix007,
    Thank you for your tips and forgive for asking a stupid question but where is:

    functions.php
    add_filter( 'wp_default_editor', create_function('', 'return "html";') );

    Where can i find this?
    Appreciate your comments
    Regards
    Isnet

  27. felix007
    Member
    Posted 1 year ago #

    Isnet, you can find a good explanation on how to find function.php in this link.

  28. isnet
    Member
    Posted 1 year ago #

    Felix007

    Felix, thank you for your excellent support on this!
    Thanks!
    regards
    isnet

  29. astral667
    Member
    Posted 1 year ago #

    Hello,

    Thanx !!!!!!
    Works great !

    Best Regards

  30. rangitoto
    Member
    Posted 1 year ago #

    Hello all!

    - I changed the version in qtranslate.php to 3.5
    - Then I changed the code in qtranslate_javascript.php with the RAW paste code at bottom from Pastebin

    qtranslate seems to work fine now but I get the following message in firefox (mac):
    "Content-Encoding-Fehler"
    (safari works fine)
    Any ideas?

    Thanks in advance
    rangi

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.