traq;11002301 wrote:SO,
this is on your local machine, correct (not online)?
Are you using the plugin via the program you refer to, or in your web browser?
Is this "white screen of death" actually freezing your browser (or your computer)?
Or is it simply a blank page (no response from the plugin script)?
As brad says, start by enabling error reporting. From there, you need to try to narrow down what might be causing this --
how large are the arrays you're passing to 'anim', 'tree', 'deco', and 'building'?
How many elements are there in the $sections array?
Can you find the definition for your save_array() function, so we can see what it actually does?
The program uses IE as it's browser. But once program is open, I can open it manually in any browser. When saving the array that is extremely large, result is same on all browsers (IE, Chrome, Opera).
It does not freeze me at all. Rather the white screen is instant. When it is saving a normal amount of data, it takes a few seconds, probably because it then load_array again as a refresh per say. The second I hit SAVE for the
if (isset($_GET['add_sec'])) {
$array_size = count($sections);
for($i = 0; $i < $array_size; $i++)
{
$sections[] = array(
'top_x' => @$_GET['top_x'],
'top_y' => @$_GET['top_y'],
'bot_x' => @$_GET['bot_x'],
'bot_y' => @$_GET['bot_y'],
'pat' => @$_GET['pat'],
'seed' => @$_GET['seed'],
'seed2' => @$_GET['seed2'],
'type' => @$_GET['type'],
'anim' => @implode('|',$vAnimArray),
'tree' => @implode('|',$vTreeArray),
'deco' => @implode('|',$vDecoArray),
'building' => @implode('|',$vBuildingArray),
'buyanim' => @$_GET['buyanim'],
'buytree' => @$_GET['buytree'],
'buydeco' => @$_GET['buydeco'],
'buybuilding' => @$_GET['buybuilding'],
'active' => @$_GET['active'],
'place' => @$_GET['place'],
'rotate' => @$_GET['rotate'],
'walk' => @$_GET['walk']
);
echo $array_size;
save_array($sections, 'sections.txt');
}
}
It's white screen immediately. The sections.txt is also never even created.
I am trying to get a way to "count" by throwing an
$array_size = count($sections);
for($i = 0; $i < $array_size; $i++)
but have not worked out the echo yet for it. Sorry novice php lol.
Error reporting shows no error as it seems to crash immediately.