WordPress.org

Ready to get started?Download WordPress

Forums

Post Thumbnail Editor
Troubleshooting - error message when resize (17 posts)

  1. addicttv
    Member
    Posted 2 years ago #

    Hi there,

    I have installed the pluggin as normal and now when i try to use it i get an error message, it seems that i'm doing everythng right but i get this when i generate the resizing.
    Please look below.

    Could someone help me on this please, i'll really appreciate, thanx.

    20111028 22:52:04 - [string] ===== STARTUP PHP MESSAGES =====
    20111028 22:52:04 - [string] ===== SERVER LOG =====
    20111028 22:52:04 - [string] [DEBUGGER] - PARAMETERS: Array
    (
    [action] => pte_ajax
    [pte-action] => launch
    [id] => 267
    [TB_iframe] => true
    [height] => 550
    [width] => 750
    )

    20111028 22:52:04 - [string] [DEBUGGER] - USER-AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:7.0.1) Gecko/20100101 Firefox/7.0.1
    20111028 22:52:04 - [string] [DEBUGGER] - WORDPRESS: 3.2.1
    20111028 22:52:04 - [string] [DEBUGGER] - SIZER: 0.46082949
    20111028 22:52:04 - [string] [DEBUGGER] - META: Array
    (
    [width] => 868
    [height] => 287
    [hwstring_small] => height='42' width='128'
    [file] => 2011/10/tatooisme.png
    [sizes] => Array
    (
    [thumbnail] => Array
    (
    [file] => tatooisme-150x150.png
    [width] => 150
    [height] => 150
    )

    [medium] => Array
    (
    [file] => tatooisme-300x99.png
    [width] => 300
    [height] => 99
    )

    )

    [image_meta] => Array
    (
    [aperture] => 0
    [credit] =>
    [camera] =>
    [caption] =>
    [created_timestamp] => 0
    [copyright] =>
    [focal_length] => 0
    [iso] => 0
    [shutter_speed] => 0
    [title] =>
    )

    )

    20111028 22:52:06 - [string] ===== REFLOW =====
    20111028 22:52:06 - [string] ===== FIXING THICKBOX =====
    20111028 22:52:06 - [string] THICKBOX: 670 x 625
    20111028 22:52:06 - [string] WINDOW WIDTH: 780
    20111028 22:52:06 - [string] ===== REFLOW =====
    20111028 22:52:06 - [string] ===== FIXING THICKBOX =====
    20111028 22:52:06 - [string] WINDOW WIDTH: 780
    20111028 22:52:08 - [string] ===== SETTING ASPECTRATIO: 1:1 =====
    20111028 22:52:15 - [string] ===== RESIZE-IMAGES =====
    20111028 22:52:15 - [object] {"id":"267","action":"pte_ajax","pte-action":"resize-images","pte-sizes[]":["thumbnail"],"x":123,"y":0,"w":286,"h":286}
    20111028 22:52:17 - [string] ===== RESIZE-IMAGES SUCCESS =====
    20111028 22:52:17 - [object] {"thumbnails":{"thumbnail":{"url":"http://www.addict-tv.tv/wp-content/uploads/ptetmp/267/tatooisme-150x150.png","file":"tatooisme-150x150.png"}},"pte-nonce":"31754591e5","pte-delete-nonce":"16c4fb52e0","error":["[AVERTISSEMENT] - Buffered output:
    \n<b>Warning</b>: imagetruecolortopalette(): supplied argument is not a valid Image resource in <b>/home/addict/public_html/www.addict-tv.tv/wp-content/plugins/post-thumbnail-editor/php/functions.php</b> on line <b>382</b>
    \n"],"log":["[DEBUGGER] - PARAMETERS: Array\n(\n [id] => 267\n [action] => pte_ajax\n [pte-action] => resize-images\n [pte-sizes] => Array\n (\n [0] => thumbnail\n )\n\n [x] => 123\n [y] => 0\n [w] => 286\n [h] => 286\n)\n","[DEBUGGER] - BASE FILE DIMENSIONS/INFO: Array\n(\n [0] => 868\n [1] => 287\n [2] => 3\n [3] => width=\"868\" height=\"287\"\n [bits] => 8\n [mime] => image/png\n)\n","[DEBUGGER] - Array\n(\n [type] => 3\n [dst_x] => 0\n [dst_y] => 0\n [dst_w] => 150\n [dst_h] => 150\n [src_x] => 123\n [src_y] => 0\n [src_w] => 286\n [src_h] => 286\n)\n","[AVERTISSEMENT] - Buffered output:
    \n<b>Warning</b>: imagetruecolortopalette(): supplied argument is not a valid Image resource in <b>/home/addict/public_html/www.addict-tv.tv/wp-content/plugins/post-thumbnail-editor/php/functions.php</b> on line <b>382</b>
    \n"]}
    20111028 22:52:17 - [string] ===== SERVER LOG =====
    20111028 22:52:17 - [string] [DEBUGGER] - PARAMETERS: Array
    (
    [id] => 267
    [action] => pte_ajax
    [pte-action] => resize-images
    [pte-sizes] => Array
    (
    [0] => thumbnail
    )

    [x] => 123
    [y] => 0
    [w] => 286
    [h] => 286
    )

    20111028 22:52:17 - [string] [DEBUGGER] - BASE FILE DIMENSIONS/INFO: Array
    (
    [0] => 868
    [1] => 287
    [2] => 3
    [3] => width="868" height="287"
    [bits] => 8
    [mime] => image/png
    )

    20111028 22:52:17 - [string] [DEBUGGER] - Array
    (
    [type] => 3
    [dst_x] => 0
    [dst_y] => 0
    [dst_w] => 150
    [dst_h] => 150
    [src_x] => 123
    [src_y] => 0
    [src_w] => 286
    [src_h] => 286
    )

    20111028 22:52:17 - [string] [AVERTISSEMENT] - Buffered output:
    <b>Warning</b>: imagetruecolortopalette(): supplied argument is not a valid Image resource in <b>/home/addict/public_html/www.addict-tv.tv/wp-content/plugins/post-thumbnail-editor/php/functions.php</b> on line <b>382</b>

    20111028 22:52:17 - [array] [-1,-780,true]
    20111028 22:52:18 - [array] [-1,0,false]
    20111028 22:52:18 - [string] running callback with no arguments
    20111028 22:52:18 - [string] finished running callback
    20111028 22:52:18 - [string] ===== CHECK SUBMIT BUTTON =====
    20111028 22:52:18 - [string] ENABLE

    http://wordpress.org/extend/plugins/post-thumbnail-editor/

  2. Li-An
    Member
    Posted 2 years ago #

    Did you test with a default template and no other plugin activated ?

  3. sewpafly
    Member
    Plugin Author

    Posted 2 years ago #

    Does this happen for every image?

  4. addicttv
    Member
    Posted 2 years ago #

    Hi Li-An !
    I have tryed without the others plugins and it doesn't work.

  5. addicttv
    Member
    Posted 2 years ago #

    Yes Sewpafly, it's appening with every images.

  6. sewpafly
    Member
    Plugin Author

    Posted 2 years ago #

    Can you post an image somewhere (imageshack/photobucket) that I can try? This should only happen for indexed png's, and I haven't seen this problem. (yet).

  7. Li-An
    Member
    Posted 2 years ago #

    Do you know your php version for your hosting ?

  8. addicttv
    Member
    Posted 2 years ago #

  9. sewpafly
    Member
    Plugin Author

    Posted 2 years ago #

    Also, as Li-An mentioned there are some versioning issues. This function requires GD 2.0.1 or later (2.0.28 or later is recommended).

  10. addicttv
    Member
    Posted 2 years ago #

    Normaly the hosting is in php 4.

  11. addicttv
    Member
    Posted 2 years ago #

    @ Sewpafly
    What is GD ?

  12. sewpafly
    Member
    Plugin Author

    Posted 2 years ago #

    It's a graphics library that php uses. I would make a little PHP script on your site that looks like this.

    File: phpinfo.php

    <?php
    phpinfo();
    ?>

    Then navigate to http://yoursite/path-to-file/phpinfo.php. This will give you a ton of information about the php installation. You can find your php version as well as the GD version that's installed.

  13. Li-An
    Member
    Posted 2 years ago #

    OK, I think the problem comes from your php version. WP 3.2.1 needs php 5 and so need the plugin to work.

  14. addicttv
    Member
    Posted 2 years ago #

    Ha ok.
    Thank you to you both for your advice and informations.
    So I have to wait to be updated to php5 by my hosting.
    By the way would you know another pluging which would work with my settings ?

  15. Li-An
    Member
    Posted 2 years ago #

    No :-( It's the only plugin of this sort I think.
    If you got a only php4 webhoster, you need to find another one because WP needs php5 and a lot of popular plugins too.

  16. addicttv
    Member
    Posted 2 years ago #

    Thank you so much.
    I think I m gonna try to tweek the code like that:
    http://shailan.com/781/how-to-change-post-thumbnail-crop-position-in-wordpress/

  17. addicttv
    Member
    Posted 2 years ago #

    Thank you so much.
    I think I m gonna try to tweek the code like that:
    http://shailan.com/781/how-to-change-post-thumbnail-crop-position-in-wordpress/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic