{"id":5654303,"date":"2015-01-09T19:35:18","date_gmt":"2015-01-09T19:35:18","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/undefined-function-qtrans_getlanguage\/"},"modified":"2016-08-22T15:14:57","modified_gmt":"2016-08-22T15:14:57","slug":"undefined-function-qtrans_getlanguage","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/undefined-function-qtrans_getlanguage\/","title":{"rendered":"undefined function qtrans_getLanguage()"},"content":{"rendered":"<p>After updating to 2.8, we get the following error, and front end doesn&#8217;t load.<\/p>\n<p>Fatal error: Call to undefined function qtrans_getLanguage() in \/<em>path<\/em>\/public_html\/wp-content\/themes\/<em>theme<\/em>\/header.php on line 37<\/p>\n<p>Here&#8217;s the code from that section of header.php<\/p>\n<pre><code>&lt;?php\n    global $post;\n    $slug = get_post( $post )-&gt;post_name;\n    if(is_front_page()) {\n        $slug = &quot;home&quot;;\n    }\n\n    $lang = qtrans_getLanguage();\n?&gt;<\/code><\/pre>\n<p>We rolled back to 2.7.8, and it works fine. <a href=\"https:\/\/wordpress.org\/plugins\/qtranslate-x\/changelog\/\">The changelog<\/a> makes it look like you started on a wrapper for this function in 2.7.9, but didn&#8217;t finish. Should we stay on 2.7.8 until further notice?<\/p>\n","protected":false},"template":"","class_list":["post-5654303","topic","type-topic","status-closed","hentry","topic-tag-function","topic-tag-undefined"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5654303","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5654303\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5654303"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}