Fatal error: Allowed memory size

Hello,





Whenever I click on sales reports I get (Fatal error: Allowed memory size of 50331648 bytes exhausted (tried to allocate 18 bytes) in /home//public_html/core/fn.common.php on line 542)





Is this cause from my server or on my website?



Any help will be much appreicated.



Thanks

Tom

Hi,

A quick solution is to modify in config.local.php



from:


@ini_set('memory_limit', '48M');




to:


@ini_set('memory_limit', '256M');






I hope that helps,





Valentin

[quote name='Vali' timestamp='1363269448' post='157740']

Hi,

A quick solution is to modify in config.local.php



from:


@ini_set('memory_limit', '48M');




to:


@ini_set('memory_limit', '256M');






I hope that helps,





Valentin

[/quote]Thanks, but my hosting company add 1024m and its still showing the samething. And they don't know why.

Check in Administration>Database>PHP Information, what are the Local and Master memory_limit values?

[quote name='StellarBytes' timestamp='1363303432' post='157800']

Check in Administration>Database>PHP Information, what are the Local and Master memory_limit values?

[/quote]



I replace gmmktime with mktime and its working now.



From this posted



[url=“Memory issues with sales reporting - Issues & Troubleshooting - CS-Cart Community Forums”]Memory issues with sales reporting - Issues & Troubleshooting - CS-Cart Community Forums



Thanks