I have a production SS site from 1 year. This is SS 2.2.1
My hosting provides me 32MB of PHP. I canÂ´t get more.
All works prefectly (we have not changes in the las 3-4 months).
Today, in administration, when i go to a user defined contact form i received:
"Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 53 bytes) in sapphire/core/model/DataObject.php on line 1501"
I read in forum and try to change all _config.php files with "ini_set('memory_limit', '48M');" with no sucess.
I also try to put in htaccess file "php_value memory_limit 48M" with no sucess.
Is any way to solve this problem? Why suddenly canÂ´t load this contact form? Maybe because it has new contact and that exhausted memory?
Thank in advance and excuse me for my poor english.
I've experienced this my self, and the culprit was the setting register_globals - maybe your script relies on this setting to be 'on' - and the hosting provider has changed their environment, thus disabling register_globals.
I don't think this has anything to do with register_globals. Do NOT set register_globals to 'on'.
You're having some bad luck with that memory.. only 53 bytes are missing. Maybe it works if you try it again? Or does it always fail?
I think your best bet is to ask your hosting provider to increase the memory for you. Or switch to another hosting provider.
My clientÂ´s hosting is reluctant to make changes (no more RAM, no changes allowed in htaccess) and my client says he donÂ´t want to change the hosting. So I have a problem with this.
The error always appears in this page, but not in other pages. This is a very simple contact form with 9 fields. I donÂ´t think there are too much contacts filling this form.
Willr, I donÂ´t understand well why the images/files increases the memory required to open a simple page, with no files/images inside, and why creating new pages increases memory requirement.
Anyway I will try to clean sitetree_versions and PageView which are very big and retry to open this page.