Jump to content

Fatal Error


Allan

Recommended Posts

I have recently contacted my host on this error

"Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 128 bytes) in /hermes/web02/b2669/pow.aj5214/htdocs/core/classes/ezdb/ezdb_mysql.class.php on line 273"

I got a response back from saying

"I would like to inform you that, I have tried by setting the maximum memory limit for the PHP . However, the URL http://usaflightclub.com/index.php/schedules/view still giving the same error. It appears to be issue with the script. So, I advice you please check the script and debug the issue from your end. "

How would I debug the system??

Thanks in advance

Regards,

Allan

Link to comment
Share on other sites

Guest lorathon

Looks like you are pulling to much data. I had this issue when attempting to view all schedules. I limited the maximum number to 1000 viewable. I informed the pilots and told them to search for schedules not just attempt to view all.

Link to comment
Share on other sites

Guest lorathon

I still think that your best bet is to but a limit on the return. There is really no need for a pilot to see ALL of the schedules. If you construct your scheduling search page to force a pilot to choose a least one search criteria you may not even need to limit. It should limit for you since only schedule with that criteria will be returned.

We have over 133k schedule and do not experience this for the above reasons.

my 2 cents :D

Link to comment
Share on other sites

Guest lorathon

You have two easy option from what I can see (this is using the standard schedules function built into phpVMS

1. Do not show all of the schedules when navigating to the scheduling page (this is the easiest)

core/modules/schedules/schedules.php Around Line 159

public function showSchedules()
{
	$depapts = OperationsData::GetAllAirports();
	$equip = OperationsData::GetAllAircraftSearchList(true);

	$this->set('depairports', $depapts);
	$this->set('equipment', $equip);

	$this->render('schedule_searchform.tpl');

	# Show the routes. Remote this to not show them.   
	//$this->set('allroutes', SchedulesData::GetSchedules());   <--- Comment this line out as shown

	$this->render('schedule_list.tpl');
}

Or if you want to show at least some of them

Same file and function

public function showSchedules()
{
	$depapts = OperationsData::GetAllAirports();
	$equip = OperationsData::GetAllAircraftSearchList(true);

	$this->set('depairports', $depapts);
	$this->set('equipment', $equip);

	$this->render('schedule_searchform.tpl');

	# Show the routes. Remote this to not show them.
	$this->set('allroutes', SchedulesData::GetSchedules('true', '1000'));  <--- Change this as shown (this will show only the first 1000 enabled schedules

	$this->render('schedule_list.tpl');
}

This should work but I have not tried either.

Link to comment
Share on other sites

Guest lorathon

Try this

public function showSchedules()
       {
               $depapts = OperationsData::GetAllAirports();
               $equip = OperationsData::GetAllAircraftSearchList(true);

               $this->set('depairports', $depapts);
               $this->set('equipment', $equip);

               $this->render('schedule_searchform.tpl');

               # Show the routes. Remote this to not show them.
               $this->set('allroutes', SchedulesData::GetSchedules(true, '1000'));  //<--- Change this as shown (this will show only the first 1000 enabled schedules

               $this->render('schedule_list.tpl');
       }

I made a bone head move and put the true in quotes

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...