Issue with Image Insertion in WordPress (Only on Sub-Accounts )
I have this issue (detailed more here https://www.inmotionhosting.com/support/community-support/wordpress/cannot-insert-more-than-2-images-at-a-time-into-wordpress) that I have been going back and forth with InMotion about for weeks. This morning I ran multiple tests and was able to isolate the affecting scenarios (at least on my end, since InMotion techs still say they cannot replicate on their end)
THE ISSUE: Cannot insert more than 2 images at once into a Wordpress post. The upload is fine - the issue happens on insertion. Support cannot replicate - although regardless of what computer or internet connection I use I have the same result.
FINDINGS:
1. All sites migrated from Site 5 last month using a control panel migration have the issue (may or may not be relevant after my findings today, next)
2. Only sub accounts on InMotion hosting have the issue
3. I installed a WordPress site on the main account site using Softaculous and an FTP upload installation and it did not have the issue.
4. On a sub-account I disabled all plugins on an existing account, and could not still insert more than 2 images at once.
5. On a freshly installed Wordpress on a sub-account I could not insert more than 2 images at once.
ISOLATION RESULT: (on my end)
Only happens on sub accounts of my hosting
Plugins are irrelevant to whether it happens or not
Softaculous install vs. FTP install makes no difference
The primary domain on my hosting account is unaffected
So, I am wondering if it is possible it has something to do with package settings or how sub-accounts are set up? I am on the R-2000S reseller hosting plan.
I was able to replicate the issue you described with 5 images that totalled approximately 2.5MB, and got an error related to it in the Apache error logs that said, "[DAY Feb DD TIME 2017] [:error] [pid 15478:tid 140660031940352] (12)Cannot allocate memory: [client IPHERE:63918] couldn't create child process: /opt/suphp/sbin/suphp for /home/userna05/public_html/imh-test/wp-admin/admin-ajax.php, referer: http://sub-accountdomain.com/imh-test/wp-admin/post.php?post=1&action=edit" I also confirmed that the exact same images work without issue on a 'parent' reseller account.
I was finally able to track down the issue to a setting in account packages. When creating a new package you need to click the "LVE Settings" button and set Pmem to 2GB, and Vmem to 4GB. Please keep in mind that these are the maximum values you are able to use, and may be subject to change over time. Also, this isn't likely to allow inserting an unlimited, or large number of images at one time, but my test set of images was successful after making this change.
Finally, I just wanted to mention that I edited out your domains from previous posts in an effort to protect your personal information as this is a public forum.
Gratefully,
Casey B.