Jump to content
PetitJedi

Pilots detail : empty (SOLVED)

Recommended Posts

Hi all,

I met a little trouble.

Indeed, I have the list of pilots (pilots & group --> view all pilots)  that appears in my dashboard.

But when I click on "edit", I have an empty page

I reloaded the files to see if I had a problem but nothing to do1522158268-capture.png

have you ever encountered this type of problem?

I'm in phpvms 5.5.2

Php 5.6

Thanks for you help

 

Best Regards

Laurent

Edited by PetitJedi

Share this post


Link to post
Share on other sites

for information, the server is switched to https. I modified in the ADMIN directory the core_htmlhead.php file to add the S to ajax calls.

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.0/jquery-ui.min.js"></script>

Share this post


Link to post
Share on other sites
<?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?>
<script type="text/javascript">
var baseurl="<?php echo SITE_URL;?>";
var airport_lookup = "<?php echo Config::Get('AIRPORT_LOOKUP_SERVER'); ?>";
var phpvms_api_server = "<?php echo Config::Get('PHPVMS_API_SERVER'); ?>";
</script>

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.0/jquery-ui.min.js"></script>
<script type="text/javascript" src="<?php echo fileurl('lib/js/jqModal.js'); ?>"></script>
<script type="text/javascript" src="<?php echo fileurl('lib/js/jquery.form.js'); ?>"></script>
<script type="text/javascript" src="<?php echo fileurl('lib/js/jquery.bigiframe.js'); ?>"></script>
<script type="text/javascript" src="<?php echo fileurl('lib/js/jquery.metadata.js'); ?>"></script>
<script type="text/javascript" src="<?php echo fileurl('lib/js/ckeditor/ckeditor.js'); ?>"></script>
<script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=true"></script>
<script type="text/javascript" src="<?php echo SITE_URL?>/admin/lib/phpvmsadmin.js"></script>

<link rel="alternate" type="application/rss+xml" title="RSS" href="<?php echo SITE_URL?>/lib/rss/latestpireps.rss">
<?php 
if(isset($MODULE_HEAD_INC))
	echo $MODULE_HEAD_INC;
?>

Try this..

Share this post


Link to post
Share on other sites

sorry Hash..

it's the same result 😢

I have the pilote list... but when i clic on EDIT... i have a empty result

for info it was already the content of my core_htmlhead.php

Edited by PetitJedi

Share this post


Link to post
Share on other sites

In your picture above in the lower right corner there is a yellow triangle with the number 2 next to it. Have you checked the console to see what that error or message is?

Share this post


Link to post
Share on other sites

i have 3 red item and 2 yellow

 

Failed to load resource: net::ERR_UNKNOWN_URL_SCHEME
viewpilots?action=viewoptions&pilotid=2:1 Unchecked runtime.lastError: The message port closed before a response was received.
viewpilots?action=viewoptions&pilotid=2:1 Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.


util.js:219 Google Maps JavaScript API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys
uw.m @ util.js:219
util.js:219 Google Maps JavaScript API warning: SensorNotRequired https://developers.google.com/maps/documentation/javascript/error-messages#sensor-not-required
uw.m @ util.js:219

for me this is not the problem since it is the MAPS calls

 

thx for your help

Share this post


Link to post
Share on other sites

What browser are you using? Have you tried that page using another browser?

 

Share this post


Link to post
Share on other sites

Can you try with IE or Edge?

Or in Chrome - disable any plug-ins and test again?

 

Edited by ProAvia

Share this post


Link to post
Share on other sites

When you hover over or click edit, does it go to the following URL? <...> will be specific to your site and the pilot id you are editing.

https://<SITE URL & PHPVMS DIRECTORY>/admin/index.php/pilotadmin/viewpilots?action=viewoptions&amp;pilotid=<PILOT ID>

Edited by ProAvia

Share this post


Link to post
Share on other sites

I tested with all browsers, I disabled all but the result is the same.

the empty url is precisely that url that you ask me to test ... and it's empty

Share this post


Link to post
Share on other sites

In admin/templates do you have a file named pilots_detailtabs.php?

And does your admin account have full admin access?

Edited by ProAvia

Share this post


Link to post
Share on other sites

Strange issue - sorry, I'm out of ideas. Hopefully someone else will have some ideas for you.

Share this post


Link to post
Share on other sites

We installed a SSL certificate and converted references from http to https without a complete reinstall. It can be quite easily done - no need to reinstall.

Share this post


Link to post
Share on other sites

Thank you for your answers.
All the site, front and backoffice is accessible without problem in https.
All the admin part too. There is only driver management .. only when I click on EDIT.
all the other changes in the admi made it without problem.
Just the driver edition ... and I can not understand why :(

Share this post


Link to post
Share on other sites

I think this might help:

STEP 1 Download http://findandreplace.io/downloads/fnr.zip

STEP 2 : Download your phpvms folder on your computer.

STEP 3 : Open fnr, point source folder to the phpvms folder you downloaded on computer

STEP 4 : In find section, find for http:// and in replace section put https://

STEP 5 : Click on Replace, and import the files to FTP again

Share this post


Link to post
Share on other sites

hi !

I had already changed all http (excluding .js files)
I did what you proposed, to be sure I did not forget anything ... but it did not change anything .. still no pilots data :(

Share this post


Link to post
Share on other sites

I advance a little .... I even solved :)

I just saw an error in the logs that could, perhaps, be the cause of the worries

PHP Fatal error: Class 'AwardsData' not found in ../public_html/crew/admin/modules/PilotAdmin/PilotAdmin.php on line 413


and at the line I have:

 

Quote

$ this-> set ('allawards', AwardsData :: GetPilotAwards ($ this-> get-> pilotid));

 

I went to see /public_html/crew/core/common/AwardsData.class.php
and he had a strange head ..
I deleted the file and replaced it with a clean file ... and there ... ENJOY B)

I want to thank everyone who helped me and gave me some research
A big thanks to all of you

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×