• I have used this plugin on my server and works greats.

    When using this plugin on windows localhost server, it gets stuck on the 2nd part and freezes at “loading…”

    This is what firebug sends me:

    {“attachID”:”3″,”warning_smallSrcImg”:”The source image is smaller than thumbnail’s preset width or height.\n\nTherefore, the thumbnail generated from this image will contain enlarged pixels.\n\nNo minimum crop size restrain will be set.”,”abspath”:”C:\\wamp\\www\\wordpress\/wp-content\/uploads\/2009\/11\/IMG_0453.jpg”,”0″:”http:\/\/localhost\/wordpress\/wp-content\/uploads\/2009\/11\/IMG_0453.jpg”,”1″:2112,”2″:2816,”3″:false,”scaleRatio”:0.21306818181818,”resizedImgUrl”:”http:\/\/localhost\/wordpress\/C:\\wamp\\www\\wordpress\\wp-content\\plugins\\wp-post-thumbnail\\cache\/IMG_0453-450×600.jpg”}

    My Online Server reports:

    {“attachID”:”55″,”warning_smallSrcImg”:”The source image is smaller than thumbnail’s preset width or height.\n\nTherefore, the thumbnail generated from this image will contain enlarged pixels.\n\nNo minimum crop size restrain will be set.”,”abspath”:”\/home\/ayown\/public_html\/wp-content\/uploads\/2009\/11\/IMG_0453.jpg”,”0″:”http:\/\/*******.com\/wp-content\/uploads\/2009\/11\/IMG_0453.jpg”,”1″:2112,”2″:2816,”3″:false,”scaleRatio”:0.213068181818,”resizedImgUrl”:”http:\/\/*******.com\/wp-content\/plugins\/wp-post-thumbnail\/cache\/IMG_0453-450×600.jpg”}

    Plugin link:

    https://www.seoadsensethemes.com/wordpress-wp-post-thumbnail-plugin/

    It seem as though my localhost is not outputting the right directory paths.

    Any help is much appreciated. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Did you figure out the solution to this problem? I’m having the same thing running it on my localhost

    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 ), ‘/’ );
    }

    Alain

    (@alainotjens)

    thank you giovanni for sharing your solution!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WP Post Thumbnail 0.2 Beta 2 Problem’ is closed to new replies.