wordpress 3.9 and qtranslate issue

by / Friday, 02 May 2014 / Published in Tech

This morning I upgraded some wordpress blogs, where I am using the qtranslate plugin.
After upgrading to WordPress 3.9 the home page was broken.

with error:

Object of class WP_Post could not be converted to string in ../wp-content/plugins/qtranslate/qtranslate_core.php on line 455

To resolve this issue you need to edit a file:

wp-content/plugins/qtranslate/qtranslate_core.php

In this file find function qtrans_strftime

and modify the line

return $before.($format, $date).$after;
to:
return $before->post_content.strftime($format, $date).$after;

This will solve your issue.

TOP
Chat With Us!