0

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?

1

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.

0

The preview is now displayed again after I removed empty lines and whitespaces after ?> in my wp-config.php file. That solved the problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.