Jump to content

simpilot

Administrators
  • Posts

    2773
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by simpilot

  1. There are no LoA requests.

    Warning: fgetcsv() expects parameter 1 to be resource, boolean given in /membri/wwwcubanavirtual/phpvms/admin/modules/LoA/LoA.php on line 83

    Warning: fclose(): supplied argument is not a valid stream resource in /membri/wwwcubanavirtual/phpvms/admin/modules/LoA/LoA.php on line 84

    any help, thanks

    Answer is right above your post. The page it is looking for is not there - 404 error

  2. I messed with this some and frankly I am surprised that this has ever run correctly. When the script is used it is assigning a pilot id of "0" and then flushing any old sessions, which would not mean much to a cronjob but without some type of authorization there is no way the last couple of items will be run as long as they are looking for proper permissions. It needs to be rewritten.

    The checkPermissions() items are within the PilotGroups class if you are still looking for them.

    • Like 1
  3. I think you have two issues....

    The pilot data should be updating in the database and should not have anything to do with file permission errors. I would guess there is an error in the script somewhere in that process or a corrupt file, or possibly even the script and/or database being updated to a new version with the other not.

    For editing pages, have you also set the page files themselves to the proper permissions? BTW - The folder should be 0755 and the files 0644

  4. Have you added a line to the start of the file? The default one has that on line 26 not 27. -> https://github.com/DavidJClark/phpvms_5.5.x/blob/master/admin/maintenance.php

    Did the file get uploaded during your upgrade?

    Did the upload fail for that file possibly?

    Have you tried uploading it again and see if you get the same error?

    How are you running it? (direct link, cronjob, or?)

    If you are running it as a direct link, are you logged in when you do it?

  5. Just use the airline code option (screenshot below of an example) to give the flight the correct ICAO code for the airline then create some images that are named the same as the code.

    ie: UAL.png - AAL.png - etc..

    Then in your template you can use something like,

    <img src="PATHTOMYIMAGE/<?php echo $schedule->code; ?>.png" alt="<?php echo $schedule->code; ?>" />
    

    You will have to adjust the variable to whatever it is declared as in the template you are using.

    That is how I have done it in the past.

    post-198-0-09404900-1423948155_thumb.png

    • Like 1
  6. All the map issues look like they are javascript related to me. I have attached a couple of pics from Firebug that show a couple of the errors. Looking at your source on the page I would take a good look at the order in which you are loading jQuery. I have run into similar issues using bootstrap, which it looks like you are using as well. The jQuery version that bootstrap uses will not support some of the code written for phpVMS and you will need to make adjustments to your phpvms.js file to support them, especially the map features.

    As far as your Screenshots error, I am guessing that there is some discrepancy between what is in the screenshot database and what is actually in the /pics folder that holds the actual images.

    post-198-0-68840000-1423947642_thumb.png

    post-198-0-33199000-1423947650_thumb.png

  7. I am not exactly sure what you are trying to accomplish with the code you have posted. I think that a couple of things might help you though.

    1 - Get rid of the function in your template.

    2 - create your variable array ($Numbers) outside, but before the foreach loop, or even better in your controller and then pass the variable to the template.

    3 - just put the base code in your table line where you need it, something like:

    <td><?php echo strtr($flight->flightnum, $Numbers); ?></td>
    

    4 - another thing that may be causing you issue is that the $flight-flightnum possibly has some alpha characters at the start, i am not sure what it holds in that template.

    Just my opinion but you should also get those database calls out of your template and into a model somewhere.

×
×
  • Create New...