Edit image preview is not displayed

When I click on “Edit” for an image I see the editor and I see the thumbnails on the right, WordPress just won’t show me the actual image in the main area.

/wp-admin/admin-ajax.php?action=imgedit-preview&_ajax_nonce=de68a01318&postid=29499&rand=385 (couldn't not find image)

Here is what I have done to try to fix it:

  • Turned off all plugins.
  • Remove my own theme and changed to default theme.
  • Removed all blank lines and whitespaces in /wp-content/themes/name/functions.php + the including files.
  • Checked that php5-gd is installed.
  • Permissions changed to 777 for testing /wp-content/upload/ + sub folders
  • Removed closing ?> tags in /wp-content/themes/name/functions.php + the including files.

Still no preview displayed. What can be the problem?

3 Answers
3

By default, wp-config.php might not have a closing tag ?> and this is acceptable and by design. The issue may arise from whitespace in some other .php file. In my case, I had whitespace after the closing tag of my functions.php file for my child theme. Once I removed that whitespace, the images are showing up again and I can crop.

Leave a Comment