AVeryNiceWeb

How to Fix Image Upload Issues on WordPress

How to Fix Image Upload Issues on WordPress

Postby admin » Sun Oct 30, 2016 3:49 pm

Instructions

Go to your WordPress site > wp-content > themes > your-theme > functions.php.

Copy and paste the following code:
Code: Select all
add_filter( ‘wp_image_editors’, ‘change_graphic_lib’ );

function change_graphic_lib($array) {
return array( ‘WP_Image_Editor_GD’, ‘WP_Image_Editor_Imagick’ );
}


Sometimes the issue is server/host side. Where the 'ini_set()' has been disabled for security reasons.

Add the php.ini file to public html, wp-admin and wp-includes folders.

1. Login to your domain via regular or secure FTP (FTP over TLS/SSL – Auth TLS Explicit highly recommended)
2. Create blank file named php.ini
3. Edit php.ini file then add following lines (please copy and paste each line separately – 5 lines in total):
Code: Select all
    extension=pdo.so
    extension=pdo_sqlite.so
    extension=sqlite.so
    extension=pdo_mysql.so
    disable_functions = show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open, allow_url_fopen, ini_alter, proc_terminate, proc_get_status, proc_nice, escapeshell, eshellarg, escapeshellcmd, dl, symlink

4. Save file
5. Set php.ini permissions to 600. It will lock configuration file. You may set 600 permissions via File Manager – right click on php.ini file then select “Change Permissions” > 600.
The AVNW Support Team
http://www.AVeryNiceWeb.com

If you wish to add visual documentation (screenshots), make a donation and we'll let you know when the post has been updated


And, if our post has provided you with great information, there are a few ways you can show your appreciation:
  1. Like us on Facebook.- Our account had recently a hacking problem on FB and we were forced to create a new one. We lost all our posts & likes. :(
  2. Send us a testimonial.- Testimonials thanking for our good team work can be valuable to us and may encourage others to seek our support.
  3. Post a review.- Posting a good review about this site could also compel others to seek our advice & support.

Thank You!
User avatar
admin
Site Admin
 
Posts: 452
Joined: Mon Jan 13, 2014 3:18 am
Location: New York City

When Uploading Images Produces "HTTP Error"

Postby admin » Wed Dec 14, 2016 3:33 am

Symptom: You upload images with a plugin (e.g. Ultimate Member, WooCommerce, etc) and are constantly getting an 'HTTP Error'. The problem persists even when you try to upload from the Media upload button in the Admin panel.

Solutions:
  1. You are having a very common problem on WordPress, but 9 out of 10 times it's related to image formatting. WordPress appears to struggle uploading images above 1200 pixels wide, thus try uploading images 1200 pixels or below. If having problems with PNG images, change the format to JPG, and for transparencies to GIF.

  2. Sometimes is an issue with This message was hidden, please register or login to see message!. The MAGICK_THREAD_LIMIT variable limits the number of threads if ImageMagick is built with OpenMP enabled.

    Add this line in your .Htaccess file located in the root directory of your WP site:
    Code: Select all
    SetEnv MAGICK_THREAD_LIMIT 1


  3. Sometimes is a security issue setting with your server. Add these lines to your .Htaccess file located in the root directory of your WP site:
    Code: Select all
    <IfModule mod_security.c>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </IfModule> 
The AVNW Support Team
http://www.AVeryNiceWeb.com

If you wish to add visual documentation (screenshots), make a donation and we'll let you know when the post has been updated


And, if our post has provided you with great information, there are a few ways you can show your appreciation:
  1. Like us on Facebook.- Our account had recently a hacking problem on FB and we were forced to create a new one. We lost all our posts & likes. :(
  2. Send us a testimonial.- Testimonials thanking for our good team work can be valuable to us and may encourage others to seek our support.
  3. Post a review.- Posting a good review about this site could also compel others to seek our advice & support.

Thank You!
User avatar
admin
Site Admin
 
Posts: 452
Joined: Mon Jan 13, 2014 3:18 am
Location: New York City


Return to WordPress

Who is online

Users browsing this forum: No registered users and 0 guests

cron