Title: WP Post Formats doesnt work
Last modified: August 19, 2016

---

# WP Post Formats doesnt work

 *  Resolved [jrkmrzk](https://wordpress.org/support/users/jrkmrzk/)
 * (@jrkmrzk)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/wp-post-formats-doesnt-work/)
 * here s a list of errors i got:
 * Notice: Undefined index: language in /Applications/MAMP/htdocs/wp-content/plugins/
   qtranslate/qtranslate_hooks.php on line 47
 * Notice: Undefined index: in /Applications/MAMP/htdocs/wp-content/plugins/qtranslate/
   qtranslate_hooks.php on line 47
 * Notice: Undefined index: language in /Applications/MAMP/htdocs/wp-content/plugins/
   qtranslate/qtranslate_hooks.php on line 48
 * Notice: Undefined index: in /Applications/MAMP/htdocs/wp-content/plugins/qtranslate/
   qtranslate_hooks.php on line 48
 * Notice: Undefined index: language in /Applications/MAMP/htdocs/wp-content/plugins/
   qtranslate/qtranslate_hooks.php on line 49
 * Notice: Undefined index: in /Applications/MAMP/htdocs/wp-content/plugins/qtranslate/
   qtranslate_hooks.php on line 49
 * Notice: Undefined index: language in /Applications/MAMP/htdocs/wp-content/plugins/
   qtranslate/qtranslate_hooks.php on line 50
 * Notice: Undefined index: in /Applications/MAMP/htdocs/wp-content/plugins/qtranslate/
   qtranslate_hooks.php on line 50
 * Notice: Undefined index: language in /Applications/MAMP/htdocs/wp-content/plugins/
   qtranslate/qtranslate_hooks.php on line 51
 * Notice: Undefined index: language in /Applications/MAMP/htdocs/wp-content/plugins/
   qtranslate/qtranslate_hooks.php on line 57
 * Notice: Undefined index: in /Applications/MAMP/htdocs/wp-content/plugins/qtranslate/
   qtranslate_hooks.php on line 57
 * Warning: Cannot modify header information – headers already sent by (output started
   at /Applications/MAMP/htdocs/wp-content/plugins/qtranslate/qtranslate_hooks.php:
   47) in /Applications/MAMP/htdocs/wp-content/plugins/qtranslate/qtranslate_core.
   php on line 71

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Gary Bairead](https://wordpress.org/support/users/gary-barrett/)
 * (@gary-barrett)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/wp-post-formats-doesnt-work/#post-1920306)
 * All of those errors are coming from the qtranslate plugin.
 *  Plugin Author [Ben Casey](https://wordpress.org/support/users/casben79/)
 * (@casben79)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/wp-post-formats-doesnt-work/#post-1920352)
 * [@jrkmrzk](https://wordpress.org/support/users/jrkmrzk/)
 * Did you get this problem solved?
 * As Gary mentioned, the errors are actually coming from the qtranslate plugin 
   and it would seem that you are running wordpress in debug mode.
 * If you find the following line in wp-config:
    `define( 'WP_DEBUG' , true );`
 * and change it to:
    `define( 'WP_DEBUG' , false );`
 * The above errors should not be displayed.
 * Cheers
    Ben
 *  Thread Starter [jrkmrzk](https://wordpress.org/support/users/jrkmrzk/)
 * (@jrkmrzk)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/wp-post-formats-doesnt-work/#post-1920353)
 * hi, thanks for an answer. The problem is already solved. it was, as usually, 
   just a problem of letters :), and the problem of qTranlate settings. Instead 
   of “cs” in Settings>Languages>Language Code i had “Cs”.
 * And of course, i ve the WP_DEBUG on, to turn it off doesnt solve anything:), 
   sometimes i need to touch the PHP and i wanna see if it causes any problems.
 * Cheers
    Jirka
 *  Plugin Author [Ben Casey](https://wordpress.org/support/users/casben79/)
 * (@casben79)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/wp-post-formats-doesnt-work/#post-1920354)
 * Undefined index is basically php saying this:
 * I’ve been told to look for something, but it doesn’t exist.
 * I actually downloaded qtranslate to have look at this:
 * Line 47 of qtranslate_hooks.php:
 * `$locale[] = $q_config['locale'][$q_config['language']].".utf8";`
 * Would avoid undefined index to be written like this:
 * `$locale[] = isset( $q_config['locale'][$q_config['language']].".utf8" ) ? $q_config['
   locale'][$q_config['language']].".utf8" : false ;`
 * which says: if ( `$q_config['locale'][$q_config['language']].".utf8"` ) exists,
   use that otherwise $locale[] is false
 * This can add a lot of extra code sometimes, but means avoiding the above mess
   of PHP errors.
 * The final one: `Warning: Cannot modify header information` is sent because wordpress
   is trying to output some content after the program has already output the Notice
   Errors. No Notices in this case would mean no Warning.
 * I hope this helps.
 * Cheers
    Ben
 *  [Gary Bairead](https://wordpress.org/support/users/gary-barrett/)
 * (@gary-barrett)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/wp-post-formats-doesnt-work/#post-1920355)
 * It’s mentioned in the 3.1 sticky that qtranslate isn’t compatible.
 * [http://wordpress.org/support/topic/troubleshooting-wordpress-31-master-list](http://wordpress.org/support/topic/troubleshooting-wordpress-31-master-list)

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘WP Post Formats doesnt work’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-post-formats.svg)
 * [WP Post Formats](https://wordpress.org/plugins/wp-post-formats/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-post-formats/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-post-formats/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-post-formats/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-post-formats/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-post-formats/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Gary Bairead](https://wordpress.org/support/users/gary-barrett/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/wp-post-formats-doesnt-work/#post-1920355)
 * Status: resolved