Jump to content

Recommended Posts

Posted

Hello

Can anyone tell me how to solve this error getting this error when our members open there new mails

Warning: Invalid argument supplied for foreach() in /*****/**********/public_html/************/core/templates/mail/mail_open.tpl on line 19

Any help will be appreciated.

Thanks & Regards

Ahad Imran

CEO PIAS Virtual Group

PIASVIRTUAL.ORG

  • Administrators
Posted

Hello

Can anyone tell me how to solve this error getting this error when our members open there new mails

Warning: Invalid argument supplied for foreach() in /*****/**********/public_html/************/core/templates/mail/mail_open.tpl on line 19

Any help will be appreciated.

Thanks & Regards

Ahad Imran

CEO PIAS Virtual Group

PIASVIRTUAL.ORG

Is this an upgrade from airmail 2.x ?

Have all the SQL tables been installed/updated ?

Does your server allow the ise of the php now() function ?

  • 2 weeks later...
Posted

Dave,

When you are reading a new message, you are given two (2) options; "Reply" and "Move to Folder". Is there a way to add a Delete in there as well so we don't have to go back to the Inbox to delete the message. Also, maybe a function that will allow us to view "Previous" and "Next" messages from the message pane?

  • Moderators
Posted

Dave,

When you are reading a new message, you are given two (2) options; "Reply" and "Move to Folder". Is there a way to add a Delete in there as well so we don't have to go back to the Inbox to delete the message. Also, maybe a function that will allow us to view "Previous" and "Next" messages from the message pane?

You could try this

<a href="<?php echo SITE_URL ?>/index.php/Mail/delete/?mailid=<?php echo $data->id;?>">Delete Message</a>

This worked on the old V2 but not tested with V3, just look for the mail id and how its got from the reply to ensure teh correct variable.

  • Moderators
Posted

Ok so i had some time, you can add this to the mail_open.tpl

| <a href="<?php echo SITE_URL ?>/index.php/Mail/delete/<?php echo $data->id;?>">Delete Message</a>

For example line 35 in my template is now,

<td colspan="2" align="left"><b><a href="<?php echo SITE_URL ?>/index.php/Mail/reply/<?php echo $data->thread_id;?>">Reply</a> | <a href="<?php echo SITE_URL ?>/index.php/Mail/delete/<?php echo $data->id;?>">Delete Message</a></b></td>

Posted

I seem to be having an issue with NOTAM's not being sent to all my pilots. I'm running the latest beta so I'm not sure if that has something to do with it or not. I'm also running the latest version of Airmail (3.1.2).

Airmail seems to work fine between two people but not NOTAMS. When I send one I will get the new message but no one else does. Any ideas on this one?

Thanks in advance for your help!

  • 1 month later...
Posted

I seem to be having an issue with NOTAM's not being sent to all my pilots. I'm running the latest beta so I'm not sure if that has something to do with it or not. I'm also running the latest version of Airmail (3.1.2).

Airmail seems to work fine between two people but not NOTAMS. When I send one I will get the new message but no one else does. Any ideas on this one?

Thanks in advance for your help!

Can anyone confirm if there was there a solution to this issue? I have just noticed the same thing is happening at my VA (took a while before people started to say they hadn't had much communication from me!)

Also I don't know if anyone else has experienced an issue when an Airmail is replied back and forth between two people. It is only displaying what the other person has said throughout the conversation, not what you have been saying. This means you have to look in sent messages to see what your replies have been.

Any help appreciated. :)

  • Like 2
Posted

I've got one issue.. the "New Message" table to far too wide for my page and gets ran under my sidebar.. I've tried editing the mail_new.tpl's table width but to no avail..

Ideas?

Thanks in advance!

Posted

With no image to go by, maybe using this might help

<table width="100%">

Or if you know how wide you want it, you can also use

<table width="755px">

Change 755px to the number of the width you want.

  • 1 month later...
Posted
I seem to be having an issue with NOTAM's not being sent to all my pilots. I'm running the latest beta so I'm not sure if that has something to do with it or not. I'm also running the latest version of Airmail (3.1.2).

Airmail seems to work fine between two people but not NOTAMS. When I send one I will get the new message but no one else does. Any ideas on this one?

Thanks in advance for your help!

Can anyone confirm if there was there a solution to this issue? I have just noticed the same thing is happening at my VA (took a while before people started to say they hadn't had much communication from me!)

Also I don't know if anyone else has experienced an issue when an Airmail is replied back and forth between two people. It is only displaying what the other person has said throughout the conversation, not what you have been saying. This means you have to look in sent messages to see what your replies have been.

Any help appreciated. :)

Hi Dave,

Sorry to keep beating on about this. Are you able to please confirm the status of these issues please? Has anyone managed to come up with a solution?

Posted

Thanks for your quick reply Dave. I don't think that update addressed the issue.

There are two problems I am running into. The first is that any NOTAM I send is only being sent to me (i.e is not being received by all pilots)

The other issue is when an Airmail is replied back and forth between two people. It is only displaying what the other person has said throughout the conversation, not what you have been saying. This means you have to look in sent messages to see what your replies have been.

Thoughts?

***EDIT***

Looking at my Airmail table in my database table it isn't increasing the NOTAM column incrementally like it should. It sends it to the first person (which happens to be me) but then it stops.

Posted

Yes I have the latest version installed.

A question.... Does the AirMail distribution list have anything to do with the groups in phpVMS? i.e. does it send NOTAM AirMails to everyone in the "All Pilots" group?

Looking at the code I don't think it does... but in my case I don't have an "All Pilots" group, instead I have a group for each Hub along with retired members group.

I'm just wondering if by me deleting the "All Pilots" group I have caused the issue.

  • Administrators
Posted

What version of phpVMS are you running? - Something somewhere seems odd. I willt ry a fresh install here again today and see if I can get the error.

  • 1 month later...
Posted

Just to follow up on this I fixed the issue.

Well saying I fixed the issue is probably stretching the truth a little. I completed deleted and reinstalled the module and the DB tables and it has fixed the issue.

  • 3 weeks later...
Posted
Also I don't know if anyone else has experienced an issue when an Airmail is replied back and forth between two people. It is only displaying what the other person has said throughout the conversation, not what you have been saying. This means you have to look in sent messages to see what your replies have been.

Hey Dave,

Did you manage a solution to this issue?

  • 2 weeks later...
Posted

Hi There,

I've installed AirMail 3.0 and everything looks good up until it comes to sending a message and for some reason it's not going to the inbox, and also when I go to sent messages it's empty and doesn't show the message I sent, I know I've gone wrong somewhere but not sure where, Any help greatly appreciated :)

  • Administrators
Posted

Hi There,

I've installed AirMail 3.0 and everything looks good up until it comes to sending a message and for some reason it's not going to the inbox, and also when I go to sent messages it's empty and doesn't show the message I sent, I know I've gone wrong somewhere but not sure where, Any help greatly appreciated :)

Did you install the included sql file? It sounds like there are no database tables.

Posted

Hi many thanks for the reply, yes I installed the included sql file, I've been into the mysql database to check the tables have been installed and are indeed there, which are as follows:

phpvms_airmail

Field Type Collation Attributes Null Default Extra Action

id int(10) UNSIGNED No auto_increment

who_to varchar(20) latin1_swedish_ci No

who_from varchar(20) latin1_swedish_ci No

date datetime No 0000-00-00 00:00:00

read_state smallint(1) UNSIGNED No 0

deleted_state smallint(4) No 0

sent_state smallint(4) No 0

subject varchar(50) latin1_swedish_ci No

message text latin1_swedish_ci No

notam smallint(6) No 0

sender_folder int(11) Yes 0

receiver_folder int(11) Yes 0

thread_id int(10) No 0

Check All / Uncheck All With selected:

phpvms_airmail_email

Field Type Collation Attributes Null Default Extra Action

id int(11) No auto_increment

pilot_id int(11) No

email int(1) No 0

Check All / Uncheck All With selected:

phpvms_airmail_folders

Field Type Collation Attributes Null Default Extra Action

id int(11) No auto_increment

pilot_id int(11) No

folder_title varchar(50) latin1_swedish_ci No

Check All / Uncheck All With selected:

  • 3 weeks later...
Posted

Okay just thought i will post this i dont know if its a server issue on our side or it could be the plugin manager....so i tried to install airmail using the plugin manager and all it did was set up the sql tables....everything else i had to installed manually....nothing was installed by the plugin manager....also on the mail_main.tpl on lines 16 and 33 where it says "mailimages/airmail_logo.png" or any other image associated with the module you might want to change "mailimages" and replace with "assets" (i.e. mail/assets/airmail_logo.png) thats where the images used by airmail are stored mailimages folder doesnt exists on the module

  • 2 weeks later...
Posted

Hello there,

I have tried modifying the templates, but they don't seem to be working for some reason? I've dropped and reuploaded the database as suggested in the few first posts. This is the code I have...


...
<?php
   if ($items > 0)
       {
           echo '<font color="yellow">You have new unread mail</font>';
       }
       else
       {
           echo 'You have no new mail';
       }
?>
...

And the effect is the same as default. It just says "You Have Mail".

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