WordPress.org

Forums

Post Thumbnail Editor
[resolved] "Error parsing selection information" (6 posts)

  1. albertosanchezm
    Member
    Posted 3 years ago #

    Hello,

    this plugin was working great until some days ago, when it starts to say "Error parsing selection information" un step 1 on clicking the "Create Thumbnail" button just after selecting the area in the image.

    Any idea what is failling? Thanks a lot!

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

  2. albertosanchezm
    Member
    Posted 3 years ago #

    Sorry, here is the debug info:

    20111217 09:44:58 - [string] ===== STARTUP PHP MESSAGES =====
    20111217 09:44:58 - [string] ===== SERVER LOG =====
    20111217 09:44:58 - [string] [DEBUG] - PARAMETERS: Array
    (
        [action] => pte_ajax
        [pte-action] => launch
        [id] => 27535
    )
    
    20111217 09:44:58 - [string] [DEBUG] - USER-AGENT: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7
    20111217 09:44:58 - [string] [DEBUG] - WORDPRESS: 3.2.1
    20111217 09:44:58 - [string] [DEBUG] - SIZER: 0.61255743
    20111217 09:44:58 - [string] [DEBUG] - META: Array
    (
        [width] => 634
        [height] => 653
        [hwstring_small] => height='96' width='93'
        [file] => 2011/12/Janet.jpg
        [sizes] => Array
            (
                [thumbnail] => Array
                    (
                        [file] => Janet-150x150.jpg
                        [width] => 150
                        [height] => 150
                        [wp_smushit] => Reduced by 7.7% (835 B)
                    )
    
                [medium] => Array
                    (
                        [file] => Janet-280x288.jpg
                        [width] => 280
                        [height] => 288
                        [wp_smushit] => Reduced by 7.3% (2.1 KB)
                    )
    
                [large] => Array
                    (
                        [file] => Janet-460x473.jpg
                        [width] => 460
                        [height] => 473
                        [wp_smushit] => Reduced by 7.1% (4.7 KB)
                    )
    
                [post-thumbnail] => Array
                    (
                        [file] => Janet-50x50.jpg
                        [width] => 50
                        [height] => 50
                        [wp_smushit] => Reduced by 9.4% (227 B)
                    )
    
                [blgn-featured] => Array
                    (
                        [file] => Janet-480x494.jpg
                        [width] => 480
                        [height] => 494
                        [wp_smushit] => Reduced by 7.0% (5 KB)
                    )
    
                [blgn-below_featured] => Array
                    (
                        [file] => Janet-235x132.jpg
                        [width] => 235
                        [height] => 132
                        [wp_smushit] => Reduced by 8.2% (1.1 KB)
                    )
    
                [blgn-mediabar] => Array
                    (
                        [file] => Janet-202x114.jpg
                        [width] => 202
                        [height] => 114
                        [wp_smushit] => Reduced by 7.8% (871 B)
                    )
    
                [blgn-secondary_left] => Array
                    (
                        [file] => Janet-75x77.jpg
                        [width] => 75
                        [height] => 77
                        [wp_smushit] => Reduced by 9.9% (403 B)
                    )
    
                [blgn-secondary_right] => Array
                    (
                        [file] => Janet-75x77.jpg
                        [width] => 75
                        [height] => 77
                        [wp_smushit] => Reduced by 9.9% (403 B)
                    )
    
                [blgn-secondary_mid_big] => Array
                    (
                        [file] => Janet-350x360.jpg
                        [width] => 350
                        [height] => 360
                        [wp_smushit] => Reduced by 7.0% (2.9 KB)
                    )
    
                [blgn-secondary_mid_small] => Array
                    (
                        [file] => Janet-70x70.jpg
                        [width] => 70
                        [height] => 70
                        [wp_smushit] => Reduced by 9.7% (346 B)
                    )
    
                [blgn-subnews] => Array
                    (
                        [file] => Janet-220x226.jpg
                        [width] => 220
                        [height] => 226
                        [wp_smushit] => Reduced by 7.5% (1.5 KB)
                    )
    
                [blgn-excerpt_thumb] => Array
                    (
                        [file] => Janet-90x65.jpg
                        [width] => 90
                        [height] => 65
                        [wp_smushit] => Reduced by 8.9% (360 B)
                    )
    
                [blgn-media_gallery] => Array
                    (
                        [file] => Janet-237x132.jpg
                        [width] => 237
                        [height] => 132
                        [wp_smushit] => Reduced by 8.1% (1.1 KB)
                    )
    
            )
    
        [image_meta] => Array
            (
                [aperture] => 0
                [credit] =>
                [camera] =>
                [caption] =>
                [created_timestamp] => 0
                [copyright] =>
                [focal_length] => 0
                [iso] => 0
                [shutter_speed] => 0
                [title] =>
            )
    
        [wp_smushit] => Reduced by 12.4% (12 KB)
    )
    
    20111217 09:45:01 - [string] ===== REFLOW =====
    20111217 09:45:01 - [string] ===== FIXING THICKBOX =====
    20111217 09:45:01 - [string] WINDOW WIDTH: 779
    20111217 09:45:16 - [string] ===== SETTING ASPECTRATIO: 101:57 =====
    20111217 09:45:19 - [string] ===== RESIZE-IMAGES =====
    20111217 09:45:19 - [object] {"id":"27535/","action":"pte_ajax","pte-action":"resize-images","pte-sizes[]":["blgn-mediabar"],"x":null,"y":null,"w":null,"h":null}
    20111217 09:45:22 - [string] ERROR with submit_data and NaN's
    20111217 09:45:25 - [string] ===== RESIZE-IMAGES =====
    20111217 09:45:25 - [object] {"id":"27535/","action":"pte_ajax","pte-action":"resize-images","pte-sizes[]":["blgn-mediabar"],"x":null,"y":null,"w":null,"h":null}
    20111217 09:45:32 - [string] ERROR with submit_data and NaN's
    20111217 09:45:45 - [string] ===== RESIZE-IMAGES =====
    20111217 09:45:45 - [object] {"id":"27535/","action":"pte_ajax","pte-action":"resize-images","pte-sizes[]":["blgn-mediabar"],"x":null,"y":null,"w":null,"h":null}
    20111217 09:45:47 - [string] ERROR with submit_data and NaN's
    20111217 09:48:30 - [string] ===== RESIZE-IMAGES =====
    20111217 09:48:30 - [object] {"id":"27535/","action":"pte_ajax","pte-action":"resize-images","pte-sizes[]":["blgn-mediabar"],"x":null,"y":null,"w":null,"h":null}
    20111217 09:48:30 - [string] ERROR with submit_data and NaN's
  3. sewpafly
    Member
    Plugin Author

    Posted 3 years ago #

    Sorry it's taken me so long to get back to you... Busy holidays... There is definitely a problem with something here, but I'll need your help to diagnose it. From the log I can see that the crop command appears to be passing in a slash as part of the ID, and additionally it's passing null values for x, y, width, and height.

    To help me debug, right-click on the "Thumbnail" link that launches PTE and open it in a new tab/window.

    The ID is being pulled from the HTML as the element with ID:"pte-post-id". Can you check the page source and search for this element? It should appear like:

    <input type="hidden" id="pte-post-id" value="27535" />

    What do you see?

  4. albertosanchezm
    Member
    Posted 3 years ago #

    Thanks for your response... and your time.

    Following your instructions, this is what I've found:

    <div id=pte-image>
    <input type=hidden id=pte-sizer value=0.80000000/>
    <input type=hidden id=pte-post-id value=27915/>
    <img id=pte-preview src="http://www.plasticosydecibelios.com/wp-admin/admin-ajax.php?action=imgedit-preview&_ajax_nonce=94b090e3c3&postid=27915&rand=19712"/>
    <div id=pte-buttons class=buttons>

    Let me konw of this is what you expected.

  5. sewpafly
    Member
    Plugin Author

    Posted 3 years ago #

    So I'm guessing there might be a conflict with another plugin because the quotes should not be disappearing like that... In fact all the quotes are missing.

    I don't know if you can try disabling plugins or changing your theme to see if you can isolate which plugin is the problem. I can then install the same plugin to start running some tests and determine the best way around the problem.

  6. albertosanchezm
    Member
    Posted 3 years ago #

    Hello again,

    sorry for the delay. I've been performing all kind of tests (deactivating plugins, installing WP 3.1, ...) and none of that worked. Finally, guess what was the problem? Cloudflare! I had my blog protected with cloudflare and seems that something in the technology they used generated some kind of error in the plugin. After deactivated the cloudflare DNS, all works well.

    Thanks again for your time and your incredible plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic