Reviewed: https://reviews.mahara.org/1043 Committed: http://gitorious.org/mahara/mahara/commit/7f231697437e70371b9ac2767eb23391612c9e2d Submitter: Hugh Davenport ([email protected]) Branch: master
commit 7f231697437e70371b9ac2767eb23391612c9e2d Author: Richard Mansfield <[email protected]> Date: Mon Feb 13 16:30:42 2012 +1300 Add a maximum number of users for csv files (bug #823048) This allows $cfg->maxusercsvlines to be specified in config.php to stop admins and institutional admins from uploading large csv files. This is potentially useful on large multi-user sites. And until such time as we can reduce the amount of memory used by the create_user function, setting this option will provide the user with some feedback on csv upload failure (because we can't easily trap the php out-of-memory error). See also bug #548042. This commit also adds a call to set_time_limit() after processing each user, so that the script doesn't fail due to php's max. execution time. Change-Id: I662231288c7d0c6e70602c548123f12c63427a97 Signed-off-by: Richard Mansfield <[email protected]> -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. https://bugs.launchpad.net/bugs/548042 Title: Fatal error: Allowed memory size of 33554432 bytes exhausted Status in Mahara ePortfolio: Fix Released Bug description: When trying to add a huge amount of users through csv, this error appears: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 4864 bytes) in /home/test/public_html/lib/dml.php(46) : runtime-created function on line 1 Is there a setting to rectify this? By uploading in two or three different lots solves the problem. Thanks, Andrea This bug was imported from eduforge.org, see: https://eduforge.org/tracker/index.php?func=detail&aid=3101&group_id=176&atid=739 To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/548042/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~mahara-contributors Post to : [email protected] Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp

