NWA1999 Posted May 18, 2019 Report Share Posted May 18, 2019 Hi I'm unable to file PIREPs after a upgrade from phpVMSv2 to v5 ,auto or manual im getting this error in the error log PHP Warning: Creating default object from empty value in /home/****/public_html/core/common/PIREPData.class.php on line 337 Any Ideas? Robbie Quote Link to comment Share on other sites More sharing options...
flyalaska Posted May 18, 2019 Report Share Posted May 18, 2019 What php version are you on? Quote Link to comment Share on other sites More sharing options...
NWA1999 Posted May 18, 2019 Author Report Share Posted May 18, 2019 PHP7 Quote Link to comment Share on other sites More sharing options...
Administrators ProAvia Posted May 18, 2019 Administrators Report Share Posted May 18, 2019 (edited) PHP 7.0, PHP 7.1, PHP 7.2, PHP 7.3 ?? What are the contents of line 337 in PIREPData.class.php? When you upgraded from phpVMS 2.x, did you upgrade to 5.0 or Simpilot 5.5.2? Is the site throwing any other errors? This is related to your kACARS issues also - Edited May 18, 2019 by ProAvia Quote Link to comment Share on other sites More sharing options...
NWA1999 Posted May 18, 2019 Author Report Share Posted May 18, 2019 PHP Version 7.0.33 Quote Link to comment Share on other sites More sharing options...
Administrators ProAvia Posted May 18, 2019 Administrators Report Share Posted May 18, 2019 If line 337 is $row->rawdata = unserialize($row->rawdata); Change to if($row != NULL) { $row->rawdata = unserialize($row->rawdata); } Let us know if that worked. Quote Link to comment Share on other sites More sharing options...
NWA1999 Posted May 18, 2019 Author Report Share Posted May 18, 2019 Hello, this did not work. I upgraded phpVMS to 5.0. I did not touch simpilot Quote Link to comment Share on other sites More sharing options...
Administrators ProAvia Posted May 18, 2019 Administrators Report Share Posted May 18, 2019 What are the contents of the original line 337 in PIREPData.class.php? After entering what I suggested, did it still give the same error? If you got an error, was it the exact same or different? Quote Link to comment Share on other sites More sharing options...
NWA1999 Posted May 18, 2019 Author Report Share Posted May 18, 2019 There is no further error now- Thank You! However, when I bid the flight it transfers to smartCARS, and shows up on my site as a bid in the pilot centre. When I file the PIREP, I do not receive any errors and then nothing happens. It does not go to our pilot admin to approve our anywhere else. It's like it disappears after being filed. smartCARS does show all the history but it seems our site does not show the PIREP. Its like its only half connected to the SQL. Quote Link to comment Share on other sites More sharing options...
NWA1999 Posted May 18, 2019 Author Report Share Posted May 18, 2019 sorry I did not mention this I have- Invalid argument supplied for foreach() in /home/skyteam/public_html/lib/skins/nwa_1.0/statistics/statistics_index.tpl on line 226 I am not sure this is affecting it but line 226 reads foreach($routes as $route) Quote Link to comment Share on other sites More sharing options...
Administrators ProAvia Posted May 18, 2019 Administrators Report Share Posted May 18, 2019 (edited) You may want to get ahold of the smartCARS developers and see if you need to change/replace any smartCARS site files to make it work correctly in PHP 7. It sounds like the site is able to send data to smartCARS but not receive data from smartCARS. As for the other error, I don’t know cause I don’t use that skin - and my skin doesn’t have a statistics folder. Edited May 18, 2019 by ProAvia Quote Link to comment Share on other sites More sharing options...
NWA1999 Posted May 18, 2019 Author Report Share Posted May 18, 2019 Thanks, I will try that. Unfortunately, manual pireps don't work either. Does it go to smartCARS even with a manual pirep? Quote Link to comment Share on other sites More sharing options...
Administrators ProAvia Posted May 18, 2019 Administrators Report Share Posted May 18, 2019 No, manual PIREPS don’t have anything to do with the smartCARS files on site or the smartCARS client. Quote Link to comment Share on other sites More sharing options...
NWA1999 Posted May 19, 2019 Author Report Share Posted May 19, 2019 Okay so it's not smartCARS. I think it has something to do with this not populating.(see zip) Capture.zip Quote Link to comment Share on other sites More sharing options...
Administrators ProAvia Posted May 19, 2019 Administrators Report Share Posted May 19, 2019 Does that pilot already have hours and flights logged in the database? Speaking of database, check the pireps table to see if any of the pireps submitted via smartCARS or manually are there. Also, submit a new pilot application and see if that gets sent to the site correctly. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.