I have found a bug after the upgrading the WordPress to the last version of the software 3.9.
I get this error:
Thu Apr 17 17:21:52 2014] [warn] mod_fcgid: stderr: PHP Catchable
fatal error: Object of class WP_Post could not be converted to string
in /wp-content/plugins/qtranslate/qtranslate_core.php on line 455,
referer: http://www.mywebsite.com/
Why do this happen?
Solved!!
You have to remove the “
$before
.” inqtranslate_core.php
file from the last line, qtranslate works here withWP 3.9
!so the result must be:
We will wait the
qTranslate
upgrade!thanks
I wanted to add my 2 cents after investigating this issue myself. I don’t like to ever hack the core of WP or the plugins. When I got the error indicated by the author of this thread, I fixed it by going into
Settings -> Languages
and clicking theAdvanced Settings
tab.Under the
Date / Time Conversion
section it was set to the first optionUse emulated date function.
I changed it toUse strftime instead of date.
and voila, no more error and no hacking the core!Report back if this worked for you or if you had any issues.
WordPress: v3.9.1
qTranslate: v2.5.39
For me (WP 4.1.1, qTranslate 2.5.39) the following helped:
Voila!
Unfortunately all above didn’t work for me, but I found another solution, which helped me solve that issue:
in file qtranslate_core.php you must change this line
to
and this line
to