Jump to content

Airports cannot be loaded when creating flights


N730AN

Recommended Posts

Hi everyone! I am new to phpVMS and website creation, so please excuse me, but this is completely stumping me. I have added EGLL and KIAD in the airports section, but when I try to create new flights, I cannot find these airports in the dropdowns. I already checked that my .env APP_URL is correct for the mySQL databse, but I'm not sure what else could be causing this. Does anyone have any ideas? Your help is much appreciated.

 

image.thumb.png.8d30a388390a760b1c91fa448e998a31.png

image.png.f42885f009803a7f5963a6e6d48018c0.png

Link to comment
Share on other sites

13 hours ago, N730AN said:

Hi everyone! I am new to phpVMS and website creation, so please excuse me, but this is completely stumping me. I have added EGLL and KIAD in the airports section, but when I try to create new flights, I cannot find these airports in the dropdowns. I already checked that my .env APP_URL is correct for the mySQL databse, but I'm not sure what else could be causing this. Does anyone have any ideas? Your help is much appreciated.

 

image.thumb.png.8d30a388390a760b1c91fa448e998a31.png

image.png.f42885f009803a7f5963a6e6d48018c0.png

 

Did you read this post ?

 

 

It explains the possible causes and solutions. I bet it is just a CORS issue on your end.

 

Good luck

Link to comment
Share on other sites

26 minutes ago, DisposableHero said:

Specially this post and forward, last post also helps

 

 

 

Hi, I already looked at both of these posts and haven't been able to fix the error still. Something I've noticed is that in their screenshots the dropdown says "Searching..." but for me the dropdown says Searching for a little bit and then just says The results could not be loaded.

 

I already verified that my APP_URL says https and then the URL of my website. Could there be any other possible CORS issue? Should the APP_URL be <website URL>/phpvms instead of <website URL>?

 

Thank you so much for your help. I am using disposable theme and it looks splendid!

Link to comment
Share on other sites

You can check your browser console for CORS errors, if it is there you need to be sure the url you are using.

 

As an example, if your site is using https://... in your .env file, then you should be visiting your https:// site (or vice versa). Best way to understand this is the browser console (press F12 when the error occurs).

 

APP_URL should point where your v7 root is, if it is installed under a folder called /phpvms then of course your APP_URL should point that folder. If you share your url we can check too.

 

https://www.yoursite.com/phpvms => APP_URL = 'https://www.yoursite.com/phpvms'
https://crew.yoursite.com => APP_URL = 'https://crew.yoursite.com' 

 

That simple is the logic.

 

Hope this helps

Link to comment
Share on other sites

1 hour ago, DisposableHero said:

You can check your browser console for CORS errors, if it is there you need to be sure the url you are using.

 

As an example, if your site is using https://... in your .env file, then you should be visiting your https:// site (or vice versa). Best way to understand this is the browser console (press F12 when the error occurs).

 

APP_URL should point where your v7 root is, if it is installed under a folder called /phpvms then of course your APP_URL should point that folder. If you share your url we can check too.

 

https://www.yoursite.com/phpvms => APP_URL = 'https://www.yoursite.com/phpvms'
https://crew.yoursite.com => APP_URL = 'https://crew.yoursite.com' 

 

That simple is the logic.

 

Hope this helps

I solved the problem by opening the console - there was an extra + in the airport_search.blade.php file. Thank you so much for your help!!

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...
6 hours ago, jonbeckett said:

Do you ever get max_connections issues with your template?  I've just been digging through laravel to see how it arranges mysql connections - to see if they're pooling their connections or not - still digging lol

 

No I don't, never got one.

 

And honestly, I think this should be in a separate topic, not something under another problem.

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...