Jump to content

Recommended Posts

Posted

Hey Guys,

For the past couple months, I have been having trouble with my flight schedules, they do not show up under the Schedules tab when logged in. My admin center shows that all of my schedules are active and inactive. I've also done these instructions by Nebeel;

Find this:

if(strpos($route->daysofweek, date('w')) === false)

continue;

Right above that, add:

/* Check if a 7 is being used for Sunday, since PHP

thinks 0 is Sunday */

$route->daysofweek = str_replace('7', '0', $route->daysofweek);

I've updated the default template to handle this

These instructions can be found here: http://forum.phpvms.net/topic/2698-flight-schedule-is-not-showing-up/

The instructions do not work at all for me. I also looked in my error log and there is nothing.

Thanks for any help I receive,

- Alex

Posted

Hello Alex,

Go to Core/local.config.php and under Config::Set('SESSION_LOGIN_TIME', (60*60*24*30)); # Expire after 30 days, in seconds around line 143 make sure that this is under it.

/* Days of the Week

The compacted view, and the full text

DON'T CHANGE THE ORDER!! And yes, Sunday is in there twice

*/

Config::Set('DAYS_COMPACT', array('Su', 'M', 'T', 'W', 'Th', 'F', 'S', 'Su'));

Config::Set('DAYS_LONG',

array('Sunday',

'Monday',

'Tuesday',

'Wednesday',

'Thursday',

'Friday',

'Saturday',

'Sunday'

)

);

Hope I could help!

-Chase

  • Moderators
Posted

Alex,

The most common issue with schedules not showing up is the days schedules are set for, so make sure of that. If you're getting error messages please post them here. If you don't get errors and you'll see schedules listed up partially then I think the issue goes back to days of week. If you have uploaded a .csv file with your schedules, there might be some fault data inserted into DB. I suggest you re insert schedules table. The last think I would suggest to you is to reinstall phpVMS.

:)

  • Like 1
  • Moderators
Posted

Where do you have your "schedules_results.tpl"? Because I think you have skin problem. Switch to default skin and see if your problem persists.

  • Moderators
Posted

It's in core/templates. :D If you don't have it there, look into lib/skins/skinfolder(ex. crystal). If you don't have it there either then you're missing that file and that's the reason your schedules don't show up ;)

  • Moderators
Posted

Have you tried the default skin?

If yes and you still have trouble then try adding a copy of your schedule_results.tpl into your skin folder in lib/skins/skinfolder(ex. crystal).

Have you edited or added any codes in schedule_results.tpl recently?

if yes try rolling it back or upload the default file and overwrite it.

Posted

Tried all your directions. My default skin is crystal, so I tried it. Did not work. Then I made a copy of schedules_results.tpl and placed it in lib/skins/crystal

After that, it still does not work. I'm not sure if I made changes to the schedules_results.tpl. If so, I do not remember. I've looked around for a default copy of schedules_results.tpl and cannot find one.

Posted

I've figured out something! I'm started to fix the issue maybe...Now when I click on the name of one of the departure airports, depending on the day, it will say no routes have been found, or the actual flight info. I've also looked in my schedules in the admin panel, and when it says no routes have been found, that flight isn't on for today. But flights that are on for today has the Flight Info and Options Tab up, but the schedule is not there. This is what I mean:

post-5920-0-22814500-1377558941_thumb.png

post-5920-0-71073000-1377558943_thumb.png

  • Moderators
Posted

This issue has been resolved. Now the problem was that they had a lot of bids on their schedules which haven't been deleted for a while and that was the main reason the schedules didn't show up. To resolve these, anybody with the same issue has to make sure the bids get deleted from time to time in order for the other pilots to be able to view the flights. Another way would be to change the following configuration from "True" to "False" in "core/local.config.php" but I strongly suggest that you go with the first way.

Config::Set('DISABLE_SCHED_ON_BID', true);

Second issue with schedules not showing up properly would be the days of the week and that means if the schedule is not set for today it simply don't show up.

Third issue with schedules not showing up would be that some schedules somehow don't get updated on PIREP submission and the bid column in DB for schedules table, doesn't change from "1" to "0". To resolve this issue you just have to simply change that manually.

Of course there might be some other issues in this regard but these are the most common ones.

  • Like 1

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