Wordpress: HTTP error uploading images - you can do that
If you try to upload an image to WordPress and suddenly receive an HTTP error, the image will not be saved. Find out why and how to fix the error here.
Wordpress - HTTP errors: the most common causes
- Use a plugin to optimize images, deactivate it and test whether the upload works now.
- Change the format from JPG to PNG and vice versa. Also try GIF. Sometimes the upload then works without problems.
- Make sure that there is no apostrophe in the name. Karl's-Auto.webp also provides an error message.
Wordpress - HTTP error: Update PHP version
- Often, the web host does not automatically switch to the latest PHP version.
- Check with your provider which PHP version is used.
- Word 5.6 or higher should be used for WordPress.
- If you cannot set the PHP version yourself in your customer portal, ask your host to apply the changes for you.
Wordpress - HTTP error: Increase memory limit for uploads
- The PHP memory limit is also often a problem. Even if your pictures are actually not that big, the error appears.
- You can increase the limit by making an entry in the "wp-config.php" file.
- To do this, dial in to the server with your FTP client.
- In the main directory you will see the file with the name "wp-config.php".
- Copy the file to your computer.
- Rename the file on your server to "wp-config.php_old". If something goes wrong, you can simply rename the file again and your WordPress installation will not be damaged.
- Now open the file on your computer in the Windows editor.
- Find the line with the entry / * That's all, stop editing! Happy blogging. * / or / * That's it, finish editing! Have fun blogging. * /
- In the line above insert the following code: define ('WP_MEMORY_LIMIT', '512M')
- Save the file, copy it back to the server using an FTP program and test whether the image upload now works.
Wordpress - HTTP error: Make an entry in .htaccess
- Use the FTP program to dial into the root directory of your server.
- Look for the ".htaccess" file.
- Copy the file to your computer and rename the file on your server as described above.
- Open the file in Notepad or WordPad and add the following entry: php_value memory_limit 512M
- If the file does not exist, open an empty document, insert the text and name the file .htaccess. Important: Don't forget the period at the beginning of the file name.
- Upload the file again and check the result.
- If none of this works, talk to your host. Some providers do not allow users to change the memory limit. Support should be able to help you with this.
If there is a 404 error in WordPress, the next practical tip will tell you what you can do about it.