• Resolved headtrick

    (@headtrick)


    Hallo all,

    I have WordPress 4.4.1. After uploading a Picture and clicking on edit only a broken image link is showing up where the picture to edit should be. Also cropping, rotating etc doesn’t work.

    I found that this problem already occured many times and tried all solutions, none helped:

    – different browser and deleting cache
    – changing theme to 2014 and deaktivating all plugins
    – javascript doesn’t show any errors
    – letting WP reinstall itself
    – checking functions.php (solution for an old WP)
    – folder rights are 755 ( 777 also not working)
    – GD and imagick are both enabled (most common solution, didn’t work ;( )
    – adding define(‘script_debug’ true) to wp-config.php

    Now google doesn’t deliver any new solutions.
    If you have any good suggestions please let me know!

    Thanks alot ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter headtrick

    (@headtrick)

    Here is the Ajax request of the backend, maybe somebody can use it:

    Request URL:xxxu/wp-admin/admin-ajax.php?action=imgedit-preview&_ajax_nonce=3319ecdf94&postid=257&rand=17487
    Request Method:GET
    Status Code:200 OK
    Remote Address:xxx
    Response Headers
    view source
    Cache-Control:no-cache, must-revalidate, max-age=0
    Connection:Keep-Alive
    Content-Type:image/jpeg
    Date:Thu, 07 Jan 2016 15:26:06 GMT
    Expires:Wed, 11 Jan 1984 05:00:00 GMT
    Keep-Alive:timeout=5, max=99
    Pragma:no-cache
    Server:Apache/2.4.10 (Debian)
    Transfer-Encoding:chunked
    X-Content-Type-Options:nosniff
    X-Frame-Options:SAMEORIGIN
    X-Robots-Tag:noindex
    Request Headers
    view source
    Accept:image/webp,image/*,*/*;q=0.8
    Accept-Encoding:gzip, deflate, sdch
    Accept-Language:de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4
    Connection:keep-alive
    Cookie:optionsActiveTabIndex=1; wordpress_d77681aa35c48a1990b77d1e1aa8975a=xxx%7C1452343752%7CKQrXe1bbpouZNcDw0qkgWG1VraFPzyT1sYWOL4WHbnr%7C22f2edac3e41c3e0da2e59557d5f3e3ecdc39386e3918b7eec84709d1e0d4820; gadwp_ir_default_metric=uniquePageviews; gadwp_ir_default_dimension=30daysAgo; wp-settings-1=libraryContent%3Dbrowse%26editor%3Dtinymce%26hidetb%3D1%26advImgDetails%3Dshow%26mfold%3Do%26imgsize%3Dmedium_large%26wplink%3D1; wp-settings-time-1=1451683809; wordpress_test_cookie=WP+Cookie+check; wordpress_logged_in_d77681aa35c48a1990b77d1e1aa8975a=xxx%7C1452343752%7CKQrXe1bbpouZNcDw0qkgWG1VraFPzyT1sYWOL4WHbnr%7C1fa9e43733d1b2f80a0d04a460b7226d5028b1597e1cec7c93ca4f3377789642; gadwp_wg_default_metric=sessions; gadwp_wg_default_dimension=today; _ga=GA1.2.1401593043.1451579174; euCookie=set
    DNT:1
    Host:xxx
    Referer:xxx/wp-admin/post.php?post=257&action=edit
    User-Agent:Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36
    Query String Parameters
    view source
    view URL encoded
    action:imgedit-preview
    _ajax_nonce:3319ecdf94
    postid:257
    rand:17487

    Thread Starter headtrick

    (@headtrick)

    Nobody has any suggestions?
    Also doesn’t work with a clean install of 4.4.1 ??

    What other settings can I change on the server?
    It runs a new Debian with Froxlor.

    Thread Starter headtrick

    (@headtrick)

    I noticed that when I download the picture from the ajax request, open it with notepad++ and save it again with ANSI encoding the picture is working. So somehow a UTF-8 order mark is getting there. Any suggestions where this comes from?

    Thread Starter headtrick

    (@headtrick)

    Finally ??

    Here is the solution:

    Somehow a BOM was in some file… so remove all BOM in any files and make sure youre standard encoding is utf-8

    you can use this code to recursively remove all BOM in a folder

    find . -type f -exec sed -i -e ‘1s/^\xEF\xBB\xBF//’ {} \;

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Image editing not working, preview not showing up’ is closed to new replies.