AIRMail Beta 2.1

I tried with both Obsesblue and Crystal template. The error seems the same.

“Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘Mail::inbox’ was given in /home5/XXXXXXX/public_html/PIREP/core/classes/MainController.class.php on line 218”

Thank you

What is the link to your site?

Hi…

Please check the PM

cheers

I have AIRMail running on one current stable release (version mentioned) and 2 test sites running the very latest bet and all 3 are working great.

I tried with both Obsesblue and Crystal template. The error seems the same.

“Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘Mail::inbox’ was given in /home5/XXXXXXX/public_html/PIREP/core/classes/MainController.class.php on line 218”

Thank you

I just found that the other site with this issue has the original version of AirMail (1.0) installed. I am not sure where it came from as I believe the only one posted here in the forum is the latest (2.1) at the beginning of this thread. Any version prior to 2.0 will not work with any phpVMS version past 785.

Overwrite the files with the files at the start of this thread and either drop the airmail table from your database and run the new install sql file or use the update file to change the database from version 1.0.

Yes you are right.

Dropping Mail tables and rebuilding in helped

Now its solved

Thank you

Hi Dave, I have been trying and trying for a couple months now to get a delete all to work with AIRMail. Do you think that is even worth trying? I can get it to check all but when clicking delete all, it only deletes 1 message.

Just curious if you think it will work.

Thanks.

Ray

P.S. Hell, if ANYONE can get a delete all to work, I could probably pay for it.

Is it possible that when a pilot gets a new message instead of it showing the image it could just say 1 new message(s) or 6 new message(s) etc.. and display it on the homepage.

Thanks!

Is it possible that when a pilot gets a new message instead of it showing the image it could just say 1 new message(s) or 6 new message(s) etc.. and display it on the homepage.

Thanks!

Just edit the code with the little mailbox, and change your text to what you want.

Ok, so what would I use to display the number of new messages?

Thanks

I believe, and I stand to be corrected if I am wrong, that that info would be stored in the database and I find no where what so ever in the db that shows how many new messages one has in his or her mail box. I believe with out that info, pulling a number would be impossible. Now that being said, if you can code it, nothing is impossible. But as long as that info is not in the database, you are stuck in the mud so to speak.

Which folders in the phpvms install do i put the “Airmail_new_install” and the “airmail_update” files?

Those are the sql files. You do not put them anywhere.

If you are installing airmail fresh, then you need to go in to phpmyadmin via your web hosts control panel and import the sql in to your phpVMS database.

If you already have an old version of airmail running, you import the update sql.

OR

You can open which ever one you need, copy it, and in phpmyadmin, paste it in the query box and run it.

Not sure if this has been posted before but I am unable to delete sent mail..Get this error.

Notice: The template file “/home1/pirateai/public_html/kesukvirtual//core/templates/mail_deleted.tpl” doesn’t exist in /home1/pirateai/public_html/kesukvirtual/core/classes/TemplateSet.class.php on line 248

Roger just check that that template really does exist and its ok, it may be a corrupt file there.

That error came up a long time ago when the file was missing from the package. But I thought that was on version 1 not version 2. Version 2 does in fact have all necessary files. So I would say if you are running v2, it got deleted off your server or as Mark said, is corrupted.

Got it…thanks guys!!

downloaded 2.1 and the maildeleted.tpl template is missing…

You know, I have that running on a couple test sites as well as 2 live sites and it woks properly on all of them AND none of them had that file. I wonder if it was a quick file edit we had to make to correct the issue.

One small bug found -> When deleteing a sent item it does delete the item but takes you to a non existant template.

Open Mail.php and find lines 152-153

$this->set(‘mail’, $result);
$this->show(‘mail_deleted.tpl’);

Remove and replace with ->

header(‘Location: ‘.url(’/Mail/sent’));

That will take you back to the sent box.

Here you go Roger. Give this a quick try.