Viewing 15 replies - 1 through 15 (of 24 total)
  • @amaraz: I started replacing qtranslate_javascript.php with the given code and now my page is completely down! It shows this error message:

    Fatal error: Cannot redeclare qtrans_header() (previously declared in /home/.sites/698/site8704257/web/wp-content/plugins/qtranslate/qtranslate_javascript.php:23) in /home/.sites/698/site8704257/web/wp-content/plugins/qtranslate/qtranslate_hooks.php on line 45

    Please can anyone help me, how can I fix this? Since the WordPress 3.9 update my visual editor is not working and now it′s an even bigger mess! I can′t even get to my website anymore.

    Thread Starter aramaz

    (@aramaz)

    If it’s not working download the original qTranslate files again and upload them through FTP. If you need help with this let me know!

    Best course of action is to replace all the code given on the github gist page on a local machine and then upload all three files at once. Another option is to disable qTranslate and then edit individual files.

    Sorry, I should have been more clear with this!

    Thanks for your quick response!

    Ok, so I downloaded the original qTranslate files again. I logged into my FTP. Where exactly do I upload it now?

    Thread Starter aramaz

    (@aramaz)

    You have downloaded a zip file with a “qtranslate” folder. Extract this folder and upload it to the “plugins” directory in the “wp-content” directory.

    You should now have your site functionality back, but the visual editor bug will still be present.

    Now, edit the three files from the github gist page on your local machine and upload them to the online “qtranslate” folder overwriting the old files.

    If something goes wrong, extract the original qtranslate folder from the .zip file you downloaded, re-upload again and we’ll take it from there.

    Thread Starter aramaz

    (@aramaz)

    Something I learned the hard way: never edit anything through the WordPress editor. Never edit anything on the live server. Always edit locally and then upload.

    Ok, so my website is now online again, thanks so much!! Sorry, if that is a stupid question, but I am totally new to this: How exactly do I edit locally? If I don′t edit through the WordPress editor and not on the FTP server. Where exactly do I edit it?

    ok, so this is what I did so far: I downloaded the three files qtranslate_hooks.php, qtranslate_javascript.php and qtranslate_wphacks.php, edited them locally and after that uploaded them again into my qtranslate-folder on FTP.
    unfortunately this made my website just like in the beginning completely unaccessable with the same original fatal error-message like mentioned above.

    So just like you said, I extracted the original qtranslate folder from the .zip file I downloaded and re-uploaded again. What can I do now?

    Thread Starter aramaz

    (@aramaz)

    You edit locally through an editor like Notepad++ or an IDE like NetBeans.

    I don’t think you’ve copied correctly the code from the Github page because your error states that you have declared a function called qtrans_header() in a file called qtranslate_javascript.php on line 23, but if you check the code on the github page, that function is only declared in the file qtranslate_hooks.php. So my guess is you haven’t copied correctly the code from the Github page.

    Try this. Go back to the Github link https://gist.github.com/warenhaus/10990386 then click on Download Gist to the left and you’ll get a .tar.gz file. Extract the three files in it and upload them to the qtranslate folder. Did this fix it?

    YES, my visual editor is now fixed! Thanks a million! BUT my website is now still not showing correctly and this error message comes up: CATCHABLE FATAL ERROR: OBJECT OF CLASS WP_POST COULD NOT BE CONVERTED TO STRING IN /HOME/.SITES/698/SITE8704257/WEB/WP-CONTENT/PLUGINS/QTRANSLATE/QTRANSLATE_CORE.PHP ON LINE 455

    Do you know what this means?

    I found a solution here: https://alexander.kirk.at/2014/04/17/fix-qtranslate-with-wordpress-3-9/

    But I′m having trouble with that as well… I downloaded the gist, extracted the file in it and uploaded it to the gtranslate folder. I think, this is not the correct way to do it, since nothing changed on my website and the error message is still there. Do you know what I′m doing wrong?

    ok, I fixed this error: CATCHABLE FATAL ERROR: OBJECT OF CLASS WP_POST COULD NOT BE CONVERTED TO STRING IN /HOME/.SITES/698/SITE8704257/WEB/WP-CONTENT/PLUGINS/QTRANSLATE/QTRANSLATE_CORE.PHP ON LINE 455 with this solution: https://stackoverflow.com/questions/23137526/wordpress-3-9-and-qtranslate-issue

    My website works fine now again! It seems to have been the right solution! Thank you a million for helping me solve my visual editor problem and guiding me through the steps, you definitely safed my website! ??

    Thread Starter aramaz

    (@aramaz)

    Hey no problem, glad we sorted it out ??

    After these problems, I’ll probably move all sites to mqTranslate which is supposed to be similar to qTranslate but without annoying troubles like this one and the one where we have to manually edit the WP comatible version number so qTranslate doesn’t turn itself off after a WP update. So that’s something to think about!

    Hello,

    after swapping the previously mentioned files in the qTranslate with the ones hosted on Gist, there seems to be no improvement. I’m running WP 3.9 with qTranslate 2.5.39 and still have the same ugly message:

    “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.”

    I’m running an instance of WordPress on my localhost (the site is currently being developed), so I’ve disabled the qTranslate Plug-in via the WordPress backend (admin panel), swapped the files in wp-content/plugins/qtranslate, reenabled the plug-in, but the message still seems to bug my mind. What might gone wrong? Please help, the working state of this plugin is critically essential for my project!

    Thanks!

    Since I had to hurry with the solution, I’ve migrated all the settings of qTranslate to mqTranslate, it worked like a charm! If anyone has similar problems, consider visiting https://www.ads-software.com/support/topic/migration-from-qtranslate-to-mqtranslate-description?replies=10 and migrating to mqTranslate. ??

    Thread Starter aramaz

    (@aramaz)

    Yep, that’s what I also plan on doing.

    The error you mentioned above is related to the supported WP version fix in qTranslate; it needs to be edited in qTranslate after each WP update.

Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘Here's a fix I found for the bug with Visual editor in WordPress 3.9’ is closed to new replies.