Title: crying2812's Replies | WordPress.org

---

# crying2812

  [  ](https://wordpress.org/support/users/crying2812/)

 *   [Profile](https://wordpress.org/support/users/crying2812/)
 *   [Topics Started](https://wordpress.org/support/users/crying2812/topics/)
 *   [Replies Created](https://wordpress.org/support/users/crying2812/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/crying2812/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/crying2812/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/crying2812/engagements/)
 *   [Favorites](https://wordpress.org/support/users/crying2812/favorites/)

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[UsersWP - Front-end login form, User Registration, User Profile & Members Directory plugin for WP] Error rotate when crop image in profile page](https://wordpress.org/support/topic/error-rotate-when-crop-image-in-profile-page/)
 *  Thread Starter [crying2812](https://wordpress.org/support/users/crying2812/)
 * (@crying2812)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/error-rotate-when-crop-image-in-profile-page/#post-13360839)
 * Hi Patrik.
    Here is all steps to solve my problem
 * First. I added a filter to limit image size
 *     ```
        add_filter('wp_handle_upload', 'resize_for_new_uploads', 10, 2);
   
       function resize_for_new_uploads($array, $context)
       {
           $ok = array('image/jpeg', 'image/gif', 'image/png', 'image/jpg', 'image/jpg');
   
           if (!in_array($array['type'], $ok)) return $array;
   
           $editor = wp_get_image_editor($array['file']);
   
           if (is_wp_error($editor))
               return $editor;
   
           $editor->set_quality(90);
   
           $editor->resize(800, 800, true);
   
           $editor->save($array['file']);
   
           return $array;
       }
       ```
   
 * Second, i disabled uwp_resizeThumbnailImage() in /includes/class-forms.php, change
   it to : $cropped = $image_url; on line 1351 on mobile.
 * It happended when i take a photo using camera on Iphone or chosen some large 
   images, my fix was rudimentary, but it solved my problem, hope this helps 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[UsersWP - Front-end login form, User Registration, User Profile & Members Directory plugin for WP] Error rotate when crop image in profile page](https://wordpress.org/support/topic/error-rotate-when-crop-image-in-profile-page/)
 *  Thread Starter [crying2812](https://wordpress.org/support/users/crying2812/)
 * (@crying2812)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/error-rotate-when-crop-image-in-profile-page/#post-13360691)
 * Hi Patrik. I found the problem happened when user upload large image + system
   dont have any limit for image size. Thank you for quick reply.
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Pagination cannot work in loop order by term id](https://wordpress.org/support/topic/pagination-cannot-work-in-loop-order-by-term-id/)
 *  Thread Starter [crying2812](https://wordpress.org/support/users/crying2812/)
 * (@crying2812)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/pagination-cannot-work-in-loop-order-by-term-id/#post-6714961)
 * [@bcworkz](https://wordpress.org/support/users/bcworkz/)
    tks for reply. Can 
   u suggest me about that query or keyword for search , i’m beginner 🙁

Viewing 3 replies - 1 through 3 (of 3 total)