media add error wordpress

I am using wampserver64 windows7 OS

When I try to upload image via wordpress media library add new it shows error.

I tried to increase php memory by adding at wp-config.php

   define('WP_MEMORY_LIMIT', '256M');

But It did not help then I added below code at functions.php

  add_filter( 'wp_image_editors', 'change_graphic_lib' );
  function change_graphic_lib($array) {
   return array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' );

Again it did not help. then I add below code at .htaccess

  <IfModule mod_security.c>
   SecFilterEngine Off
   SecFilterScanPOST Off

Also it did not help. I changed at wordpress

   dashboard  settings>media> maximum file size width  2048 and height 2048 
   I tried to upload 1024x768 size image.

But nothing help.

Thanks in advance

Read more here: media add error wordpress

Leave a Reply

Your email address will not be published. Required fields are marked *