Title: Page 85 – Alex Kirk

---

 * 
   ## 󠀁[Fix qTranslate with WordPress 3.9](https://alex.kirk.at/2014/04/17/fix-qtranslate-with-wordpress-3-9/)󠁿
   
 * April 17, 2014
 * When updating a blog of mine to WordPress 3.9 the page wouldn’t load anymore 
   because of [qTranslate](http://www.qianqin.de/qtranslate/) not able to cope with
   the update. In the error log it says:
 * `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
 * The error is caused by this change: [get_the_date() to accept optional $post argument](https://core.trac.wordpress.org/ticket/13771)
 * There is [a proposed quick fix](http://zioproto.ninux.org/wordpress/2014/04/17/dirty-and-quick-fix-for-qtranslate-plugin-on-wordpress-3-9/)
   by [Saverio Proto](http://zioproto.ninux.org/), but it doesn’t take the problem
   at its root:
 * qTranslate registers the function qtrans_dateFromPostForCurrentLanguage($old_date,
   $format ='', $before = '', $after = '') for the hook get_the_date but it actually
   [only accepts one parameter](http://codex.wordpress.org/Function_Reference/get_the_date).
   With the new update it accepts a second parameter $post, which now wrongly fills
   the variable $before that is in the process being converted to a string.
 * So [the solution](https://gist.githubusercontent.com/akirk/10979790/raw/3b2b37b399a82dc82723fb6b8e703c1d981b26f9/qtranslate_core.php.diff)
   simply is to delete the two parameters that were assigned the wrong meaning and
   have defaults anyway.
 * [Web](https://alex.kirk.at/category/web/)
 * 
   ## 󠀁[Zapier would be such a…](https://alex.kirk.at/2014/03/04/zapier-would-be-such-a/)󠁿
   
 * March 4, 2014
 * Zapier would be such a cool service, if only the website weren't sooooo slow
 * [Twitter](https://alex.kirk.at/category/twitter/)

 [Previous Page](https://alex.kirk.at/page/84/?output_format=md&term_id=44046) [Next Page](https://alex.kirk.at/page/86/?output_format=md&term_id=44046)