From: K. O. <on...@xo...> - 2003-06-08 04:05:22
|
Yes, it is set to 8M in php.ini and the edit users page works fine. I've enabled the access right to that page on your account in case you need to test it online.. BTW, what exact error message do you get for the error? If it is really an issue of the memory limit setting in php, you would probably get a 'Fatal error' message that php generates. If not, it might be an error reported by mysql. Thanks and regards, K. Ono ----- Original Message ----- From: "R. Michael van Dam" <mv...@ca...> To: "K. Ono" <on...@xo...> Sent: Sunday, June 08, 2003 12:25 PM Subject: Re: [Xoops-development] xoops.org stats > > Just to follow up on this... I *was* able to reproduce the problem on my > own site. > > I am using latest CVS codes, have register_globals ON, am running PHP > 4.1.2 with all standard settings in that version including the 8M memory > limit. I created 700 bogus users (as that is how many another user who > reported this problem had) and suffered the same problems. > > There are a couple places where it loads ALL users. In administration, > under 'edit user', it loads the whole list of usernames to show the > 'select' to choose which user you want to edit. Also in administration > under 'edit groups', when you choose a group to edit, it shows at the > bottom of the screen a list of *all* users so you can select which ones to > add to the current group. This also happens on mail users, when the > number of selected users become large (e.g. choosing 'registered users'). > > The rest of the site seems to function normally. > > To run out of 8MB loading only 700 users means that each user object takes > up at least 10kB in memory. (Of course things like smarty etc. are taking > up a large chunk so this estimate is probably a little large.) This seems > like an awfully huge amount of overhead. > > I don't know enough about PHP to know if it just has enormous overhead in > its handling of classes, or perhaps there are some memory errors in this > version of PHP. (Unfortunately I don't have a server available at the > moment where I can install a later version of PHP.) The other user with > the problem is running 4.1.2 also. > > If it is not too much trouble, could you just confirm in /etc/php.ini that > you have 'memory_limit = 8M', and that 'Edit User' works correctly on the > xoops.org site? I assume there are more than 700 users there. If > everything checks out, then this probably points to PHP 4.1.2 as the > culprit, and would give me a concrete place to start looking for problems. > > Thanks! > > Regards, > Mike > |