I am having a strange issue with the built in wordpress image editor. I have no problem uploading files or preforming any other media functions. The only thing I seem to be unable to do is utilize the image “edit” capabilities (the area where you can crop, resize, rotate…)
When I click on “edit” for an image I see the editor and I see the thumbnail on the right, wordpress just won’t show me the actual image in the main area and thus I can’t utilizing any of the editing capabilities.
I am assuming this must be some type of JavaScript conflict however I not sure the best way to diagnose this other than what I have already done (disabling all plugins and ensuring no functions.php file is modifying a setting or including other javascript).
How can I diagnose this issue to see what might be going wrong?
I have actually managed to resolve my own problem. For anyone else that might ever read this the problem which caused this was that my
functions.php
file had a closingat the very end. For whatever reason this is what cause the issue and by removing this last line it was working again.
Yes, the problem is the PHP closing tag (
?>
) infunctions.php
.However, if in
functions.php
there are many inclusions which in turn include other PHP files, it is unthinkable to remove all PHP closing tag in all files.So, my advice is add in the first line of
functions.php
the php functionob_start()
and in the last lineob_end_clean()
by removing the closing PHP tag.Everything will work perfectly.