PEAK XOOPS - Fatal error: Allowed memory for batch.php in englishin japanese

Fatal error: Allowed memory for batch.php

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 .2 | Posted on 2009/4/29 1:27
marckd  办霹始   Posts: 18
hello

I run myalbum since a long time, and I have had this problem in the past a couple of times, searching I resolved it by increasing the memory

but now, with 100mb should be more than enough, but it shows me this on batch.php

Fatal error: Allowed memory size of 104857600 bytes exhausted (tried to allocate 207 bytes) in /home/zycu/public_html/kernel/object.php on line 288

in the past was only after I submited a large number of photos, but now it is only on the access page, why is that happening???

all the rest of the site works perfect

thanks in advance
Votes:10 Average:6.00
Previous post - Next post | Parent - No child | Posted on 2009/4/29 3:29
marckd  办霹始   Posts: 18
I am guessing here

but, could it be becouse of the submitter selectio box?
I have over 4500 users, and it takes a while to load them all
Votes:12 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2009/4/30 0:14
marckd  办霹始   Posts: 18
0k, it was that
I resolved it by limiting the list user for this batch to 30 users, as I always use the same users, so there was no need to load all the users
Votes:12 Average:10.00
Previous post - Next post | Parent - No child | Posted on 2009/5/2 5:57
GIJOE  黎扦烦菱   Posts: 4110
Certainly, XoopsUser Object is too big.
To get users list, batch.php should not use XoopsUser Object but use simple SQL.

You can also hack batch.php like:
From:
$submitter_select = new XoopsFormSelectUser( _AM_TH_SUBMITTER , 'submitter' , false , $submitter ) ;
To:
$submitter_select = new XoopsFormText( _AM_TH_SUBMITTER , 'submitter' , 50 , 255 , 1 ) ;

Just set uid as a number.
Votes:8 Average:8.75

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!