-
Posts
1634 -
Joined
-
Last visited
-
Days Won
70
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Posts posted by ProAvia
-
-
What ACARS program?
-
I see GMP - GNU Multiple Precision - is required. And the install will not continue until this requirement is met.
My shared hosting does not offer this php extension on their shared hosting plans. In doing some research, it seems many (most??) shared hosting plans do not offer GMP as an option. Of course, we could move to a scalable cloud VPS platform - for almost 10 times the monthly cost. Yeah, not gonna happen.
Is there another option to use instead of GMP? Possibly bcmath?
Any options for afforable hosting that includes the GMP requirement? Presently paying about $5/month with yearly prepay.
-
On 3/12/2019 at 7:28 AM, thunder175 said:
I assume you are using the default installation of 5.5.2 with no mods correct? If successful, maybe we can fork simpilots's GitHub and make this a separate version, say 5.5.3 or 5.6 to annotate that this is a PHP 7.x compliant version. I know in the grand scheme of things we are trying to deprecate the 2.x/5.x baselines and eventually move to v7, but I for one probably won't be upgrading to PHPVMS v7 for the foreseeable future. I'm sure this will be of great value to a number of folks! Please let me know if there is anything I can do to support.
Just a quick update... I have a default installation of 5.5.2 edited to work with PHP 7.2. Still in the process of editing the install program to work correctly with PHP 7.2 - but once installed, phpVMS works fine in 7.2. There is limited ongoing testing taking place by a few community members. Once a few minor install issues are sorted we will make this available to the community.
Thunder175 - Any help you would be willing to provide would be most welcome!
-
Try this
<?php echo $pilot->firstname .' '. substr ($pilot->lastname, 0, 1)?>
https://www.w3schools.com/php7/func_string_substr.asp
I've done the same everywhere on the user/public side of my site. On the admin side, I still show complete last name.
- 1
-
Yep, broken link. And copying the link text takes one to the log in screen. Nowhere to see what you have to offer prospective pilots.
-
Try starting with a new database. The database you were trying to use already has the tables written to it and has the initial data populated also.
-
Try this... in your last code above, copy the contents and do the following
Change all occurrances of $reports to $pirep_list and all occurrances of $report to $pirep
My phpVMS 5.5.2 has those changes and works fine. Or as flyalaska said, the original code you posted works on his site. Maybe it's an issue with your skin.
Is this the pireps_viewall.php file? Is it in your CrewCenter skin folder or in core/templates?
-
I think "$report" and "$reports" are referencing the PIREP table in the database. And the PIREP table only shows the aircraft ID number. You need to find a way to reference that aircraft ID number and then call the aircraft table into the mix. Then the aircraft ID can reference the aircraft type, registration or whatever else the aircraft table provides for that specific aircraft ID.
What skin are you using? What is the name of the file for the code you posted?
-
I'm guessing you are using phpVMS 2.1.x or 5.0 and not 5.5.2
Try this - change
<td><?php echo $report->aircraft;?></td>
to show aircraft registration
<td><?php echo $report->aircraft . "(report->registration)";?></td>
or to show aircraft ICAO
<td><?php echo $report->aircraft . "(report->icao)";?></td>
-
Do you mean phpVMS 5.5.2?
Look in control panel to see what version of PHP you are using with GoDaddy. Some phpVMS versions will not work with certain versions of PHP.
Download a new copy of phpVMS and upload to your site. Start with a new database and set permissions to allow all options for the designated DB user - folders to 755, files to 644.
It looks like the installer is unable to write to the local.config.php file. That file is created on installation and holds all the DB access and phpVMS config info.
-
What version of phpVMS?
What version of PHP?
Are you installing locally or what host are you using?
-
What version of phpVMS?
Are you using the default index.php file that came with your version of phpVMS? What happens when you use the default skin?
I guess I'm not understanding 'authenticated' vs 'un-authenticated'.......
-
This is the phpVMS 7 forum. Looks like you are using one of the classic versions - 2.x, 5 or 5.5.2 - which one?
EDIT - thanks to the mods for moving it to correct forum
-
What version of phpVMS? What version of PHP?
What are the contents of TemplateSet.class.php on line 230?
Do you have the simBrief module correctly installed? Seems the system can't find the template file listed.
-
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.
-
No, manual PIREPS don’t have anything to do with the smartCARS files on site or the smartCARS client.
-
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.
-
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?
-
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.
-
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 -
-
What version of phpVMS are you using?
What is the full version of PHP? 7.x could be 7.0, 7.1, 7.2, 7.3, etc.
Does the error log show any errors since moving to the new host or using php 7.whatever? When my host forced us to PHP 7+, we had to turn on error logging using the php,ini file or the user.ini file - so something with error logging changed when they upgraded from php 5.6 to php 7+ -- at least with our host.
Check file and folder permissions - use Filezilla or the like to sign into your site via FTP and look at the file and folder permissions for the kACARS folder and kACARS files.
Another option would be to install kACARS_Free on the site and your computer and see if you can file a PIREP using kACARS_Free. Then you can possibly determine what you may need to change in your present kACARS files to make it work with you new host. But first, we need to know what PHP version you are using.......
-
Are you using a custom kACARS or kACARSII?
Check folder and file permissions on your site.
What version of PHP is the test site using?
Any errors in the site error log?
-
Resolved by using same version of kACARS_Free client as listed in core/modules/kACARS_Free/kACARS_Free.php and recreating VA profile in the client.
-
I'm using kACARSII - but I still have the kACARS_Free module installed.
kACARS_Free directory permissions - 755
kACARS_Free.php file permissions - 644
I compared my module to the one at FS-Products and their content is exactly the same. Are you using 1.0.1.1 client on your FSX machine?
Acars map and data
in Support Forum
Posted
I would recommend contacting them an asking if that can easily be changed. I believe most all data from a flight is dependant on the ACARS program in use. I know that in kACARSII, I can select the data transmission interval thru an admin panel option setting available via the site side kACARSII files.