Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author sewpafly

    (@sewpafly)

    Very strange. If you open your javascript console (chrome/firefox → ctrl+shift+j), are there any errors there?

    Thread Starter Mobi1986

    (@mobi1986)

    Plugin Author sewpafly

    (@sewpafly)

    Can you send me the output of a get_thumbnail_info() call? (If you are using chrome/firefox you should be able to open the web developer toolbar and view the network tab. When you open the PTE interface it should make a call to get_thumbnail_info(). I’d like to see what the response is.

    Thread Starter Mobi1986

    (@mobi1986)

    Can you send me a screenshot of what I’m looking for?

    Plugin Author sewpafly

    (@sewpafly)

    See: https://imgur.com/48gRRkZ

    The output should look something like this:

    {"thumbnail":{"width":"150","height":"150","crop":true,"display_name":"Thumbnail","current":{"file":"pin-up_motorcycle_fill-150x150-1429813458.jpg","width":150,"height":150,"path":"2015\/03\/pin-up_motorcycle_fill-150x150-1429813458.jpg","url":"http:\/\/wordpress\/wp-content\/uploads\/2015\/03\/pin-up_motorcycle_fill-150x150-1429813458.jpg"}},"large":{"width":"1024","height":"1024","crop":false,"display_name":"Large","current":{"file":"pin-up_motorcycle_fill-1024x633-1429813426.jpg","width":1024,"height":633,"path":"2015\/03\/pin-up_motorcycle_fill-1024x633-1429813426.jpg","url":"http:\/\/wordpress\/wp-content\/uploads\/2015\/03\/pin-up_motorcycle_fill-1024x633-1429813426.jpg"}},"post-thumbnail":{"width":825,"height":510,"crop":true,"current":{"file":"pin-up_motorcycle_fill-825x510-1429813426.jpg","width":825,"height":510,"path":"2015\/03\/pin-up_motorcycle_fill-825x510-1429813426.jpg","url":"http:\/\/wordpress\/wp-content\/uploads\/2015\/03\/pin-up_motorcycle_fill-825x510-1429813426.jpg"}}}

    Thread Starter Mobi1986

    (@mobi1986)

    {“thumbnail”:{“width”:”150″,”height”:”150″,”crop”:true,”display_name”:”Thumbnail”,”current”:{“file”:”Ben-Ezumah-150×150.jpg”,”width”:150,”height”:150,”mime-type”:”image\/jpeg”,”path”:”2015\/05\/Ben-Ezumah-150×150.jpg”,”url”:”http:\/\/www.aronewsonline.com\/wp-content\/uploads\/2015\/05\/Ben-Ezumah-150×150.jpg”}},”medium”:{“width”:”300″,”height”:”300″,”crop”:false,”display_name”:”Medium”,”current”:{“file”:”Ben-Ezumah-199×300.jpg”,”width”:199,”height”:300,”mime-type”:”image\/jpeg”,”path”:”2015\/05\/Ben-Ezumah-199×300.jpg”,”url”:”http:\/\/www.aronewsonline.com\/wp-content\/uploads\/2015\/05\/Ben-Ezumah-199×300.jpg”}},”large”:{“width”:”1024″,”height”:”1024″,”crop”:false,”display_name”:”Large”,”current”:false},”bkmain_slider”:{“width”:99999,”height”:550,”crop”:true,”display_name”:”bkmain_slider”,”current”:{“file”:”Ben-Ezumah-583×550.jpg”,”width”:583,”height”:550,”mime-type”:”image\/jpeg”,”path”:”2015\/05\/Ben-Ezumah-583×550.jpg”,”url”:”http:\/\/www.aronewsonline.com\/wp-content\/uploads\/2015\/05\/Ben-Ezumah-583×550.jpg”}},”bk684_452″:{“width”:684,”height”:452,”crop”:true,”display_name”:”bk684_452″,”current”:{“file”:”Ben-Ezumah-583×452.jpg”,”width”:583,”height”:452,”mime-type”:”image\/jpeg”,”path”:”2015\/05\/Ben-Ezumah-583×452.jpg”,”url”:”http:\/\/www.aronewsonline.com\/wp-content\/uploads\/2015\/05\/Ben-Ezumah-583×452.jpg”}},”bk456_226″:{“width”:456,”height”:226,”crop”:true,”display_name”:”bk456_226″,”current”:{“file”:”Ben-Ezumah-456×226.jpg”,”width”:456,”height”:226,”mime-type”:”image\/jpeg”,”path”:”2015\/05\/Ben-Ezumah-456×226.jpg”,”url”:”http:\/\/www.aronewsonline.com\/wp-content\/uploads\/2015\/05\/Ben-Ezumah-456×226.jpg”}},”bk485_300″:{“width”:485,”height”:300,”crop”:true,”display_name”:”bk485_300″,”current”:{“file”:”Ben-Ezumah-485×300.jpg”,”width”:485,”height”:300,”mime-type”:”image\/jpeg”,”path”:”2015\/05\/Ben-Ezumah-485×300.jpg”,”url”:”http:\/\/www.aronewsonline.com\/wp-content\/uploads\/2015\/05\/Ben-Ezumah-485×300.jpg”}},”bk400_300″:{“width”:400,”height”:300,”crop”:true,”display_name”:”bk400_300″,”current”:{“file”:”Ben-Ezumah-400×300.jpg”,”width”:400,”height”:300,”mime-type”:”image\/jpeg”,”path”:”2015\/05\/Ben-Ezumah-400×300.jpg”,”url”:”http:\/\/www.aronewsonline.com\/wp-content\/uploads\/2015\/05\/Ben-Ezumah-400×300.jpg”}},”bk230_140″:{“width”:230,”height”:140,”crop”:true,”display_name”:”bk230_140″,”current”:{“file”:”Ben-Ezumah-230×140.jpg”,”width”:230,”height”:140,”mime-type”:”image\/jpeg”,”path”:”2015\/05\/Ben-Ezumah-230×140.jpg”,”url”:”http:\/\/www.aronewsonline.com\/wp-content\/uploads\/2015\/05\/Ben-Ezumah-230×140.jpg”}},”bk360_145″:{“width”:360,”height”:145,”crop”:true,”display_name”:”bk360_145″,”current”:{“file”:”Ben-Ezumah-360×145.jpg”,”width”:360,”height”:145,”mime-type”:”image\/jpeg”,”path”:”2015\/05\/Ben-Ezumah-360×145.jpg”,”url”:”http:\/\/www.aronewsonline.com\/wp-content\/uploads\/2015\/05\/Ben-Ezumah-360×145.jpg”}},”bk1000_600″:{“width”:1000,”height”:600,”crop”:true,”display_name”:”bk1000_600″,”current”:{“file”:”Ben-Ezumah-583×600.jpg”,”width”:583,”height”:600,”mime-type”:”image\/jpeg”,”path”:”2015\/05\/Ben-Ezumah-583×600.jpg”,”url”:”http:\/\/www.aronewsonline.com\/wp-content\/uploads\/2015\/05\/Ben-Ezumah-583×600.jpg”}}}<script type=”text/javascript”>(function (d, w) {var x = d.getElementsByTagName(‘SCRIPT’)[0];var f = function () {var s = d.createElement(‘SCRIPT’);s.type = ‘text/javascript’;s.async = true;s.src = “//np.lexity.com/embed/YW/6ea883d5227fa387ffeb5c392b9f63a7?id=ed8ab7014799”;x.parentNode.insertBefore(s, x);};w.attachEvent ? w.attachEvent(‘onload’,f) :w.addEventListener(‘load’,f,false);}(document, window));</script>

    Plugin Author sewpafly

    (@sewpafly)

    Found your problem: something is adding this javascript to the bottom. Find what is doing this and stop it and you will work again.

    <script type="text/javascript">(function (d, w) {var x = d.getElementsByTagName('SCRIPT')[0];var f = function () {var s = d.createElement('SCRIPT');s.type = 'text/javascript';s.async = true;s.src = "//np.lexity.com/embed/YW/6ea883d5227fa387ffeb5c392b9f63a7?id=ed8ab7014799";x.parentNode.insertBefore(s, x);};w.attachEvent ? w.attachEvent('onload',f) :w.addEventListener('load',f,false);}(document, window));</script>

    Thread Starter Mobi1986

    (@mobi1986)

    Really? That’s it. Ok. I’ll have to figure out what’s causing the interference. Thanks.

    Thread Starter Mobi1986

    (@mobi1986)

    So it seems as though Yahoo web hosting has a plugin that cannot be turned off, which is the root of the issue. Do you have any idea about whether I could write a javascript that could nullify or remove the object created in that script?

    Plugin Author sewpafly

    (@sewpafly)

    I think it would probably require a jsonp handler to get around this, which wouldn’t be prohibitive to do, but would take some time…

    Is there some documentation on this yahoo “functionality”, it seems really strange that there isn’t a way to disable this via headers or something… Maybe if we set output headers correctly it would work.

    case "get-thumbnail-info":
    		$id = (int) $_GET['id'];
    		// Add this (line 289)
    		header('Content-type: application/json');
    		if ( pte_check_id( $id ) )
    			print( json_encode( pte_get_all_alternate_size_information( $id ) ) );
    		break;
    Thread Starter Mobi1986

    (@mobi1986)

    Thanks. Where exactly would I put that snippet of code?

    Plugin Author sewpafly

    (@sewpafly)

    oh sorry, it’s in post-thumbnail-editor.php

    Thread Starter Mobi1986

    (@mobi1986)

    WOW! It worked! Thanks alot! You should include that in your next update. It will probably fix other errors in the future.

    Plugin Author sewpafly

    (@sewpafly)

    Thanks for beta testing. I will add to the next version.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Thumbnails exist but PTE cannot find them (Screenshots attached)’ is closed to new replies.