Forum Replies Created

Viewing 1 replies (of 1 total)
  • i had the same problem. the cause it’s the costant ABSPATH,
    defined in wp_config.php
    define(‘ABSPATH’, dirname(__FILE__) . ‘/’);

    in windows this costant would be
    define(‘ABSPATH’, dirname(__FILE__) . ‘\\’);

    you have to edit your file wppt.php, at the line 276

    //ORIGINAL CODE
    function path_to_url( $path ) {
    return get_option(‘siteurl’) . ‘/’ . trim( str_replace( $aux_abs, ”, $aux_path ), ‘/’ );
    }

    //MODIFIED CODE
    function path_to_url( $path ) {
    $aux_abs=str_replace(“\\”,”/”,ABSPATH);
    $aux_path=str_replace(“\\”,”/”,$path);
    return get_option(‘siteurl’) . ‘/’ . trim( str_replace( $aux_abs, ”, $aux_path ), ‘/’ );
    }

Viewing 1 replies (of 1 total)