17488 Posts in 4473 Topics by 1978 members
|Go to End|
1 September 2008 at 7:30am Last edited: 1 September 2008 7:35am
I have problem with importing csv to the mailing list.
I have csv file with about 20000 emails on it. When I try to import it the browser stuck, and after very long time I get an out of memory error message (Fatal error: Out of memory (allocated 42991616) (tried to allocate 40 bytes) in /home/atax/www/www/sapphire/core/Object.php on line 336")
Next step I splitted the file into several files with 2000 emails each. Importing the first and the second files work well (although importing file with 4000 faild). But after that, adding another file fail with the out of memory error.
The server limit the php memory to 80M, but is it loading all the list when accessing the mailing list instead of just the 10 that visible?
Any idea ??
btw: I tried to manually modify the DB and change the group of emails in one mailing list, to other, (so it will have all the 8000 emails) and it also stuck with the memory issue.
2 September 2008 at 10:56pm
I had the same problem.. Importing a big list you would need the server memory limit set quite high. Displaying the mailing list loads the whole list to calculate the total entries for paging, every time.
I have run Xdebug on it and found that its in the MemberTableField.php where the problem lies. I am a php developer and I am trying to fix it.. but I am still new to silverstripe internals. If you get any word on this or have suggestions, please let me know.
I have submitted a bug report but no reply on it yet.
12 September 2008 at 6:46pm
Any idea how to solved this ?
|Go to Top|