jpatokal / openflights

Website for storing flight information, rendering paths on a zoomable world map and calculating statistics, with plenty of free airline, airport and route data.
http://openflights.org
GNU Affero General Public License v3.0
1.37k stars 387 forks source link

Can't upload from FlightMemory #1461

Open JamiesonB12 opened 5 months ago

JamiesonB12 commented 5 months ago

Hi, I have not been able to upload flight data from FlightMemory HTML files when I tried today.

Here is the message I get:

Upload successful. Parsing... Results Tmpfile phpvYTcMw

Although it says 'successful', it is not uploading.

Would you be able to assist?

Thank you!

Adam-C-Smith commented 5 months ago

Same issue with uploading from a CSV file as well.

reedy commented 5 months ago

Something going on server side, the file seems to work fine locally

Screenshot 2024-01-12 at 19 04 39

reedy commented 5 months ago

Do you have any EconomyPlus flights in your list?

I think from the fm.html I have saved here, you do...

Which can result in some PHP warnings:

PHP message: PHP Warning:  Undefined array key "EconomyPlus" in /var/www/openflights/php/import.php on line 807; PHP message: PHP Warning:  Undefined array key "EconomyPlus" in /var/www/openflights/php/import.php on line 807" while reading response header from upstream,

Should it be mapped to Economy or Premium Economy?

Economy plus is a slightly upgraded economy experience, while premium economy is its own cabin with elevated service on international flights.

Adam-C-Smith commented 5 months ago

I'm not sure whether that question is directed at me or at @JamiesonB12 . I found that while I was unsuccessful at uploading a file several times on the day I reported the issue, it worked fine the next day, and I've subsequently uploaded other CSV files without problems. The EconomyPlus issue would not apply to me though.

JamiesonB12 commented 4 months ago

Do you have any EconomyPlus flights in your list?

I think from the fm.html I have saved here, you do...

Which can result in some PHP warnings:

PHP message: PHP Warning:  Undefined array key "EconomyPlus" in /var/www/openflights/php/import.php on line 807; PHP message: PHP Warning:  Undefined array key "EconomyPlus" in /var/www/openflights/php/import.php on line 807" while reading response header from upstream,

Should it be mapped to Economy or Premium Economy?

Economy plus is a slightly upgraded economy experience, while premium economy is its own cabin with elevated service on international flights.

Thanks @reedy it should be mapped to Premium Economy. If that's the issue I can adjust the entries on Flight Memory to Economy (there are not a lot) to avoid the warnings.

JamiesonB12 commented 4 months ago

I have just changed my Economy Plus flights to Business and tried to upload again. Still not working. Below is the message I got:

Upload successful. Parsing... Results Tmpfile phpghXCHS

reedy commented 4 months ago

There's two issues here, I think.

One is the lack of mapping, which is trivially enough fixed... And wouldn't probably stop the upload (as seen by it working locally)...

Second is whatever the openflights.org server is doing, but I don't have access, so can't check the logs etc to see

IADflyer commented 3 months ago

Same issue