HCStrike
-
Posts
72 -
Joined
-
Last visited
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Posts posted by HCStrike
-
-
No more than $50, I would prefer if possible a fully custom one as I am setting up a VA for Shared Cockpit and I would like it to be integrated into flying shared cockpit
-
Hi,
Is there anyone that can make a custom ACARS tracker for my VA for a cheap budget?
Thanks
-
Posting the link once will do.... and I dont think you understand how a Rank Structure works... the CEO is the highest position because the chairman is on the BoG and simply overlooks the airline and just supports the CEO
-
VACentral is down at the moment
-
1 hour ago, Imanol said:
I don't know exactly because my virtual airlines operates regular flights only.
I was just giving an example of another error, if you find a solution please post here
-
3 hours ago, Imanol said:
Hi HCStrike,
We do not have charter flights, we are not having problem with biding flights. The issue occurs when I want to file a pirep. Thank you.
I have the same issue, if you try bidding charter flights you should have the same issue I do
-
@Imanol, I have the exact same issue. When you create charter flights, do they display in the bids section after you create it?
If not I have an ongoing ticket with TFDi where they are trying to help me fix it. If I find a solution I'll tell you
-
Just now, AJCWebServices said:
Ah ok because I have another thread where I thought it was my weather map that was causing the problem. But it turn out that it was my key being called multiple times. When you right click on your page and click Inspect then Console are you getting the report of key being called multiple times. If you are try my fix above
Nope, I dont get that error, thanks anyways
- 1
-
1 minute ago, AJCWebServices said:
I think I have found a fix for this @web541 @HCStrike Remove your
<script async defer src="https://maps.googleapis.com/maps/api/js?key=PLACE YOURKEY IN HERE&callback=initMap"></script>
from your core_htmlhead.php and put into your acarsmap.php just before
<script type="text/javascript"> var acars_map_defaults = { autozoom: true, zoom: 4, mapTypeId: google.maps.MapTypeId.TERRAIN, refreshTime: 10000 }; </script>
Its a crew center error that is calling the scripts multiple times.
I think my issue is that smartCARS is not actually working as when I file a PIREP it looks like it gets filed on smartCARS but does not appear on phpVMS
-
7 hours ago, web541 said:
Ok, can you log into smartCARS and then look in your database for the table called smartcars_sessions and see if there is anything in there.
There are 17 entries
-
43 minutes ago, web541 said:
smartCARS shouldn't be any different as long as it is being reported. Check here for the official smartCARS log and you should be able to get something out of it. Also, are you getting any bids from your website in smartCARS, or are you able to file a PIREP? If not, then it may be an issue to do with the linking of your smartCARS folder to the client. If you've done all of this, then check the logs to see if it is a PHP or SQL error.
I've checked the smartCARS logs and I can only see 1 error that might mean something which was "[WARN] There was an unknown response in the delete backed up flight worker. The response was: AUTH_FAILED". The bids show up in smartCARS but then when a PIREP is filed, it does not show up on phpVMS
-
Just now, AJCWebServices said:
Sorry I am at a loss then. I hope you find a solution
Thanks anyways
-
1 minute ago, AJCWebServices said:
Hmm ok because it was my weather map . Also what I done was put my co-ordinates into my acars.js file to match the co-ordinates in my localconfig
var defaultOptions = { autozoom: true, zoom: 4, center: new google.maps.LatLng(50.007739,9.580078), mapTypeId: google.maps.MapTypeId.TERRAIN, refreshTime: 12000, autorefresh: true };
Thats what I have in my acarsmap.js and those coordinates are the same as my local.config file
-
Just now, AJCWebServices said:
This sounds like an error I had also. Are you using Crewcenter and by any chance do you have a weather map on the same page
I am using the crewcenter but no I do not have a weather map
-
10 hours ago, web541 said:
Glad to help!
So the map works but I still cannot see any flights on it, there is a flight running at the moment and it is not showing on my map. There are no entries in the logs, I am using smartCARS
-
5 hours ago, web541 said:
Ok I was able to reproduce this error.
Try the following:
-
Go to lib/skins/crewcenter/core_htmlhead.php and change your google maps api reference to this
<script src="https://maps.googleapis.com/maps/api/js?key=YOURKEYHERE"></script>
Notice there's no async defer in the script reference as it is waiting to asynchronous load the map via the &callback function, because phpVMS is programmed in a way that it loads after the page, not with it (i.e. there's no function init() to load). This seemed to fix it for me.
-
Also in lib/skins/crewcenter/acarsmap.php add this back in
<script type="text/javascript"> var acars_map_defaults = { autozoom: true, zoom: 4, center: new google.maps.LatLng("<?php echo Config::Get('MAP_CENTER_LAT'); ?>", "<?php echo Config::Get('MAP_CENTER_LNG'); ?>"), mapTypeId: google.maps.MapTypeId.TERRAIN, refreshTime: 10000 }; </script>
And it should be fixed, report any further issues back here.
That seems to have done the job, thank you very much
- 1
-
Go to lib/skins/crewcenter/core_htmlhead.php and change your google maps api reference to this
-
1 hour ago, web541 said:
First try removing this line
mapTypeId: google.maps.MapTypeId.TERRAIN,
Also try replacing your <script> (the one with the api key) with https:// instead of http://
Also try this link
<script type="text/javascript" src="https://maps.google.com/maps/api/js?key=YOUR_KEY_HERE&sensor=true"></script>
I've made all those changes and it is still the same error, although there is a new warning saying sensor is not required
-
1 minute ago, web541 said:
Ok thanks, that gives me a better idea. Try placing this in lib/skins/YOURSKINNAME/acarsmap.php
<script type="text/javascript"> var acars_map_defaults = { autozoom: true, zoom: 4, mapTypeId: google.maps.MapTypeId.TERRAIN, refreshTime: 10000 }; </script>
Without the center, it might fix it. At the moment, it is still looking for the 'defaults'.
Done that and its brought back the same errors
-
4 minutes ago, web541 said:
Can you please replace all content in lib/js/acarsmap.js with this https://raw.githubusercontent.com/DavidJClark/phpvms_5.5.x/master/lib/js/acarsmap.js I can see that you have not done it yet, the rest seems to be fine. Can you also try removing this out of lib/skins/YOURSKINNAME/acarsmap.php
<script type="text/javascript"> var acars_map_defaults = { autozoom: true, zoom: 4, center: new google.maps.LatLng("<?php echo Config::Get('MAP_CENTER_LAT'); ?>", "<?php echo Config::Get('MAP_CENTER_LNG'); ?>"), mapTypeId: google.maps.MapTypeId.TERRAIN, refreshTime: 10000 }; </script>
But please copy the contents of the above first, that will fix one error, you seem to have overwritten it in a step above.
I have replaced the content of the acarsmap.js and also removed the required code, still the same and now the map doesnt appear at all
-
3 minutes ago, web541 said:
Nope, you've done it in the wrong file.
Follow these steps:
- Go to lib/js/acarsmap.js and replace all content with this https://raw.githubusercontent.com/DavidJClark/phpvms_5.5.x/master/lib/js/acarsmap.js
-
Go to lib/skins/YOURSKINNAME/acarsmap.php find this
<script type="text/javascript"> var acars_map_defaults = { autozoom: true, zoom: 4, center: new google.maps.LatLng("50.007739", "9.580078"), mapTypeId: google.maps.MapTypeId.TERRAIN, refreshTime: 10000 }; </script>
And replace it with this
-
<script type="text/javascript"> var acars_map_defaults = { autozoom: true, zoom: 4, center: new google.maps.LatLng("<?php echo Config::Get('MAP_CENTER_LAT'); ?>", "<?php echo Config::Get('MAP_CENTER_LNG'); ?>"), mapTypeId: google.maps.MapTypeId.TERRAIN, refreshTime: 10000 }; </script>
Go to core/local.config.php and find these (or similar)
Config::Set('MAP_CENTER_LAT', '45.484400'); Config::Set('MAP_CENTER_LNG', '-62.334821');
And replace it with these
-
Config::Set('MAP_CENTER_LAT', '50.007739'); Config::Set('MAP_CENTER_LNG', '9.580078');
Check the outcome
I've done all that and it is still the same problem
-
2 minutes ago, web541 said:
In your acarsmap.php file, find this
center: new google.maps.LatLng("50.007739", "9.580078"),
Replace it with this
center: new google.maps.LatLng(50.007739, 9.580078),
See if that works
Nope, still only works after a refresh
-
3 minutes ago, web541 said:
Yes, go to lib/js/acarsmap.js and replace all its contents with this
https://raw.githubusercontent.com/DavidJClark/phpvms_5.5.x/master/lib/js/acarsmap.js
And see if that works. If it breaks your map center, then we can fix that later.
Nope, still getting this error
Uncaught ReferenceError: google is not defined at acarsmap.js:30
-
2 minutes ago, web541 said:
No, if your debugging logs were not enabled in the local.config.php file, then the logs won't record anything until they are enabled, so you would have to wait until yo have enabled them and you've started a flight.
They were enabled but they were enabled on 2 instead of 1. Also do you know how I can fix the map not loading until I refresh the page
-
1 minute ago, web541 said:
Yeah, the logs will only show if there are flights active.
But shouldn't the logs show from what I had yesterday?
Custom ACARS Tracker
in Paid Services
Posted
How much do you think one would cost?