Posted on April 17, 2014 in WordPress Category
If you encountered any problem with qTranslate Plugin after the WordPress core update to version 3.9, and I bet a lot of you got this fatal error on line 455, read below to find the fix for this annoying problem.
The error should look like the text below and is triggered only inside articles after updating to WordPress 3.9.
Object of class WP_Post could not be converted to string in .../wp-content/plugins/qtranslate/qtranslate_core.php on line 455
As the errors says you need to open the php file qtranslate_core.php and search for line 455 where you should have:
return $before.strftime($format, $date).$after;
To fix this error, delete the variable $before and you are done. Your new code should look like this:
return strftime($format, $date).$after;
Hope this trick was useful.