flyalaska Posted September 16, 2009 Report Posted September 16, 2009 I noticed after I installed the AirMail, my acars config files are messed up. Below is the error I get when I click on any of the Config files. Warning: Cannot modify header information - headers already sent by (output started at /home/flyakaco/public_html/core/modules/Mail/Mail.php:131) in /home/flyakaco/public_html/core/modules/ACARS/ACARS.php on line 83 Warning: Cannot modify header information - headers already sent by (output started at /home/flyakaco/public_html/core/modules/Mail/Mail.php:131) in /home/flyakaco/public_html/core/modules/ACARS/ACARS.php on line 84 Warning: Cannot modify header information - headers already sent by (output started at /home/flyakaco/public_html/core/modules/Mail/Mail.php:131) in /home/flyakaco/public_html/core/modules/ACARS/ACARS.php on line 85 [Log] Log=http://www.flyaka.com/action.php/ACARS/fsacars/pirep Mail= URL=http://www.flyaka.com/action.php/ACARS/fsacars passwd= [FSacars] CompanyICAO=AKA CompanyName=Alaska Adventures CompanySite=http://www.flyaka.com UnitSystem=GB Remarks=RMK/ UseLocal=0 PilotNumber=AKA100 CompanyIATA=FLIGHT # CallsignUses= AcarsSite=http://www.flyaka.com/action.php/ACARS/fsacars/acars StatusSite=http://www.flyaka.com/action.php/ACARS/fsacars/status FPSite=http://www.flyaka.com/action.php/ACARS/fsacars/flightplans AcarsUplinkResetSite= AcarsUplinkSite= Antic= [Events] UseCargo=0 FlapsEvent=1 ToutchDownEvent=1 TOLDPosEvent=1 TOCTODEvent=1 ComFreqEvent=1 GearEvent=1 FlightLengthEvent=1 VrV2Event=1 PIREPEvent=1 FlightPosEvent=1 N1Event=1 DurationEvent=1 FuelEvent=1 WeightEvent=1 MetarsEvent=1 DistLandEvent=1 [Realism] NoSlew=0 NoPause=0 Crash=0 PIC=0 MinReset=0 MaxReset=0 Wave= [sendLog] Password=0 PilotNumber=1 Date=1 Hour=1 Callsign=1 IATAN=1 Regist=1 Depart=1 Arrival=1 Alternate=1 PlaneType=1 SpentFuel=1 IniFuel=0 EndFuel=0 Dur=1 Len=1 TD=1 ZFW=1 Log=1 Version=1 Any idea whats going on. Quote
Administrators simpilot Posted September 16, 2009 Author Administrators Report Posted September 16, 2009 I have not had an error on my test site like that - I will go through it again... Quote
flyalaska Posted September 16, 2009 Report Posted September 16, 2009 The mail works, just blocking the config files. Quote
Moderators joeri Posted September 16, 2009 Moderators Report Posted September 16, 2009 yes since i instaled the mailer the acarsmap isnt working anymore Quote
Administrators simpilot Posted September 16, 2009 Author Administrators Report Posted September 16, 2009 I noticed after I installed the AirMail, my acars config files are messed up. Below is the error I get when I click on any of the Config files. Warning: Cannot modify header information - headers already sent by (output started at /home/flyakaco/public_html/core/modules/Mail/Mail.php:131) in /home/flyakaco/public_html/core/modules/ACARS/ACARS.php on line 83 Warning: Cannot modify header information - headers already sent by (output started at /home/flyakaco/public_html/core/modules/Mail/Mail.php:131) in /home/flyakaco/public_html/core/modules/ACARS/ACARS.php on line 84 Warning: Cannot modify header information - headers already sent by (output started at /home/flyakaco/public_html/core/modules/Mail/Mail.php:131) in /home/flyakaco/public_html/core/modules/ACARS/ACARS.php on line 85 [Log] Log=http://www.flyaka.com/action.php/ACARS/fsacars/pirep Mail= URL=http://www.flyaka.com/action.php/ACARS/fsacars passwd= [FSacars] CompanyICAO=AKA CompanyName=Alaska Adventures CompanySite=http://www.flyaka.com UnitSystem=GB Remarks=RMK/ UseLocal=0 PilotNumber=AKA100 CompanyIATA=FLIGHT # CallsignUses= AcarsSite=http://www.flyaka.com/action.php/ACARS/fsacars/acars StatusSite=http://www.flyaka.com/action.php/ACARS/fsacars/status FPSite=http://www.flyaka.com/action.php/ACARS/fsacars/flightplans AcarsUplinkResetSite= AcarsUplinkSite= Antic= [Events] UseCargo=0 FlapsEvent=1 ToutchDownEvent=1 TOLDPosEvent=1 TOCTODEvent=1 ComFreqEvent=1 GearEvent=1 FlightLengthEvent=1 VrV2Event=1 PIREPEvent=1 FlightPosEvent=1 N1Event=1 DurationEvent=1 FuelEvent=1 WeightEvent=1 MetarsEvent=1 DistLandEvent=1 [Realism] NoSlew=0 NoPause=0 Crash=0 PIC=0 MinReset=0 MaxReset=0 Wave= [sendLog] Password=0 PilotNumber=1 Date=1 Hour=1 Callsign=1 IATAN=1 Regist=1 Depart=1 Arrival=1 Alternate=1 PlaneType=1 SpentFuel=1 IniFuel=0 EndFuel=0 Dur=1 Len=1 TD=1 ZFW=1 Log=1 Version=1 Any idea whats going on. Replace your Mail.php file in the core/modules/Mail folder with the attached. There was an extra blank space after the closing php tag that was creating the issue I believe, it works correctly on my test site now. Mail.zip Quote
Administrators simpilot Posted September 16, 2009 Author Administrators Report Posted September 16, 2009 Did you try clearing your browser cache? It is working here fine. Is it the exact same error? Quote
flyalaska Posted September 16, 2009 Report Posted September 16, 2009 Yeas, Im not the only one who is getting it. Buzz me on MSN, I will have you try it on my end. I will give you my login info. Quote
Moderators joeri Posted September 16, 2009 Moderators Report Posted September 16, 2009 this worked for me acars workes again and the header error is gone Quote
flyalaska Posted September 16, 2009 Report Posted September 16, 2009 All fixed. It had nothing to do with Airmail. Quote
Administrators simpilot Posted September 17, 2009 Author Administrators Report Posted September 17, 2009 Unread AIRmail items function Attached are updated Mail.php and MailData.class.php files. Overwrite the existing files in your phpVMS install and it will give you a function to show a pilot how many unread AIRmail's they have. When you want to show the number of unread AIRmail's you need to use -> <?php MainController::Run('Mail', 'checkmail', '') ?> To make it only show when the pilot is logged in you can do something like this example -> <?php if(!Auth::LoggedIn()) { //Show this if the pilot is not logged in } else { ?> You Have <?php MainController::Run('Mail', 'checkmail', '') ?> Unread AIRmail Items <?php } ?> You can use the function however you would like - I have embeded it into the pilot bar that shows at the top of my test site that only shows when the pilot is logged in -> I will be putting images to it as I move along. Have fun and GO FLY! AIRmail1.1.zip Quote
flyalaska Posted September 17, 2009 Report Posted September 17, 2009 Very nice! Looks good on my end. Quote
flyalaska Posted September 18, 2009 Report Posted September 18, 2009 When someone sends out a message, and does not put in a subject. The receiver can't open the email. Quote
Administrators simpilot Posted September 18, 2009 Author Administrators Report Posted September 18, 2009 When someone sends out a message, and does not put in a subject. The receiver can't open the email. Overwrite Mail.php in core/modules/Mail with the attached Mail.php file. It now includes a function that if the subject line is left blank it will put "(No Subject)" in the subject line of the AIRmail which will give you the link to open the mail in your inbox. Mail_1.2.zip Quote
RogerB Posted September 18, 2009 Report Posted September 18, 2009 You guys got this all sorted? I was thinking of giving it a go.... Quote
RogerB Posted September 18, 2009 Report Posted September 18, 2009 I gave it a quick test, all seems to work well... Quote
RogerB Posted September 19, 2009 Report Posted September 19, 2009 Ok, when sending an airmail I noticed it looked bad, the "Airmail sent! message, so I created my own mail_send.tpl template that matches my skin. This looks much better. I wanted to pass this on to the rest of you. I went in to core/modules/Mail/mail.php and made the following changes: I removed this code: echo "<center><h2>AIRmail sent!</h2></center>"; and changed: Template::Show('mail_menu.tpl'); to Template::Show('mail_send.tpl'); Just use one of the other templates provided and change the name, drop in your skins folder naturally. Quote
Administrators simpilot Posted September 19, 2009 Author Administrators Report Posted September 19, 2009 Ok, when sending an airmail I noticed it looked bad, the "Airmail sent! message, so I created my own mail_send.tpl template that matches my skin. Sorry it looked bad Roger but as stated originally... You can modify the templates to match your skin if you would like, they are supplied with just basic markup at this point. Quote
RogerB Posted September 19, 2009 Report Posted September 19, 2009 No problem at all Simpilot, I wasn't trying to come down on you at all, just trying to help, thanks for the addon. Quote
BBuchanan Posted October 1, 2009 Report Posted October 1, 2009 I'd like to give this a go, sounds good. Quote
Administrators simpilot Posted October 1, 2009 Author Administrators Report Posted October 1, 2009 May I edit the code myself? You can do whatever you like with it - Please share any improvements with everyone. Quote
jantorre Posted October 3, 2009 Report Posted October 3, 2009 Hello, great module, just starting building new site for virtual norwegian , being a html/php noob, I find this community very helpfull and I learning mutch by the hour I work with the pages. During some test messages I saw that if i deleted them before I read them, the "you got # Unread items" still show new items. Not a biggy, I just changed the readstatment in the database. Normally people read their mail before deleting Thank you for sharing! Quote
BBuchanan Posted October 7, 2009 Report Posted October 7, 2009 Hey, I wondering how this got resolved because I'm dealing with it also: Warning: Cannot modify header information - headers already sent by (output started at /home/vdefense/public_html/ultrair-virtual.org/core/modules/Mail/Mail.php:131) in /home/vdefense/public_html/ultrair-virtual.org/core/modules/ACARS/ACARS.php on line 132 Warning: Cannot modify header information - headers already sent by (output started at /home/vdefense/public_html/ultrair-virtual.org/core/modules/Mail/Mail.php:131) in /home/vdefense/public_html/ultrair-virtual.org/core/modules/ACARS/ACARS.php on line 133 Warning: Cannot modify header information - headers already sent by (output started at /home/vdefense/public_html/ultrair-virtual.org/core/modules/Mail/Mail.php:131) in /home/vdefense/public_html/ultrair-virtual.org/core/modules/ACARS/ACARS.php on line 134 Quote
Administrators simpilot Posted October 8, 2009 Author Administrators Report Posted October 8, 2009 Hey, I wondering how this got resolved because I'm dealing with it also: Download the last Mail.php in the thread (located near the bottom of page 3) and it will also include the unread mail function for your use. The issue is caused by a blank space after the closing php tag from the original file. Let me know if this does not fix it but it seems to have solved the issue for most. Quote
Administrators simpilot Posted October 8, 2009 Author Administrators Report Posted October 8, 2009 During some test messages I saw that if i deleted them before I read them, the "you got # Unread items" still show new items. Not a biggy, I just changed the readstatment in the database. Normally people read their mail before deleting Thank you for sharing! Thanks for the heads up, I will build this into the final version, I should have it up in the next week or so, been working on a few new features as well. Quote
TAV1702 Posted October 15, 2009 Report Posted October 15, 2009 Hi everyone. I'm new here and giving this system a go for the first time. This script was the first add on that I have tried and it works a treat! A few skinning issues that I will sort out obviously. Great generic mark ups though right off the bat to get started with. Great job on this one! However, I do agree that a drop down box with pilot ID's would be nice. Can't wait to see if that ever happens. I'll be using this mail script for as long as I use this system. Thanks again Ray Quote
Administrators simpilot Posted October 15, 2009 Author Administrators Report Posted October 15, 2009 Thanks for the positive comments, the Airmail system is really still in beta, I am working on a final version now that incorporates a lot of the features that have been suggested throughout the thread. Taking a little longer than expected, real world things have gotten in the way, but hopefully by the end of the month I will have a final. Quote
Administrators simpilot Posted October 15, 2009 Author Administrators Report Posted October 15, 2009 NOTAM: The Airmail module will not function as of the 763 beta, it will have to be reconfigured to conform to the new functions code. I am going to build the new code into the next version, may be a little while though... Quote
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.