Some members can't upload profiles... get blank pages

CharacterProfiler.lua file uploading issues

Re: Some members can't upload profiles... get blank pages

Postby Wildstar » Sat Mar 17, 2007 3:43 pm

PleegWat wrote:I've taken a closer look at the lua parser. I think the high memory usage is because of overallocation in the php arrays. I've cut down the memory usage significantly by having the lua parser read directly from the uploaded file, rather than caching it in memory.



Thanks!

I bumped my script memory up to 24 mb to handle the files, but I was concerned about over allocation of system resources if I had too many users upload at the same time.

I'm sure all the roster users who can't fiddle with their systems base settings are grateful for your rapid response to this issue as well.

Thanks again!

Wildstar
Wildstar
WR.net Apprentice
WR.net Apprentice
 
Posts: 11
Joined: Sat Aug 05, 2006 8:08 pm

Re: Some members can't upload profiles... get blank pages

Postby Lanaera » Sat Mar 24, 2007 12:37 am

I did Pleegwat's fix, but that didn't fix my issue. However, bumping php.ini from 8M to 24M did fix it... FWIW.

Thanks guys, cuz at the end of the day, that's all I wanted: for it to work! :)
User avatar
Lanaera
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Sat Oct 28, 2006 9:50 pm

Some members can't upload profiles... get blank pages

Postby PleegWat » Sat Mar 24, 2007 7:21 am

The bigger your CP files get, the more memory is needed. The fix I posted reduces the amount of memory used by about 40%. That means you can upload CP's of up to about 1.4 MB instead of 1MB. If your file is bigger, or you upload multiple files, you'll still need to increase your memory allowed.

With the parser that comes with 1.7.3, you should have your memory set to at least 8 times the size of the file you're uploading
With my adjustments, you need about 5 times the size of the file in memory.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Re: Some members can't upload profiles... get blank pages

Postby Cerpolette » Sat May 05, 2007 1:17 am

Hi.
I have the same problem and i tried the fix you explain here.
No change.

I tried to focus on what cause this, so
- i removed the characterprofiler.lua

Tried a new save just opening/saving the character DATA
i uploaded with success.

Then i add talents.
Ok.

finaly when i tried to add recipes it broke.
So it may be related with some recipes (French game) ?
or may be size of the .lua

i'll try some "Memory size pb fixes" and report.
Cerpolette
WR.net Apprentice
WR.net Apprentice
 
Posts: 1
Joined: Sat May 05, 2007 1:13 am

Re: Some members can't upload profiles... get blank pages

Postby aniodon » Tue May 15, 2007 7:34 pm

Cerpolette wrote:Hi.
I have the same problem and i tried the fix you explain here.
No change.

I tried to focus on what cause this, so
- i removed the characterprofiler.lua

Tried a new save just opening/saving the character DATA
i uploaded with success.

Then i add talents.
Ok.

finaly when i tried to add recipes it broke.
So it may be related with some recipes (French game) ?
or may be size of the .lua

i'll try some "Memory size pb fixes" and report.


Any news of it ?
aniodon
WR.net Journeyman
WR.net Journeyman
 
Posts: 108
Joined: Mon Dec 18, 2006 8:09 pm

Re: Some members can't upload profiles... get blank pages

Postby peegeebee » Mon May 21, 2007 3:24 pm

PleegWat wrote:The bigger your CP files get, the more memory is needed. The fix I posted reduces the amount of memory used by about 40%. That means you can upload CP's of up to about 1.4 MB instead of 1MB. If your file is bigger, or you upload multiple files, you'll still need to increase your memory allowed.

With the parser that comes with 1.7.3, you should have your memory set to at least 8 times the size of the file you're uploading
With my adjustments, you need about 5 times the size of the file in memory.


This fixed it for me:

Insert the following code somewhere at the top of the update.php file:

Code: Select all
ini_set("memory_limit", "24M");


e.g. at line 34.

I've set the memory limit to 24 MB, so I can handle files with sizes till 3 MB.
With the adjustments of Pleegwat, you can use a lower memory limit.

So, multiply the file size you want to support with 8 (or with 5 if you use Pleegwat's adjustments) and there you have the memory limit you need.
peegeebee
WR.net Apprentice
WR.net Apprentice
 
Posts: 1
Joined: Fri Oct 13, 2006 12:54 pm

Previous

Return to Uploading

Who is online

Users browsing this forum: No registered users and 0 guests

cron