Jump to content

Recommended Posts

Posted

Hi all

I've had to reinstall my server which has meant reinstalling phpVMS.  I downloaded the 2.0.854 release (not beta), went through the install document making the necessary folders writeable, imported the old database from my previous 854 install, and now pireps aren't working.

Manually adding results in no error and when the pirep list is displayed it's not shown.

Using Xacars results in "SUCCESS" from the server, but again nothing showed in the pirep list.

Also, nothing is shown in the "Pending Pireps" notification on the admin part.

However, in both the xacars.txt and log.txt logs, the pireps are displayed.  I've double checked folder permissions, but I'm now pulling my hair out!

Any help would be appreciated.

Will

Posted

Content of log.txt:

Caller: DB::write_debug->DB::query->PIREPData::fileReport->ACARSData::FilePIREP->include_once->ACARS->__call->ACARS->xacars->call_user_func_array->MainController::RunAllActions
INSERT INTO vaaswv2_pireps(	
						`pilotid`, 
						`code`, 
						`flightnum`, 
						`depicao`, 
						`arricao`, 
						`distance`,
						`aircraft`, 
						`flighttime`, 
						`flighttime_stamp`,
						`landingrate`,
						`submitdate`, 
						`accepted`, 
						`log`,
						`load`,
						`fuelused`,
						`source`,
						`exported`,
						`rawdata`)
				VALUES ( 1, 
						'WOW', 
						'05B', 
						'EGHD', 
						'EGHQ', 
						'34.032825131298',
						'2', 
						'0.12', 
						'0:12:00',
						'0',
						NOW(), 
						0, 
						'',
						'37',
						'537',
						'xacars',
						0,
						'')
Field 'expenselist' doesn't have a default value

Running checkdb and checkinstall show no errors.  From the above log I've checked that expenselist default value is "NULL".

Posted

I've got an expenselist field in the pireps table, right under expenses.

tablelist.jpg

Yes that's all as I reinstalled then turned logging back on to see if it would fix it but it didn't.

  • Administrators
Posted

I meant in that query.

Change the column to "null" or to allow null, that should fix it.

BTW, what mysql version do you have? Someone ran into this before, I wonder if it's version related

  • Administrators
Posted

I unticked "NOT NULL" and it's started logging Pireps again.  However it's stopped calculating pilot pay and revenue.

I have version 5.1.42 for x64.

I'll check that version, see if there's anything funny

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...