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 we have provided you with great information or service, there are a few ways you can show your appreciation:
  1. Become a AVNW Paid Subscriber.- We are constantly updating our data base with great tips and solutions to common problems, especially with Ultimate Member. If you found our site because of a WordPress issue, then your issue (if solved) will be published with the solution(s) for others to benefit from.
  2. Make a small donation.- We have buttons at the top and bottom that will allow you to do so via PayPal fast.
  3. Send us a testimonial.- Testimonials giving us praise for our good work is also valuable to us and encourages others to seek our support.
  4. Post a review (OP only).- If you came from a WordPress support board, posting a good review about our free service could also compel others to seek our advice & support.
  5. Like us on Facebook.- Recently our account had a problem on FB and we were forced to create a new one. We lost all our posts & likes. :(
If you do all 5, you'll get a surprise bonus from us. :)
Thank You!
User avatar
admin
Site Admin
 
Posts: 381
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 we have provided you with great information or service, there are a few ways you can show your appreciation:
  1. Become a AVNW Paid Subscriber.- We are constantly updating our data base with great tips and solutions to common problems, especially with Ultimate Member. If you found our site because of a WordPress issue, then your issue (if solved) will be published with the solution(s) for others to benefit from.
  2. Make a small donation.- We have buttons at the top and bottom that will allow you to do so via PayPal fast.
  3. Send us a testimonial.- Testimonials giving us praise for our good work is also valuable to us and encourages others to seek our support.
  4. Post a review (OP only).- If you came from a WordPress support board, posting a good review about our free service could also compel others to seek our advice & support.
  5. Like us on Facebook.- Recently our account had a problem on FB and we were forced to create a new one. We lost all our posts & likes. :(
If you do all 5, you'll get a surprise bonus from us. :)
Thank You!
User avatar
admin
Site Admin
 
Posts: 381
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