Out of memory problem

Topics: User Forum
May 4, 2012 at 1:13 AM

I am trying to write an Excel spreadsheet with 2864 lines.  I get an error message

Fatal error: Allowed memory size of 50331648 bytes exhausted (tried to allocate 35 bytes) in /var/www/vhosts/<server url>/httpdocs/PHPExcel/Classes/PHPExcel/CachedObjectStorage/CacheBase.php on line 130

I tried to add a ini_set('memory_limit', '166M'); statement at the beginning of my calling script without success.  How can I allocate more memory?

May 4, 2012 at 7:24 AM

ini_set() may work depending on your server restrictions (some ISPs don't allow you to increase memory). Alternatively, look at the options for cell caching