Jump to content

TAV1702

Members
  • Posts

    1954
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by TAV1702

  1. Hey just out of curiosity, what is the online staff page for and how do we see it? I should be blushing I am sure. More than likely I am just overlooking something here.
  2. I actually just went to Github last night and grabbed version 3.0 from Davids Github. https://github.com/DavidJClark/phpVMS-ScreenShotCenter/archive/master.zip
  3. The pilot pay updates accordingly everywhere on site except exam module. I ran the site through the tests today after I received your email. This was a known issue for a while with exam module (pilots getting their money back and saying they dont have enough to cover the cost of a test). I was mainly just mesing about with it and trying to figure it out or see if anyone ever came up with a fix for it all these years later. I really do appreciate you looking in to it for me Parkho. Cheers buddy! Really, if they get the money back, it is no biggie to me. That part don't matter. It is the not enough money to take a test part that hurts.
  4. I think you might need a new host with older php. if you want to give it a quick try, install wamp server on your pc and give phpvms a go on it. it comes with php5.6.35 or something like that and php7
  5. Hmm It should just add new lines per event. Ill have to try it out on mine again and see happens. I'm not sure about the image yet as I have had no chance to work with it. I been busy the last couple days.
  6. **POOF**
  7. Github under David Clark
  8. I have no idea man. I was lucky to get this working when I did. lol I just messed with it for a few minutes after looking at the code in the forum tour calendar which is actually an events calendar. **EDIT** Actually, are you referring to the image that you add to the event in the admin panel? You want the image to show up in this code too?
  9. Actually Pro that is a decent advice to give. It never hurts and could only benefit as you say. I do agree with you and parkho both, an update is at this point in time necessary. Maybe just not to the live site but beside it as you have suggested. That is why I love having a server stack on my local machine.. I have no less than 30 projects on it lol
  10. None of the core files are edited at all except for styling. All functions are as is as of when I bought the module from Dave. When I chance the functions to static, I get the one error I posted for certain and then on the rebuild pilots function, it throws a BUNCH ... literally a bunch of errors. I can just suppress the errors and use it until it can't be used anymore. It's no biggie.
  11. Sure thing. Easily done.
  12. I was unable to get a install of phpVMS done last night on my server. Any chance I can get you to link me to yours and I can view it in my mobile devices?
  13. I am looking here for cake controller methods and it is pretty much babble to me. http://book.cakephp.org/2.0/en/controllers.html
  14. For the record, I know I said I was not going to suppress errors. On a just because, I attempted to add this to the top of the touradmin.php in the modules folder: error_reporting(error_reporting() & ~E_STRICT & ~E_DEPRECATED); I had all kinds of issues. I then deleted it and added it to the very bottom of the file after the closing }} and it worked. Now my admin can continue to work on the site and do their thing while I worry about this. I appreciate any and all help I can get Parkho. I would definitely owe you a coffee.
  15. Ok here goes. Server php version 5.4.45 Here is the exact order of events that leads to errors. Pilot A) flys a route that is a tour leg and files a PIREP. Me as an admin goes and once I approve the pirep I am immidiately met with this. Strict Standards: Non-static method TourData::get_pilot_tours() should not be called statically, assuming $this from incompatible context in /home/xxxxxx/public_html/xxxxxx/admin/modules/TourAdmin/TourAdmin.php on line 21 Strict Standards: Non-static method TourData::get_tour() should not be called statically, assuming $this from incompatible context in /home/xxxxxx/public_html/xxxxxx/admin/modules/TourAdmin/TourAdmin.php on line 29 Strict Standards: Non-static method TourData::get_tour() should not be called statically, assuming $this from incompatible context in /home/xxxxxx/public_html/xxxxxx/admin/modules/TourAdmin/TourAdmin.php on line 33 Strict Standards: Non-static method TourData::update_pilot_tourdata() should not be called statically, assuming $this from incompatible context in /home/xxxxxx/public_html/xxxxxx/admin/modules/TourAdmin/TourAdmin.php on line 54 Here is the source of the issue: Ahhh scratch that. It is a payware, I can't post code. I won't do Dave like that. Do you own this module Parkho? When I go to the Tour Admin home page to attempt my admin duties, the home page has this at the top: Strict Standards: Non-static method TourData::get_tours() should not be called statically, assuming $this from incompatible context in /home/xxxxxx/public_html/xxxxxx/admin/modules/TourAdmin/TourAdmin.php on line 74 When I change that public function to public static function, the page goes blank white and give s me this: Fatal error: Using $this when not in object context in /home/xxxxx/public_html/xxxxx/admin/modules/TourAdmin/TourAdmin.php on line 74 If I click any of the options for a active tour in the admin such as edit, tour, details, or anything else, it has : Strict Standards: Non-static method TourData::get_tour() should not be called statically, assuming $this from incompatible context in /home/xxxxx/public_html/xxxxx/admin/modules/TourAdmin/TourAdmin.php on line 81 Strict Standards: Non-static method TourData::get_pilot_data() should not be called statically, assuming $this from incompatible context in /home/xxxxx/public_html/xxxxx/admin/modules/TourAdmin/TourAdmin.php on line 82 And this: Strict Standards: Non-static method TourData::get_tour() should not be called statically, assuming $this from incompatible context in /home/xxxxxx/public_html/xxxxx/admin/modules/TourAdmin/TourAdmin.php on line 105 I have not attempted the delete link yet for a tour for testing reasons. that will be my last test to delete an active tour. Now Rebuilding a pilots tour gets me this at the top of the rebuild page which I believe might just be the header throiwing an error. I could be wrong.: Strict Standards: Non-static method TourData::get_pilots_participated() should not be called statically, assuming $this from incompatible context in /home/xxxxx/public_html/xxxxx/admin/modules/TourAdmin/TourAdmin.php on line 113 Here is one error from a rebuild. I will try to replicate all the others in one minute for you. Strict Standards: Non-static method TourData::update_pilot_tourdata() should not be called statically, assuming $this from incompatible context in /home/xxxx/public_html/xxxx/admin/modules/TourAdmin/TourAdmin.php on line 131 Ok so essentially, I last night had several other errors to that today I can not replicate. I think I might know what the issue is and am going to attempt to replicate again here as soon as I have a nice hot cup of coffee. On a side note, most of those errors, if I change any of the public funtions like I did previously in this post, I end up with the same thing, white screen with the given error. I can get screenies to if needs be. If you don't own this module, I am trying to figure out what to do as I can't legally share the files or code. Since I can't share the code, can I just share each individual line that is erroring without showing any other lines?
  16. Oh that was just a few errors to get started with. Trying to rebuild a pilots tour throws of no less than probably 10 errors. What I will do since it is a non production website is go in and do what I attempted to do and document it all. that way we are on the same page. I will copy each error to the T and come back and post. On a side note, server was running php 5.6.25 I believe it was. In an attempt to debug and try new things, I downgraded the php version to 5.4 and still the module disagreed with me.
  17. I tried the same fix that we all used several years ago and it was not an option as the code Dave uses in vms 5.5 is much different than it used to be. @parkho, I can paste the code but it is in several files really. Do we burn that much forum space up or just have you grab the files? lol I'm game either way man. Let me know and I will get on it asap. Thanks for the offer of looking.
  18. Now before it comes up, because I know it is going to and I appreciate it, Yeah, I will not suppress any errors. I would rather fix the code than hide a problem. Now that being said, it is Daves Tour Module. I know, I know. It is a paid module. No support given here Ray so go to Dave's website and submit a ticket. No point in submitting a ticket. Dave is on hiatus right now and MIA. No support is being offered for paid modules. So no harm in asking here I guess as I know certainly I am not the only one using it and have this issue that we can not get support for. No, I will not send it to anyone to "Test". lol n ice try though. It is payware after all. I have to honor the license. I got the old strict errors when accepting a pirep when it is a tour leg. Strict Standards: Non-static method TourData::get_pilot_tours() should not be called statically, assuming $this from incompatible context in /home/xxxxxx/public_html/xxxxxx/admin/modules/TourAdmin/TourAdmin.php on line 21 Strict Standards: Non-static method TourData::get_tour() should not be called statically, assuming $this from incompatible context in /home/xxxxxx/public_html/xxxxxx/admin/modules/TourAdmin/TourAdmin.php on line 29 Strict Standards: Non-static method TourData::get_tour() should not be called statically, assuming $this from incompatible context in /home/xxxxxx/public_html/xxxxxx/admin/modules/TourAdmin/TourAdmin.php on line 33 Strict Standards: Non-static method TourData::update_pilot_tourdata() should not be called statically, assuming $this from incompatible context in /home/xxxxxx/public_html/xxxxxx/admin/modules/TourAdmin/TourAdmin.php on line 54 I have tried the public static function trick and all and when I do that, the errors come at me from all directions and my site crashes completely. Anyone fix this yet? P.S. And this is just to get started. I got major errors going on other places with this module as well. I hate to scrap it. That's $50
  19. So, the old pilot pay bug has resurfaced. If I adjust pilots pay (say they have 1000 and I give them 5000, their profile reads it as they have 6000$. Nice. However, Exam Center gives the money back on recalculate of finance in admin panel. Has anyone ever found a fix for that yet? And another one, If I have adjusted said pilots pay to the said 6000$ and they take a $5000 exam, that should leave them $1000 right? Wrong. It says they don't have enough money for the exam. Meaning in reality, the exam center is reading their pilot pay as $1000, not $6000. I adjust some code from total pay to $userinfo->totalpay + $userinfo->payadjust; to total out the money they have in the exam center code and it is still a no go. It will not recognize the total pilot pay. I apologize for posting this here. Reason I did is Dave is MIA for now. He will not be replying to posts in his threads I am more than sure. Maybe some of you all have found a way to fix this issue?
  20. I have to agree with you Parkho, but realistically, what is he going to gain right now besides php 5.6 headaches he might not be prepared for. I been at it for 13 days and still fixing errors that keep popping up on me (can't manage to fix tour module ). Minus Twitter and recent activities, Im not sure 5.5 is worth going to at his point in time. Now that being said, If he catches wind his host is upgrading php then by all means make a mad dash for an upgrade.
  21. Thats just it, they were not showing at all even with hours. I removed the pagination code and bingo. I had pilot roster. I dug until I was blue in the face today and finally gave up for a while.
  22. I have not used this template in quite some time. I use one of his newer ones now. If I can get it done tonight, I will do a clean install of phpVMS and install this template and give it a try for you.On your mobile device, what browser are you using?
  23. Hey all, The original template that Eddie put together for us all to enjoy had a code snippet to Coming events that pulled info from a blank events table and was eventually removed form this version of the template. I have posted a code snippet over at Simpilots Addons thread here on site on what code to use to make the Events Sidebar for frontpage_main.php work properly. I'll post here to. <!-- Begin Events --> <div class="art-block clearfix"> <div class="art-blockheader"> <h3 class="t">Upcoming Events</h3> </div> <div class="art-blockcontent"> <p> <?php // Events Module from simpilotgroup.com // Front page event list by Cory Wienckowski $events = EventsData::get_upcoming_events(); if(!$events) { echo "<p>There are no upcoming events.</p>"; } else { $count = 0; foreach($events as $event) { if($count == 10) { break; } if($event->active == '2') { continue; } echo "" . date("m/d/Y", strtotime($event->date)) . " &dash; "; //echo '<td>' '</td>'; echo '<td><a href="'.SITE_URL.'/index.php/events/get_event?id='.$event->id.'">' . $event->title. '</a></td></tr>'; $count++; } } ?> </p> </div> </div> <!-- End Events -->
  24. Anyone using the Events module and wants to have a events sidebar like used to be on the OcenBlue or OcenaBluev2 Here is the code that I had to use to fix it. The links were going back to a empty event table. Now with this code, it pulls the right info as it is supposed to. Not sure if it is right, please use at own risk. <?php // Events Module from simpilotgroup.com // Front page event list by Cory Wienckowski $events = EventsData::get_upcoming_events(); if(!$events) { echo "<p>There are no upcoming events.</p>"; } else { $count = 0; foreach($events as $event) { if($count == 10) { break; } if($event->active == '2') { continue; } echo "" . date("m/d/Y", strtotime($event->date)) . " &dash; "; echo '<td><a href="'.SITE_URL.'/index.php/events/get_event?id='.$event->id.'">' . $event->title. '</a></td></tr>'; $count++; } } ?>
  25. New development in my saga. When there is NO pilots assigned to a hub, I get the suggested message as coded, sorry but no pilot assigned to this hub or what ever it says. The second I assign a pilot to a hub, that message goes away, no pilots are shown and all it says is: Back **EDIT** On a side note, I commented this pagination code out and the pilot roster came to life. <script type="text/javascript"> $(document).ready(function() { $('#plist').dataTable( { "sPaginationType": "bootstrap" } ); } ); </script>
×
×
  • Create New...