Error's: error 500 / ... Session has been destroyed / Allowed memory size...

Permalink
I have created a website in the latest version, added a custom theme, added some pages etc. Everything went well, created a useraccount so the client can edit the site. Client tries to fill the website.

Now we get different errors:
- session_start(): Failed to decode session object. Session has been destroyed
- Allowed memory size of 134217728 bytes exhausted (tried to allocate 144234385 bytes)

A asked the client were it went wrong. They tried to upload a image (8MB).
I have checked the function in C5 to resize (max image size 1920x1080) uploaded images that are big.

Any Idea to fix this problem and a solution to make sure something like this does not happen in the future.

 
Gondwana replied on at Permalink Best Answer Reply
Gondwana
Most servers won't give you enough memory to allow very large (ie, many pixels) images to be resized.

The session problem could be to do with aggressive caching (eg, Varnish). Changing c5 to database-based sessions might help.
studio4graphics replied on at Permalink Reply
Thanks. Server settings are temporary set higher.. So now the website is visible again. (no more errors). If I get any session errors I will set to database-based.