• hi!
    is there someone already using a WP 3.9 beta together with qTranslate? It worked for me with a 3.9 alpha (changing the “supported version” in qtranslate, of course), but now the blog in my testing environment doesn’t seem to work anymore since a 3.9 beta installed itself. I get an error like:
    Object of class WP_Post could not be converted to string in .../blog/wp-content/plugins/qtranslate/qtranslate_core.php on lin e485

    Strangely, the line referenced is part of the date/time functions (qtrans_strftime):
    return $before.strftime($format, $date).$after;

    https://wordpress.org/plugins/qtranslate/

Viewing 15 replies - 31 through 45 (of 65 total)
  • Here is a better fix for qTranslate for WordPress 3.9 with a little explanation. Basically the plugin provides a second parameter that is interpreted wrong.

    benouz

    (@benouz)

    Thanks for the fix akirk it works perfectly fine.

    And yes it seems that the author of the mqtranslate fork works faster to follow the wordpress updates. (I use mqtranslate on two others wp sites and the plugin is updated the day of the wp patch, in general).

    vasch

    (@vasch)

    The problem I have is not on line 455 but on line 71??
    This line contains
    setcookie(‘qtrans_cookie_test’, ‘qTranslate Cookie Test’, 0, $q_config[‘url_info’][‘home’], $q_config[‘url_info’][‘host’]);

    error:Warning: Cannot modify header information – headers already sent by (output started at /customers/b/8/f/aquaponicsshop.eu/httpd.www/wp-content/plugins/qtranslate/qtranslate.php:1) in /customers/b/8/f/aquaponicsshop.eu/httpd.www/wp-content/plugins/qtranslate/qtranslate_core.php on line 71

    how should I implement the solution from ikirk? (I’m not so good with code :-p )

    vasch

    (@vasch)

    oh, arctablet, mqtranslate makes it worse it seems

    @vasch: check if you have some whitespace in line 1 of qtranslate.php, probably it says ” <?php” instead of just “<?php”. Delete the whitespace ahead of the <

    Thread Starter whaus

    (@whaus)

    thanks akirk. and thank you arctablet for introducing me to mqtranslate.

    I checked what chsxf changed in the last update that makes it compatible with the new visual editor and incorporated the changes in the current qtranslate version.

    here’s the result:
    https://gist.github.com/warenhaus/10990386/revisions

    in total, you need to change 5 files:
    the 3 in my gist revision.
    qtranslate.php for the QT_SUPPORTED_WP_VERSION number.
    and qtranslate_core.php with akirk’s fix.

    X-Raym

    (@x-raym)

    Thank you for the tips !

    it’s a shame that the developper himself have not yet a quick fix for it =/

    i love this plugin but it’s not the role of every users to solve that kind of issue in all their website.

    vasch

    (@vasch)

    I agree with X-Raym.
    As i am not very good with coding, implementing the mods keeps giving errors. Any chance that the modified files can be downloaded somewhere, so the originals can just be overwritten? or should i wait for qtranslate to launch an update?
    I was planning to launch my new webshop this weekend… bey bey plans :-p

    X-Raym

    (@x-raym)

    Let me share my file with you :

    Here it is πŸ™‚

    I don’t know if it can solve your problem, but it solves mine.
    No visual editor but i don’t care for the moment.

    leslierad

    (@leslierad)

    I just changed over to mqtranslate after years using qtranslate.

    I have noticed over the years Qian has been really busy at work no time for qtranslate, I saw the stats were 1,1 million downloads for his plugin, pity his time is limited hopefully the updated mqtranslate will remain up to date.

    Just for those who want to try you can import qtranslate settings into mqtranslate to try, but you can only have one of the plugins active at a time.

    My blog worked pretty much right away, only a couple changes needed with flag images and the bloginfo(home); calls.

    At least the visual editor now works and regular updates are made.

    X-Raym

    (@x-raym)

    I didn’t know about mqtranslate !!

    Well, qtranslate is awesome, but I’m a bit disturbed to read “qtranslate hasnt been tested with you wordpress version” at every update.

    WordPress evolves. We need up to date and compatible plugin.

    But I thank qtranslate and his developper for the good service they gave so far πŸ™‚

    leslierad

    (@leslierad)

    @vasch

    Looks like you had both mqtranslate and qtranslate active at the same time, disable qtranslate then enable mqtranslate go to the settings page and import your qtranslate settings to mqtranslate.

    yoururl.com/wp-admin/options-general.php?page=mqtranslate#advanced_settings

    Under mqtranslate Settings:
    Open: Advanced Settings
    Find: Settings Migration
    Select: Import settings from qTranslate

    Save options, done

    vasch

    (@vasch)

    Thanks leslierad!
    I don’t know why both where running, as qtranslate was disabled on the dashboadr. I enabled it, disabled again and after installing mqtranslate, it worked fine! I hope the ‘qtranslate support for WooCommerce’ will still work, i’ll test it out. i also have the ‘qtranslate slug’ plugin installed.
    Both seem to work fine for the moment, but i need some more testing.

    if ever you guys pass in Belgium… we have great beer! πŸ™‚

    vasch

    (@vasch)

    OK, qtranslate slug not working:
    Qtranslate Slug:
    This plugin requires at least WordPress 3.3 and Qtranslate(2.5.8 or newer)

    vasch

    (@vasch)

    Corrected the problem:
    in qtranslate-slug.php
    replaced

    return ( version_compare($wp_version, “3.3”, “<” ) || !is_plugin_active(‘qtranslate/qtranslate.php’) );
    }
    by

    return ( version_compare($wp_version, “3.3”, “<” ) || !is_plugin_active(‘mqtranslate/mqtranslate.php’) );

    works fine now πŸ™‚

Viewing 15 replies - 31 through 45 (of 65 total)
  • The topic ‘qTranslate and WordPress 3.9.’ is closed to new replies.