Title: basic image editor not working
Last modified: November 14, 2016

---

# basic image editor not working

 *  [touchaddict](https://wordpress.org/support/users/touchaddict/)
 * (@touchaddict)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/basic-image-editor-not-working/)
 * Hi everyone,
 * I’ve been using WP for a while but it’s the first time I install it myself.
    
   I have a mutualized hosting, with Merloz control panel, and managed to install
   WP quite easily. For the moment I’m using the basic theme TwentySixteen. But 
   I’ve had the same issue with TwentyFifteen, TwentyFourteen and Vortex.
 * THE ISSUE : When editing an image inserted in a post (crop or resize) I get the
   message :
    “Could not load the preview image. Please reload the page and try 
   again.” More details and images on this page : [http://www.royer-etienne.com/site/2016/11/14/wp-install-troubleshooting/](http://www.royer-etienne.com/site/2016/11/14/wp-install-troubleshooting/)
 * I have tried the following solutions:
    – Check if the server has the GD library
   installed, as suggested in some forums like [https://wordpress.org/support/topic/editing-images-in-35/](https://wordpress.org/support/topic/editing-images-in-35/).
   It seems the library is correctly installed, as you can see in the phpinfo : 
   [http://www.royer-etienne.com/site/test.php](http://www.royer-etienne.com/site/test.php)–
   Remove spaces between tags in functions.php such as suggested in [https://teamtreehouse.com/community/wordpress-image-editor-problem](https://teamtreehouse.com/community/wordpress-image-editor-problem).
   At least I removed all spaces after “?>”. You may doublecheck the functions.php
   file on the page of my blog.
 * Any idea to solve this issue ?
    Thanks very much in advance !

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [g0tr00t](https://wordpress.org/support/users/g0tr00t/)
 * (@g0tr00t)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/basic-image-editor-not-working/#post-8436243)
 * Hi,
 * Does the image load on the post itself when visiting the website?
 * You might want to consider enabling the debug option from within wp-config.php
   so that more information can be given in the error. If the image isn’t loading
   on the website either then it may be due to a permissions or .htaccess issue.
 * I don’t think the theme’s functions.php has any impact since it is utilizing 
   the built-in WordPress image editor which are located within the wp-includes 
   dir.
 *  Thread Starter [touchaddict](https://wordpress.org/support/users/touchaddict/)
 * (@touchaddict)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/basic-image-editor-not-working/#post-8437652)
 * Hi GOtrOOt, thanks for the quick reply.
 * Yes I am able to upload the images, then insert it in the blog. Most image features
   work well: resize, thumbnail, fearured image, meta data and so on… But on the“
   edit image” lightbox, I’m not able to crop or rotate the picture. It gives the
   error “could not load the preview…”
 * You can check image insertion here: [http://www.royer-etienne.com/site/2016/11/14/wp-install-troubleshooting/](http://www.royer-etienne.com/site/2016/11/14/wp-install-troubleshooting/)
 * I will try tonight to enable the debug “option from within wp-config.php”, and
   keep you informed when it’s done.
 *  Thread Starter [touchaddict](https://wordpress.org/support/users/touchaddict/)
 * (@touchaddict)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/basic-image-editor-not-working/#post-8440309)
 * Hi again,
 * I managed to add the debug option to wp-config.php, according to the chapter “
   Example wp-config.php for Debugging” of the Codex article [https://codex.wordpress.org/Debugging_in_WordPress](https://codex.wordpress.org/Debugging_in_WordPress)
 * As a result, a log file has been created, which you can consult here: [http://www.royer-etienne.com/site/wp-content/debug.log](http://www.royer-etienne.com/site/wp-content/debug.log).
   
   As well, some changes have appeared on the admin, notably on the “Image preview”
   lightbox: there is no longer a preview of the image. See screenshot here: [http://www.royer-etienne.com/site/wp-content/uploads/2016/11/Screenshot_20161115-214731.png](http://www.royer-etienne.com/site/wp-content/uploads/2016/11/Screenshot_20161115-214731.png)
 * After trying twice to rotate the image, I get the following message in the debug.
   log file: [15-Nov-2016 18:42:05 UTC] PHP Fatal error: Allowed memory size of 
   134217728 bytes exhausted (tried to allocate 3456 bytes) in /var/www/vhosts/FilerWeb08/
   royer-etienne.com/httpdocs/site/wp-includes/class-wp-image-editor-gd.php on line
   321
 * What do you think about this message?
 * Thanks in advance,
 *  [g0tr00t](https://wordpress.org/support/users/g0tr00t/)
 * (@g0tr00t)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/basic-image-editor-not-working/#post-8440592)
 * Ah yeah, I was worried about that. I noticed the image seems to be quite large
   in resolution and so it looks to be hitting the max php memory limit. This limitation
   is set forth in the php.ini file, but if you are on a shared hosting server then
   you won’t be able to increase it. I’d recommend asking your web host what the
   max php memory limit is, or you can check the limit yourself by creating a file
   in your website’s directory named phpinfo.php and then copy/pasting this code:
 *     ```
       <?
       phpinfo();
       ?>
       ```
   
 * After that, load the URL royer-etienne.com/phpinfo.php and then press Ctrl + 
   F for your browser’s find feature and type in memory_limit, hit enter and it 
   will take you to the portion of the page that shows the memory limit.
 * Since you are likely on a shared hosting platform and can’t change the value,
   I would just recommend scaling down the image to a smaller resolution if you 
   want to modify it from within wp-admin. If you do not want to scale it down, 
   then you would need to do the image modifications on your local computer to get
   around the php memory limitation.
 * So basically your image is too big and PHP does not have enough memory to load
   the large image.
    -  This reply was modified 9 years, 6 months ago by [g0tr00t](https://wordpress.org/support/users/g0tr00t/).
 *  Thread Starter [touchaddict](https://wordpress.org/support/users/touchaddict/)
 * (@touchaddict)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/basic-image-editor-not-working/#post-8445567)
 * Hello,
 * Honestly I thought using smaller images was a good idea.
    But now I have removed
   the debug mode from wp-content file, there is no longer a preview on the “edit
   image” lightbox 🙁 See screenshot here (after upload of a small image 100x100px):
   [http://www.royer-etienne.com/site/wp-content/uploads/2016/11/no-preview.png](http://www.royer-etienne.com/site/wp-content/uploads/2016/11/no-preview.png)
 * Maybe it’s a separate error…
    Any idea how to fix this?
 * Thanks
 *  [dwnfred](https://wordpress.org/support/users/dwnfred/)
 * (@dwnfred)
 * [9 years ago](https://wordpress.org/support/topic/basic-image-editor-not-working/#post-9145253)
 * Did you manage the issue?
    I have the same issue exactly…
 *  [skajinet](https://wordpress.org/support/users/skajinet/)
 * (@skajinet)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/basic-image-editor-not-working/#post-9676986)
 * Hello! HELP me pls somebody!!!
    Has anyone fixed the problem when previewing 
   photos does not appear during editing? I have the same problem. disabling plugins
   did not help, for memory costs 128 mb. in functions.php all is well tag -?> closed.
   what to do? I do not know. help me please

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘basic image editor not working’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 4 participants
 * Last reply from: [skajinet](https://wordpress.org/support/users/skajinet/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/basic-image-editor-not-working/#post-9676986)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
