WordPress 2.7.1 problem (for 1and1 shared hosting):

Can’t upload images when the following plugins are installed together:

  • “NextGEN Gallery” AND “WP Security Scan” installed together causes image upload problems.
  • “NextGEN Gallery” AND “Multi-Level Navigation” plugins installed together causes image upload problems.

Errors encountered when trying to upoad images:

  • Warning: imagecreatefromstring() [function.imagecreatefromstring]: gd-jpeg: JPEG library reports unrecoverable error: in /homepages/30/d119280860/htdocs/inspiredamateur.reidwalley/wp-admin/includes/image.php on line 147
  • Warning: imagecreatefromstring() [function.imagecreatefromstring]: Passed data is not in ‘JPEG’ format in /homepages/30/d119280860/htdocs/inspiredamateur.reidwalley/wp-admin/includes/image.php on line 147
  • Warning: imagecreatefromstring() [function.imagecreatefromstring]: Couldn’t create GD Image Stream out of Data in /homepages/30/d119280860/htdocs/inspiredamateur.reidwalley/wp-admin/includes/image.php on line 147
  • HTTP error. An error occurred in the upload. Please try again later.

SOLUTION (for 1and1 shared hosting):

Add the following lines of code to the .htaccess file:

AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php


  1. Radam Feizo-Gas on July 11, 2009 at 1:07 pm

    Thank you Sir! This is the ONLY thing that has fixed the image upload issue for me!

    I very much appreciate you taking the time to post this! I’ve made mention of it on my blog.



  2. Jon on July 21, 2009 at 4:33 pm

    Thanks a lot man, this workaround worked great for me.

  3. Greg on April 5, 2010 at 12:49 pm

    Thank you very much, that worked out great for WordPress and the WP Photo Album Plus plugin!

  4. Vuenza on March 27, 2011 at 10:39 pm

    Mil Gracias de verdad gracias a esta solución que publicaste ya hace 2 Años y aún sigue brindado ayuda, todos los problemas que tenía Con WordPress 3.1 en 1and1 fueron solucionados tanto, el la creación de los thumnails como en las traducciones de WordPress


    Thanks goes out with this solution you posted 2 years ago and continues to provide help, all the problems I had with WordPress 3.1 on 1and1 were solved both the creation of thumnails as translations of WordPress 3.1

Leave a Comment