• Resolved Klaus Moll

    (@klaus-moll)


    Hello qTranslate team,
    I want to create a multilingual site. When installing qtranslate I get the following error:

    Fatal error: Call to undefined function wp_normalize_path() in /mnt/webj/a2/60/52698860/htdocs/WordPress_01/wp-content/plugins/qtranslate-x/qtranslate_utils.php on line 72

    I want qtranslate test and use the theme Twenty Eleven.
    Where is the problem.

    greetings
    Klaus

    https://ww.wp.xz.cn/plugins/qtranslate-x/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Klaus Moll

    (@klaus-moll)

    Who can read is a clear advantage. I have changed my WordPress to version 4.5.2. Now the installation has worked.

    Greetings
    Klaus

    Plugin Author John Clause

    (@johnclause)

    Thanks for the report, Klaus. Description page shows:

    Requires: 3.9 or higher

    I am not actually too sure what the lowest version would now work. Definitely need at least 3.9, but maybe it is even higher. We do not test it for older versions. It would be good if someone tested it and let us know.
    The latest WP should always work.

    In case you need to stay with lower version, you may always copy the code of missing functions from newer distribution and include it in your functions.php or so, like this:

    // for retro compatibility with WP < 3.5
    if( !function_exists('wp_normalize_path') ){
        function wp_normalize_path( $path ) {
            $path = str_replace( '\\', '/', $path );
            $path = preg_replace( '|/+|','/', $path );
            return $path;
        }
    }

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

The topic ‘Fatal error’ is closed to new replies.