• Resolved jopl

    (@jopl)


    EDIT:
    SOLVED!
    The plugin will not work if WP_DEBUG is set to TRUE. The problem seems to be related to the logger and undefined keys.

    Hi!

    I can’t seem to go from step 1 to step 2.

    The thumbnails are created in the ptetmp-folder and the loading bar is visible while they are generated. Then the process stops and step 2 is never shown (which means no approval and no copy from tmp to uploads). No errors are displayed in the log.

    I tried on two different installs of wordpress on two different servers. I also tested in firefox, chrome and safari (latest stable versions).

    The folder permissions seems to be correct.

    I tested with newly uploaded images and with all plugins disabled and the default theme.

    QUnit test:
    Tests completed in 40748 milliseconds.
    21 tests of 24 passed, 3 failed.

    Stage 1: Go to Stage 2 (1, 0, 1)
    Stage 2 loaded
    Source:
    at http://(server name removed)/wordpress/wp-content/plugins/post-thumbnail-editor/js/stage1.js:73:4
    Stage 2: All/None javascript (1, 3, 4)
    Thumbnails present
    Source:
    at Object.<anonymous> (http://(server name removed)/wordpress/wp-content/plugins/post-thumbnail-editor/js/stage2.js:7:3)
    All sizes should be checked
    No sizes should be checked
    All sizes should be checked
    Stage 2: Submit button (1, 0, 1)
    Submit button should be enabled
    Source:
    at Object.<anonymous> (http://(server name removed)/wordpress/wp-content/plugins/post-thumbnail-editor/js/stage2.js:25:3)

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

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

    (@jopl)

    Followup:

    Here’s the admin-ajax data preview:

    log: [,…]
    0: “[DEBUG] – PARAMETERS: Array↵(↵ [id] => 392↵ [action] => pte_ajax↵ [pte-action] => resize-images↵ [pte-sizes] => Array↵ (↵ [0] => thumbnail↵ [1] => kontaktbild↵ )↵↵ [x] => 330↵ [y] => 150↵ [w] => 385↵ [h] => 385↵)↵”
    1: “[DEBUG] – BASE FILE DIMENSIONS/INFO: Array↵(↵ [0] => 1000↵ [1] => 750↵ [2] => 2↵ [3] => width=”1000″ height=”750″↵ [bits] => 8↵ [channels] => 3↵ [mime] => image/jpeg↵)↵”
    2: “[DEBUG] – GETwidthheightCROPPED”
    3: “[DEBUG] – Array↵(↵ [type] => 2↵ [dst_x] => 0↵ [dst_y] => 0↵ [dst_w] => 87↵ [dst_h] => 87↵ [src_x] => 330↵ [src_y] => 150↵ [src_w] => 385↵ [src_h] => 385↵)↵”
    4: “[DEBUG] – GETwidthheightCROPPED”
    5: “[DEBUG] – Array↵(↵ [type] => 2↵ [dst_x] => 0↵ [dst_y] => 0↵ [dst_w] => 172↵ [dst_h] => 172↵ [src_x] => 330↵ [src_y] => 150↵ [src_w] => 385↵ [src_h] => 385↵)↵”
    pte-delete-nonce: “0dc80d4cd4”
    pte-nonce: “9cb56b0dbe”
    thumbnails: {thumbnail:{,…}, kontaktbild:{,…}}
    kontaktbild: {,…}
    file: “jpeg-172×172.jpeg”
    url: “http://(server name removed)/wordpress/wp-content/uploads/ptetmp/392/jpeg-172×172.jpeg”
    thumbnail: {,…}
    file: “jpeg-87×87.jpeg”
    url: “http://(server name removed)/wordpress/wp-content/uploads/ptetmp/392/jpeg-87×87.jpeg”

    And response:

    Notice: Undefined offset: 1 in /hsphere/local/home/(server name removed)/wordpress/wp-content/plugins/post-thumbnail-editor/php/log.php on line 83

    Notice: Undefined offset: 2 in /hsphere/local/home/(server name removed)/wordpress/wp-content/plugins/post-thumbnail-editor/php/log.php on line 83

    Notice: Undefined index: error in /hsphere/local/home/(server name removed)/wordpress/wp-content/plugins/post-thumbnail-editor/php/functions.php on line 57
    {“thumbnails”:{“thumbnail”:{“url”:”http:\/\/(server name removed)\/wordpress\/wp-content\/uploads\/ptetmp\/392\/jpeg-87×87.jpeg”,”file”:”jpeg-87×87.jpeg”},”kontaktbild”:{“url”:”http:\/\/(server name removed)\/wordpress\/wp-content\/uploads\/ptetmp\/392\/jpeg-172×172.jpeg”,”file”:”jpeg-172×172.jpeg”}},”pte-nonce”:”9cb56b0dbe”,”pte-delete-nonce”:”0dc80d4cd4″,”log”:[“[DEBUG] – PARAMETERS: Array\n(\n [id] => 392\n [action] => pte_ajax\n [pte-action] => resize-images\n [pte-sizes] => Array\n (\n [0] => thumbnail\n [1] => kontaktbild\n )\n\n [x] => 330\n [y] => 150\n [w] => 385\n [h] => 385\n)\n”,”[DEBUG] – BASE FILE DIMENSIONS\/INFO: Array\n(\n [0] => 1000\n [1] => 750\n [2] => 2\n [3] => width=\”1000\” height=\”750\”\n [bits] => 8\n [channels] => 3\n [mime] => image\/jpeg\n)\n”,”[DEBUG] – GETwidthheightCROPPED”,”[DEBUG] – Array\n(\n [type] => 2\n [dst_x] => 0\n [dst_y] => 0\n [dst_w] => 87\n [dst_h] => 87\n [src_x] => 330\n [src_y] => 150\n [src_w] => 385\n [src_h] => 385\n)\n”,”[DEBUG] – GETwidthheightCROPPED”,”[DEBUG] – Array\n(\n [type] => 2\n [dst_x] => 0\n [dst_y] => 0\n [dst_w] => 172\n [dst_h] => 172\n [src_x] => 330\n [src_y] => 150\n [src_w] => 385\n [src_h] => 385\n)\n”]}

    Plugin Author sewpafly

    (@sewpafly)

    Thanks for pointing this out. I’ll try to resolve the incompatability with wp_debug set to true!

    https://github.com/sewpafly/post-thumbnail-editor/issues/48

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Post Thumbnail Editor] Can't go to step 2’ is closed to new replies.