-
Posts
1663 -
Joined
-
Last visited
-
Days Won
73
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Posts posted by ProAvia
-
-
Nope... 2.1, 5.5.2 and 5.5.2.72 all use the local.config in the way I described.
-
Then your installation is done incorrectly.
You NEVER add to or change anything in app.config.php - any additions or changes are done to local.config.php .
-
Be sure you are looking at the correct file and location. The local.config.php is located in .../core/
If the local.config.php was empty, the site wouldn't even load - as the database access code is located in local.config.php
-
Moved to phpVMS Classic (v2, v5.5.x), Support Forum as your listed errors relate to those versions.
Free hosting is never a good choice for phpVMS.
Which exact classic version did you attempt to install? What PHP version are you using?
-
There is no phpVMS 5.There is 2.1.x, 5.5.2 and 5.5.2.72. Look in the lower right of the main admin page to see which you are using.
Both phpVMS 5.5.2 and phpVMS 5.5.2.72 are already recaptcha v2 compliant. No need to update them. But you will need to acquire a public and a private key from Google to use recaptcha.
After you get the keys from Google, you need to place them in local.config.php
Also, don't add anything to app.config.php. Only add to local.config.php. the local.config.php file takes precidence over the app.config.php file. So if the same line is in both files, local.config.php line will be used.
Since the CC Crew Test is payware, you will need to ask them for help or check out their forums.
-
Our solution was similar to yours. Staff members have 2 accounts - staff and pilot. The staff account is set for 40,000 hours and has a specific staff rank image tied to it. When a staff members flys, they use their pilot account to log into our ACARS.
We reserved a block of pilot numbers just for staff. You can reassign the same number to a new staff member if the present one retires.
Not a perfect solution, but it works.
-
Great. Thanks for letting us know its solved.
-
Yeah - the reason I left simpilot there is my update is of the simpilot version to make it compatible with PHP 7.2
Mine says - Verson 5.5.2.72 - Simpilot/PHP7.2
Simpilot version says - Simpilot 5.5.2
- 1
-
After 5.5.2.72 is all set up and tweaked to make all the modules work as you want, you basically edit local.config.php (near the top) to use the 5.5.2 database - edit DBASE_USER, DBASE_PASS, DBASE_NAME
- 1
-
Save the 5.5.2 database and after you get 5.5.2.72 tweaked to your liking, link it to the 5.5.2 database.The databases in default 5.5.2 and 5.5.2.72 are exactly the same except for some default date/time formats in a few tables which shouldn't affect the end result (and were done to make the install MySQL 5.7 compatible). If you are using MySQL 5.6 you won't see any difference.
Or run the subdomain/phpVMS 5.5.2 folder under PHP 5.6 - and the rest of your hosting account on 7.2
-
Did you edit any files in the Blue Ice version 2 download?
Look in blueIce skin, schedule_results.php file - post lines 54-73
Looking at the default blueIce skin schedule_results.php file, the Addbid function is correct.
-
What happens if you switch back to the default crystal skin?
When hovering over the add bid button/wording, does the ID also show? .../schedules/addbid/?id=<some number here>
-
If you have a customized kACARSI or kACARSII, your site URL is hard coded into the program. I believe this was done to prevent use at other VA's or URL's without actually purchasing the base program.
Do you still have access to the old URL? If so, just redirect the old domain to the new one.... and then use the old domain URL for your custom kACARS access.
-
No worries - just trying to keep things straight. Hope you are enjoying tweaking phpVMS.
-
That's what I thought.... but you posted in the phpVMS 7 forum.
I will move it....
-
Hmm - I thought you were going to use phpVMS 5.5.2 instead of phpVMS 7. Which are you using??
-
I suggest you take @flyalaska up on his offer.
-
Also, check your error_log file for clues.
-
Well... let's try this then....
Near the end of frontpage_map.php...... change
echo '</tr>'; } } else { echo '<tr><td>There are no recent flights!</td></tr>'; } } ?>
To this
echo '</tr>'; } } } else { echo '<tr><td>There are no recent flights!</td></tr>'; } ?>
Basically, you are moving the last ' } ' to just before 'else'.
Let us know how that works.
-
You installed the skin incorrectly. The developer provided detailed install instructions on his site.
https://209studios.com/docs/oceanBlue/
It looks like you uploaded the entire OceanBluev3 folder to your /skins folder.
What is your site URL?
- 1
-
4 hours ago, COA142 said:
Ok i add that code and it is still giving me line 18 error and now my site dose not show https://photos.app.goo.gl/rizoCjGEGJ6opmZf6
Both of those links are the same pic
What is the error?
-
You need to re-read my reply above ..... there are 2 files to edit...
frontpage_main.php and frontpage_map.php - two different files.... MAIN and MAP
frontpage_main.php gets the first edit
frontpage_map.php - you need to edit the contents as directed - along the same lines as the first file.... I used fake names for the calls cause I didn't have the file available this morning.
Replace lines 16-56
<?php if(count($pireps) > 0) { foreach ($pireps as $pirep) { $pilotinfo = PilotData::getPilotData($pirep->pilotid); $pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); $acrid = OperationsData::getAircraftByReg($pirep->registration); echo '<tr>'; echo '<td><a href="'.SITE_URL.'/index.php/profile/view/'.$pilotinfo->pilotid.'">'.$pilotinfo->firstname.' '.$pilotinfo->lastname[0].'.</a></td>'; echo '<td><a href="'.SITE_URL.'/index.php/pireps/viewreport/'.$pirep->pirepid.'">'.$pirep->code.$pirep->flightnum.'</a></td>'; echo '<td>'.$pirep->depicao.'</td>'; echo '<td>'.$pirep->arricao.'</td>'; echo '<td>'.$pirep->aircraft.'</td>'; echo '<td>'.$pirep->flighttime.'</td>'; echo '<td>'.$pirep->landingrate.' ft/m</td>'; if($pirep->accepted == PIREP_ACCEPTED) echo '<td><button type="button" class="btn btn-outline btn-success btn-xs mb-2">Flight Approved</button></td>'; elseif($pirep->accepted == PIREP_REJECTED) echo '<td><button type="button" class="btn btn-outline btn-danger btn-xs mb-2">Flight Rejected</button></td>'; elseif($pirep->accepted == PIREP_PENDING) echo '<td><button type="button" class="btn btn-outline btn-primary btn-xs mb-2">Approval Pending</button></td>'; elseif($pirep->accepted == PIREP_INPROGRESS) echo '<td><button type="button" class="btn btn-outline btn-primary btn-xs mb-2">On Progress</button></td>'; echo '</tr>'; } } else { echo '<tr><td>There are no recent flights!</td></tr>'; } ?>
With this
<?php if(is_array($pireps) || ($pireps) instanceof Countable { if(count($pireps) > 0) { foreach ($pireps as $pirep) { $pilotinfo = PilotData::getPilotData($pirep->pilotid); $pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); $acrid = OperationsData::getAircraftByReg($pirep->registration); echo '<tr>'; echo '<td><a href="'.SITE_URL.'/index.php/profile/view/'.$pilotinfo->pilotid.'">'.$pilotinfo->firstname.' '.$pilotinfo->lastname[0].'.</a></td>'; echo '<td><a href="'.SITE_URL.'/index.php/pireps/viewreport/'.$pirep->pirepid.'">'.$pirep->code.$pirep->flightnum.'</a></td>'; echo '<td>'.$pirep->depicao.'</td>'; echo '<td>'.$pirep->arricao.'</td>'; echo '<td>'.$pirep->aircraft.'</td>'; echo '<td>'.$pirep->flighttime.'</td>'; echo '<td>'.$pirep->landingrate.' ft/m</td>'; if($pirep->accepted == PIREP_ACCEPTED) echo '<td><button type="button" class="btn btn-outline btn-success btn-xs mb-2">Flight Approved</button></td>'; elseif($pirep->accepted == PIREP_REJECTED) echo '<td><button type="button" class="btn btn-outline btn-danger btn-xs mb-2">Flight Rejected</button></td>'; elseif($pirep->accepted == PIREP_PENDING) echo '<td><button type="button" class="btn btn-outline btn-primary btn-xs mb-2">Approval Pending</button></td>'; elseif($pirep->accepted == PIREP_INPROGRESS) echo '<td><button type="button" class="btn btn-outline btn-primary btn-xs mb-2">On Progress</button></td>'; echo '</tr>'; } } else { echo '<tr><td>There are no recent flights!</td></tr>'; } } ?>
So I think you may need to revert to the original files first and then edit the TWO files again. Hopefully your renamed the originals before saving the edit - if not, you can get the originals from the skin download. Sorry for any confusion on the second edit.
The edit to the frontpage_map.php file should work - but I have no way to try it. I had to do the edit to frontpage_main.php on another site that was using php 7.2 and an older version of the Ocean Blue skin.
Let us know how it works out.
-
Your warning error is NOT caused by the skin you are using.... it is because of changes between PHP 5.6 and PHP 7.2
For front_page main.php line 157 - replace the "<?php ... ?>" section with
<?php if(is_array(ACARSData::GetACARSData()) || (ACARSData::GetACARSData()) instanceof Countable) { echo count(ACARSData::GetACARSData()); }?>
I don't have frontpage_map.php line 17 in front of me right now, but the fix is very similar to the above
<?php if(is_array(...call after 'count') || (...call after 'count') instanceof Countable) { .... probably an echo line; }?>
If you need the fix for frontpage_map.php to be more specific, you will need to post the code for that line here first.
Chances are you may encounter these 'count' warning errrors again in different modules. For the most part, the fix is the same.
The above changes only apply to PHP 7 and above.
-
What version of phpVMS are you using?
What PHP version are you using? I'm betting version 7.x
How to migrate to a new web host
in Support Forum
Posted
What version of PHP is your free hosting using?
Site URL?