AlexS Posted August 20, 2013 Report Share Posted August 20, 2013 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 Quote Link to comment Share on other sites More sharing options...
StartVM Posted August 20, 2013 Report Share Posted August 20, 2013 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 Quote Link to comment Share on other sites More sharing options...
AlexS Posted August 20, 2013 Author Report Share Posted August 20, 2013 Didn't work Thanks for your suggestion though Chase - Alex Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted August 21, 2013 Moderators Report Share Posted August 21, 2013 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. 1 Quote Link to comment Share on other sites More sharing options...
AlexS Posted August 24, 2013 Author Report Share Posted August 24, 2013 This is my problem: Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted August 24, 2013 Moderators Report Share Posted August 24, 2013 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. Quote Link to comment Share on other sites More sharing options...
AlexS Posted August 24, 2013 Author Report Share Posted August 24, 2013 I searched for schedules_results.tpl. There is no sign of it anywhere in my file manager. Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted August 25, 2013 Moderators Report Share Posted August 25, 2013 It's in core/templates. 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 Quote Link to comment Share on other sites More sharing options...
AlexS Posted August 25, 2013 Author Report Share Posted August 25, 2013 So what do I do with the schedules_results.tpl? Meaning what should I edit or what should it look like? Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted August 26, 2013 Moderators Report Share Posted August 26, 2013 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. Quote Link to comment Share on other sites More sharing options...
AlexS Posted August 26, 2013 Author Report Share Posted August 26, 2013 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. Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted August 26, 2013 Moderators Report Share Posted August 26, 2013 download the software from phpvms.net unzip the download and get from core/templates then upload it in the skin folder. Quote Link to comment Share on other sites More sharing options...
AlexS Posted August 26, 2013 Author Report Share Posted August 26, 2013 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: Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted August 26, 2013 Moderators Report Share Posted August 26, 2013 Would you like to give me access to your cpanel and your website so that I can figure out the problem? Quote Link to comment Share on other sites More sharing options...
AlexS Posted August 27, 2013 Author Report Share Posted August 27, 2013 Yes....please pm me Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted September 1, 2013 Moderators Report Share Posted September 1, 2013 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. 1 Quote Link to comment Share on other sites More sharing options...
AlexS Posted September 2, 2013 Author Report Share Posted September 2, 2013 Thank you Parkho Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.