Jump to content

[SOLVED] No ACARS is connected to VA (Login error)


CarlosEduardo2409

Recommended Posts

Hello again, I have a new mistake now that is hurting my head too. Now it's in ACARS, what happens is that whatever ACARS I try to connect it doesn't work. Always in the login part. Already searched for every topic in the forum, I found several with the same errors, but none had solution.

 

Observations:

  • I put the module folder correctly in core/modules, as requested in each ACARS;
  • I open the program as an administrator;
  • The credentials are correct, have been tested on the site and work perfectly;
  • Crewcenter Skin: Custom Skin;
  • phpVMS Version: 5.5.2.72 (from ProAvia);
  • PHP Version: 7.2.24;
  • MySQL Version: 10.2.29-MariaDB.

 

Some images of the errors:

APVacars (from Vangelis):

TDRW3fT.png

qc49miV.png

 

cACARS (from CrazyCreatives):

U1hzstD.png

nXD0NKo.png

 

CCFTracker (from CrazyCreatives):

fX9iDpI.png

 

NOTE: I didn't try kACARS because probably as you already know, Jeff probably broke up with this project, so I didn't find any download links for the client.

 

Any help I appreciate it.

Thanks, Carlos.

Edited by CarlosEduardo2409
Link to comment
Share on other sites

  • Administrators

A couple possibilities...

  1. It looks like you are using SSL/TLS certificate on your site... so use https instead of http in the base URL
  2. Intead of .....//crew.virtual.net - use ....//virtualair.net/<path to phpvms install folder>

Do you have error logging enabled and are there any error showing in error_log?

Link to comment
Share on other sites

3 hours ago, ProAvia said:

A couple possibilities...

  1. It looks like you are using SSL/TLS certificate on your site... so use https instead of http in the base URL
  2. Intead of .....//crew.virtual.net - use ....//virtualair.net/<path to phpvms install folder>

Do you have error logging enabled and are there any error showing in error_log?

Hello @ProAvia!

 

So, I already tried using https instead of just http but the same errors happened. And since phpVMS is in a subdomain, it is located at /home/user/crew.virtualair.net - virtualair.net is located in /home/user/virtualair.net

That is, phpVMS is not inside the main domain folder, so I believe there is no way I can put the main domain with the phpVMS location, like you said: virtualair.net/crew.virtualair.net

 

I have active error_log, and related to ACARS only appears this:

Quote

PHP Warning: include_once(/home/user/crew.virtualair.net/core/modules/ACARS/kacars.php): failed to open stream: No such file or directory in /home/user/crew.virtualair.net/core/modules/ACARS/ACARS.php on line 51

PHP Warning: include_once(): Failed opening '/home/user/crew.virtualair.net/core/modules/ACARS/kacars.php' for inclusion (include_path='.:/opt/cpanel/ea-php72/root/usr/share/pear') in /home/user/crew.virtualair.net/core/modules/ACARS/ACARS.php on line 51

 

I also tried to open the module file in a google tab, this error popped up:

Quote

PHP Fatal error: Class 'CodonModule' not found in /home/user/crew.virtualair.net/core/modules/APVacars/APVacars.php on line 22

I believe it is nothing much, because any module file that I try to open it appears this error.

Link to comment
Share on other sites

I found the error but I can't solve it. The error is in SSL/TLS certificate. I have the SSL certificate installed in my subdomain, but that alone was not enough to make it secure. What I did to make it safe was:

1. Go to core/local.config.php and change http to https at SITE_URL;

define('SITE_URL', 'https://crew.virtualair.net');

2. Access .htaccess and add the following code to force users to enter the link with https:

RewriteEngine On 
RewriteCond %{HTTPS} !on 
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$ 
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ 
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

 

This made my site secure. But at the same time he is not letting ACARS work. 

So if I go back and take these two steps I did above to make my website secure, it comes back with the warning that the website is not secure and takes the redirection to https, thus making ACARS work.

However, I didn't want to remove them, I wanted ACARS to work even with these codes above to make the site safe, but I'm not getting any ideas.

 

Does anyone have a solution?

Edited by CarlosEduardo2409
Link to comment
Share on other sites

  • Administrators

Yeah, the rewrite code you show forces any http to automatically become https

Regardless of subdomains, what is the full path to the phpVMS install? And where does the actual virtualair.net domain name point to in the folder structure?

I think most sites with crew center type skins still have the normal installed folder and have /crew within that installed folder (not to be confused with the install folder in the phpVMS folder structure - which you should have deleted after installation). Mine is:

/home/<user>/public_html/<VA_name>/phpvms/<phpvms_installation>
  
And any/all skins (CrewCenter inclued) are in:
  
/home/<user>/public_html/<VA_name>/phpvms/<phpvms_installation>/lib/skins/<all_skins_folders_here>

Could be your folder structure isn't supposed in any of the ACARS clients

Yes, you should go thru all the files and change any calls mentioning http to https - no need to do the URL's in the comments sections though. My bet is something is blocking the ACARS clients from accessing the site do to an http call when it should be https.

Link to comment
Share on other sites

1 hour ago, ProAvia said:

Yeah, the rewrite code you show forces any http to automatically become https

Regardless of subdomains, what is the full path to the phpVMS install? And where does the actual virtualair.net domain name point to in the folder structure?

I think most sites with crew center type skins still have the normal installed folder and have /crew within that installed folder (not to be confused with the install folder in the phpVMS folder structure - which you should have deleted after installation). Mine is:


/home/<user>/public_html/<VA_name>/phpvms/<phpvms_installation>
  
And any/all skins (CrewCenter inclued) are in:
  
/home/<user>/public_html/<VA_name>/phpvms/<phpvms_installation>/lib/skins/<all_skins_folders_here>

Could be your folder structure isn't supposed in any of the ACARS clients

Yes, you should go thru all the files and change any calls mentioning http to https - no need to do the URL's in the comments sections though. My bet is something is blocking the ACARS clients from accessing the site do to an http call when it should be https.

 

My directories are located like this:

Main domain directory (virtualair.net):
/home/<user>/public_html/<all files from main domain>

phpVMS installation directory (Subdomain - crew.virtualair.net):
/home/<user>/crew.virtualair.net/<all files from phpvms)

* Example from phpVMS installation: /home/<user>/crew.virtualair.net/lib/skins/<skin_folder>

 

I know that it is not a domain localization problem, because I created another subdomain from scratch for testing and there ACARS works. This is the subdomain test directory:

/home/<user>/test.virtualair.net

That is, it is the same thing as the crewcenter domain. There, ACARS works perfectly. However, the site is without SSL redirection (which is the code below that I put in .htaccess), but if I add the code, it stops working. So the error is in this redirection.

RewriteEngine On 
RewriteCond %{HTTPS} !on 
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$ 
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ 
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

 

Link to comment
Share on other sites

@ProAvia Yes you are right, he must go through every single file for the correct url. Why I don't use SSL, theres other methods, like sitelock . Any way, the point of this post is simple.

You need to check also the one header.php file in /admin/lib/layout/header.php ......This one file points to http:// change all of it to https:// period. Try this first. This usually works for any SSL's.

Have you by chance in the Server, the php.ini file, if YOU KNOW WHAT YOUR doing.... you'll see this [fs_open]="false" something like that, depends on your host, this should be True on all occasions for phpvms in the php.ini file. there should around 4 different lines pertaining to this, if its closed, (false), then the Server can't open up the url data call. 

Jim

Link to comment
Share on other sites

  • Administrators
4 hours ago, CarlosEduardo2409 said:

 


RewriteEngine On 
RewriteCond %{HTTPS} !on 
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$ 
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ 
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

 

Try this for the URL rewrite.

# BEGIN - force use of SSL/HTTPS
RewriteEngine On
RewriteCond %{HTTP_HOST} <domain here> [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.<domain here>/$1 [R,L]
# END - force use of SSL

Where <domain here> = virtualair.net

I have used that on 3 different sites/domains with success.

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