Jump to content
NWA1999

PIREP Filing Issues

Recommended Posts

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 

Share this post


Link to post
Share on other sites

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 by ProAvia

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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)

 

Share this post


Link to post
Share on other sites

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 by ProAvia

Share this post


Link to post
Share on other sites

Thanks, I will try that. Unfortunately, manual pireps don't work either. Does it go to smartCARS even with a manual pirep?

 

Share this post


Link to post
Share on other sites

No, manual PIREPS don’t have anything to do with the smartCARS files on site or the smartCARS client.

 

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
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...