Firefox PHP

Module: Group Auto-Email

Posted by Joe Curia 
Re: Module: Group Auto-Email
July 04, 2008 08:22PM
Thanks so much for spending the time to help me. I really, really appreciate it.

Here is what the log has after trying to post with the debugger code in place:

This is in there 3 times in a row:

Message:

PHP notice: Array to string conversion

PHP notice generated at /home/********/domains/********.org/public_html/mods/group_autoemail/group_autoemail.php:92

Then there's this. No details listed, only this message:

First user: 1 = 1,******* (my username),7ef93688b9e2479c86651f87be17a0 aa,d7d9a9ac022bb1288e187be111c4c9ce,,0,7 ef93688b9e2479c86651f87be17a0aa,******@g mail.com,,0,1,,0,187,1,0,1198375927,1215 216891,0,0,0,0,1,-99,0,,,,1,Array,**** ******(my real name),******* (my username),Array,Array


Then:

Message:

PHP notice: Undefined index: permissions

PHP notice generated at /home/********/domains/********.org/public_html/mods/group_autoemail/group_autoemail.php:99

Next is this, no details, only this message:

Boundary: phorum_gae_boundary411

Second to most recent is this. Only the message, no details:

Headers: From: ********** <************@*********.org> Message-ID: <692ea4c3c320be9a725dbcb6882fe1a0.BoardM embers@********.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="phorum_gae_boundary411"

Finally this:

Message:

Email message:

This is a multi-part message in MIME format.

--phorum_gae_boundary411
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Subject:
Re: test3

Author: *******

Message:
test

View the full thread:
[********.org]
--phorum_gae_boundary411--

My server admin said that he switched his billing program to send messages via PHP and it sent the e-mails with no problem. He ran a few other scripts that send mail via PHP and they worked successfully as well. He provided me with a link to the PHP info for the server. I will PM this link to you as I would rather not post it publicly.

Thanks again, let me know if you need any other info!



Edited 1 time(s). Last edit at 07/04/2008 08:24PM by itasor.
Re: Module: Group Auto-Email
July 04, 2008 10:52PM
First off, it seems you have a very good system admin if he responds so quickly and helpfully. Wish they were all like that :)

Secondly, some more things to try and thanks for all your patience with this:

I have uploaded a new debugger to run. It won't show anything different but may help with the problem.
EDIT:You will have one new debug message: "Email accepted by sending server:" Please let me know the result.
Also, could you tell me the contents of your custom english.php file?

The good/bad news is that the debugger you ran shows that the message is generated properly, only the actual sending of the email is not working. I will look into how we can debug that process as well.

EDIT 2: File removed as it is part of the module starting in v5.2.1.04.


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald




Edited 3 time(s). Last edit at 07/05/2008 10:37AM by Azumandias.
Re: Module: Group Auto-Email
July 05, 2008 08:44AM
Ok, good news! With the new Debugger "B" file in place, all e-mails were instantly sent out after posting.

Here is the result of the new debug message:

Email accepted by sending server: 1

I checked with a few other members, including my test member, and everyone successfully got the e-mail!

I'm not sure what changes you made, but would they be possible to transition them to the non-test version of the mod? Now I'm so curious what the fix was, I was sure it was going to end up being a problem with PHP on the server or something.

Thanks again!! If you still need a copy of my english.php file, please let me know.



Edited 1 time(s). Last edit at 07/05/2008 08:46AM by itasor.
Re: Module: Group Auto-Email
July 05, 2008 10:35AM
Well, I'm glad we got that sorted out :) The problem seems to be in the headers section. While digging into the PHP mail function I saw that headers should technically be separated by \r\n rather than simply \n. Applying this to the mod has gotten things going for you. However, I don't know why that would suddenly be a problem if nothing was changed on your server. This mod has been working for many people (myself included) without that fix. Also, the phorum core function for sending emails does not use \r\n. I would be curious if you get email notices when following a topic, receiving a pm, or registering a user (with email validation set).

Anyways, I have finished v5.2.1.04 with these changes:

- Fixed a bug which could cause emails to fail. Thank you itasor for helping catch and exterminate this bug.

- Added debugging code which is disabled until debugging becomes necessary.


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Re: Module: Group Auto-Email
July 05, 2008 03:10PM
Very interesting! Thanks so much for all the help and I'm so glad that it works again.

I sent myself a PM from my test account and got the e-mail successfully. Not sure why things stopped working, but they definitely are working again.

Thanks again! You guys are all really great. :)
Re: Module: Group Auto-Email
August 28, 2008 12:44PM
I hate to do this again, but all e-mails have stopped going out again. The mod was worked with no issues since the day of my post above until very recently.

Should I upload the debugging file and post the results? Just want to make sure this is still the first step, or if you have something else to try.

Like last time, I have made no changes to the Phorum installation and my server administrator says no changes have been made to the server. I will ask him to confirm this if necessary with another admin.
Re: Module: Group Auto-Email
August 28, 2008 11:10PM
There is no need to reupload the debugger as it is now included in v5.2.1.04. In order to start debugging, browse to the mod's settings page, then add "&debug=1" to the end of the address bar (ie. http://www.yoursite.com/phorum/admin.php?module=modsettings&mod=group_autoemail&debug=1 ) This will start the debugging again in the Event Logging mod (be sure that is running as well). From there you can look for this series of logged events:
  1. Message "test" posted by "user".
  2. First user: . . .
  3. Boundary: . . .
  4. Headers: . . .
  5. Email message: . . .
  6. Email accepted by sending server: . . .

To disable the debugger, repeat the above instructions with "&debug=0"


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Re: Module: Group Auto-Email
September 02, 2008 05:27PM
Azumandias,

I enabled the bugger but only got 1 entry in the log after posting (in a forum that should have been e-mailed). It doesn't contain any of the 6 points you posted, so I'm not sure if I'm looking in the wrong spot.

User info:

User ID = 1, username = ******* [ view user's profile ]
User IP address = **.***.**.***

Additional details:

Message:

PHP notice: Undefined index: permissions

PHP notice generated at /home/********/domains/********.org/public_html/mods/group_autoemail/group_autoemail.php:98

Back trace:

Function phorum_mod_group_autoemail_after_post called
----
Function call_user_func_array called at
{path to Phorum}/common.php:991
----
Function phorum_hook called at
{path to Phorum}/include/posting/action_post.php:226
----
Function include called at
{path to Phorum}/posting.php:470
----

Request info:

HTTP_HOST = ********.org
HTTP_REFERER = [********.org]
REQUEST_URI = /posting.php


EDIT: Nevermind, the &debug1 must not have gone through. I did that again and now it's logging properly. Here is some code from the log:

PHP notice: Array to string conversion
Message:

PHP notice: Array to string conversion

PHP notice generated at /home/********/domains/********.org/public_html/mods/group_autoemail/group_autoemail.php:91

Back trace:

Function implode called at
{path to Phorum}/mods/group_autoemail/group_autoemail.php:91
----
Function phorum_mod_group_autoemail_after_post called
----
Function call_user_func_array called at
{path to Phorum}/common.php:991
----
Function phorum_hook called at
{path to Phorum}/include/posting/action_post.php:226
----
Function include called at
{path to Phorum}/posting.php:470
----

(two more identical to the one above come next), then...

First user:

1 = 1,*******,7ef93688b9e2479c86651f87be17a0aa,966bd00154e56276929d57788d184c72,,0,7ef93688b9e2479c86651f87be17a0aa,******@gmail.com,,0,1,,0,251,1,0,1198375927,1220383987,0,0,0,0,1,-99,0,,,a:1:{s:8:"merge_t1";i:510;},1,Array,**** ******,*******,Array,Array

PHP notice: Undefined index: permissions
Message:

PHP notice: Undefined index: permissions

PHP notice generated at /home/********/domains/********.org/public_html/mods/group_autoemail/group_autoemail.php:98

Back trace:

Function phorum_mod_group_autoemail_after_post called
----
Function call_user_func_array called at
{path to Phorum}/common.php:991
----
Function phorum_hook called at
{path to Phorum}/include/posting/action_post.php:226
----
Function include called at
{path to Phorum}/posting.php:470
----

Boundary: phorum_gae_boundary554

Headers: From: ******** <do-not-reply@********.org> Message-ID: <05339276d879ebcb2af0cad918f8404c.BoardM embers@********.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="phorum_gae_boundary554"

Message:

Email message:

This is a multi-part message in MIME format.

--phorum_gae_boundary554
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Subject: Re: should e-mail...

Author: *******

Message:
test-o

*This is an automated e-mail, please do not reply. Instead, click the link below and reply on ********.*

View the full topic:
[********.org]
--phorum_gae_boundary554--

Email accepted by sending server: 1

Thanks!
Ryan



Edited 1 time(s). Last edit at 09/02/2008 05:37PM by itasor.
Re: Module: Group Auto-Email
September 02, 2008 06:47PM
Hmm, the most important one is the last "Email accepted by sending server" The one indicates that the email was accepted/sent by your server's mail processor. Are you able to see if that particular recipient did not receive the email?

The debugger is only set to check the first email address in the list. Please upload the two files (settings.php & group_autoemail.php) in the attached zip file. Then, similar to the &debug=1, set &repeatdebug=1. This will have the debugger show the email steps for each user in the group. Any that do not have "Email accepted by sending server" as 1 should be reviewed.

EDIT: debugger now included in the module.


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald




Edited 2 time(s). Last edit at 12/23/2008 08:25AM by Joe Curia.
Re: Module: Group Auto-Email
September 03, 2008 07:56AM
Hi, I know everyone in the group that is supposed to get e-mails and no one is getting them. The 1 e-mail address in the debug code is mine, so I know that I am not receiving the e-mail.

EDIT: I sent an e-mail out asking everyone in the group if they are receiving e-mails. None of them are. I will upload the files you posted and see if they are all recorded as sending out.



Edited 1 time(s). Last edit at 09/03/2008 09:27AM by itasor.
Sorry, only registered users may post in this forum.

Click here to login