If your site is on hostgator and you get the error
memory size of 41943040 bytes exhausted
it is due to the hostgators admin setting your memory limit to 32M
Hostgator also seems to have a 32M limit for their business account!
So if you see any memory errors in wordpress or other software . It has nothing to do with your software
goto your php.ini QuickConfig
in your cpanel and check
NOTE:- Please beware the tech support at hostgator may try and mislead you into believing that there is some other thing causing the problem
Hostgator tech support
We could see that a custom PHP configuration file under home directory of your domain, which may have caused the issue.
Kindly cross check the same and if you are still getting the error, please get back to us with the exact steps to recreate the error from our end.