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