I am having problems uploading a 1MB file of contacts (CSV) to a newsletter mailing list, however I always get an error during upload, error is: Fatal error: Allowed memory size of x bytes exhausted (tried to allocate 49 bytes) in /cms/code/Newsletter/RecipientImportField.php on line 151
I tried adding 'ini_set('memory_limit', '64M');' to /sapphire/main.php but this did not help. Any ideas??
Thanks for the tip, tried that as well, but with no luck.. I had to use another newsletter system instead to be able to handle the contact load list. Other systems seem to have no trouble with it.. (ie. PHPlist)
I have a similar same issue. Client uploaded 3 large images (around 2MB each) in the 'Uploads' folder by using the 'Files & Images' tab. When clicking the 'edit' icon behind these images in the 'Files & Images' section OR when selecting the 'Uploads' folder when adding image to TinyMCE HTMLEditorField the following error message occurs:
<br >Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 26000 bytes) in /home/domains/mywebsite.com/public_html/sapphire/filesystem/GD.php on line 24
<br >Adding 'php_value memory_limit 64M' to .htaccess file (or even 'php_value memory_limit 128M') did not change anything. phpinfo() tells me the memory limit is 128M.
<br >Please help, many thanks in advance.
After some more investigation this is not related to file size, but to file dimensions (in this case the abnormal 6500px width). Is there something we can do to either resize the image after upload in the 'Files & Images' or disallow images with dimensions larger than xxx pixels?