Support » Plugin: Transposh WordPress Translation » Notice: Undefined index: HTTP_ACCEPT_LANGUAGE in /path/to/wordpress/wp-content/p

  • Debug throws the following notice “Notice: Undefined index: HTTP_ACCEPT_LANGUAGE in /var/www/aamjanata/wp-content/plugins/transposh-translation-filter-for-wordpress/core/utils.php”

    to fix, change

    if ($http_accept_language == "auto")
                    $http_accept_language = $_SERVER['HTTP_ACCEPT_LANGUAGE'];

    to

    if (($http_accept_language == "auto") && isset($_SERVER['HTTP_ACCEPT_LANGUAGE']))
                    $http_accept_language = $_SERVER['HTTP_ACCEPT_LANGUAGE'];

    http://wordpress.org/plugins/transposh-translation-filter-for-wordpress/

  • The topic ‘Notice: Undefined index: HTTP_ACCEPT_LANGUAGE in /path/to/wordpress/wp-content/p’ is closed to new replies.