PHP Memory Limit Error
Allowed Memory Size Exhausted Errors
These errors occur when PHP tries to process a large database record, or when importing or exporting a database.
To fix the problem, please modify the memory_limit line in php.ini to match this example:
memory_limit = 256M
We do set the maximum memory limit at 256 MB (268,435,456 bytes).
So, if you see "Allowed memory size of 268435456 bytes exhausted..." in the error, then you cannot increase the limit any higher without a VPS plan or dedicated server. Dedicated Server and VPS customers with WHM access can change the limit by going to WHM > Service Configuration > PHP Configuration Editor.
Out of Memory Error
If you see less than 268435456 bytes total allocated and being allocated, but still get an error like the example above, then we suggest you contact HostGator support to get assistance and advice.