HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Email error

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#85221 (In Topic #17532)
Avatar

Community saint

I found 6 emails that had been sitting in the queue for about 7 hours and hit the "send all queued" button. Instead of those email getting sent I received this stack trace…

Code

An error has occurred

PHP WARNING [2] Invalid argument supplied for foreach() in sources/mail.php on line 255 (version: 8.0.1, PHP version: 5.3.8, URL: /adminzone/index.php?page=admin_emaillog&type=mass_send)

Here is the stack trace:

Below is a stack trace revealing the state the software was in when the error occurred. If this represents a bug in the unmodified software, you may want to check ocPortal website for a fix, and if there isn't one, report this as a bug. Please note that merely posting a stack trace is not sufficient for us to solve your problem; the stack trace is just an aid that presents us with additional information. We still need to know the error message, what you tried to do, how you tried to do it, version numbers, and any other appropriate information.
We apologise for this problem and if it's a bug we hope you will work with us so that we can fix it for you promptly.

File    '/home/whiteisl/public_html/sources/failure.php'
Line    '696'
Function    'get_html_trace'
Args   

File    '/home/whiteisl/public_html/sources/global.php(211) : eval()\'d code'
Line    '1,000'
Function    '_fatal_exit'
Args   
'PHP WARNING [2] Invalid argument supplied for foreach() in sources/mail.php on line 255'


File    '/home/whiteisl/public_html/sources/failure.php'
Line    '218'
Function    'fatal_exit'
Args   
'PHP WARNING [2] Invalid argument supplied for foreach() in sources/mail.php on line 255'


File    '/home/whiteisl/public_html/sources/global.php(211) : eval()\'d code'
Line    '874'
Function    '_ocportal_error_handler'
Args   
'warning'

2

'Invalid argument supplied for foreach()'

'sources/mail.php'

255


File    '/home/whiteisl/public_html/sources/mail.php'
Line    '255'
Function    'ocportal_error_handler'
Args    ...

File    '/home/whiteisl/public_html/adminzone/pages/modules/admin_emaillog.php'
Line    '288'
Function    'mail_wrap'
Args   
'Hit reports for \'Links\' entries on \'~~~~~~~~~~~~~~~.com\''

'Here is your weekly report for Links entries on ~~~~~~~~~~~~~~~.com: - A Beginner's Guide to Gambas, 0 hits '

'carbon@~~~~~~~~~~~.com'

'admin'

''

''

3

NULL

true

1

true

false

true


File    '/home/whiteisl/public_html/adminzone/pages/modules/admin_emaillog.php'
Line    '68'
Function    'mass_send'
Class    'Module_admin_emaillog'
Object    Module_admin_emaillog::__set_state(array( ))
Type    '->'
Args   

File    '/home/whiteisl/public_html/sources/zones.php'
Line    '424'
Function    'run'
Class    'Module_admin_emaillog'
Object    Module_admin_emaillog::__set_state(array( ))
Type    '->'
Args   

File    '/home/whiteisl/public_html/sources/site.php'
Line    '1,016'
Function    'load_module_page'
Args   
'adminzone/pages/modules/admin_emaillog.php'

'admin_emaillog'


File    '/home/whiteisl/public_html/sources/site.php'
Line    '785'
Function    'request_page'
Args   
'admin_emaillog'

true


File    '/home/whiteisl/public_html/adminzone/index.php'
Line    '51'
Function    'do_site'
Args   

The last time mails were sent out was 11 hours ago. Other than the 6 queued emails, nothing in the last 5 days has appeared in the logs.

Not sure if this is related… While doing a quick search on this email problem, I came across this post and noticed the "manage email queue" menu link is missing from my live site, but is there on my clone site. I'm not sure if it was there immediately after the live site upgrade this past Sunday early morning UTC time. [Edit: This turned out to be a false alarm…]



Last edit: by sholzy

Steve

Back to the top
 
Posted
Rating:
#85223
Avatar

Community saint

sholzy said

The last time mails were sent out was 11 hours ago. Other than the 6 queued emails, nothing in the last 5 days has appeared in the logs.

Not sure if this is related… While doing a quick search on this email problem, I came across this post and noticed the "manage email queue" menu link is missing from my live site, but is there on my clone site. I'm not sure if it was there immediately after the live site upgrade this past Sunday early morning UTC time.

In Configurations>Site options:Email for the live site, do you have "Email debug mode" or "Email queue" checked. I think the link only appears in the menu when "Email queue" is checked.

Bob
Back to the top
 
Posted
Rating:
#85224
Avatar

Community saint

My config settings are correct. Even went so far as to uncheck and save, then check and save again. There had been 130 emails sent out since the upgrade that have not appeared in the logs.

The only thing I have done to my site is making the two changes to the antispam mod that Chris posted earlier, but that was 3 hours after the queue plugged up.

I've been starting to notice some weird things happening to my site since the upgrade. I'm not sure though if they are something I've caused or its a combination of addons/antispam mod waking up the gremlins, or both.

Steve

Back to the top
 
Posted
Rating:
#85225
Avatar

Community saint

When you say upgrade, do you mean 8.0.1?

Bob
Back to the top
 
Posted
Rating:
#85226
Avatar

Community saint

BobS said

When you say upgrade, do you mean 8.0.1?

Bob

I upgraded to 8.0 early Sunday morning and then upgraded to 8.0.1 Sunday afternoon.

Steve

Back to the top
 
Posted
Rating:
#85227
Avatar

Community saint

At Chris's suggestion, I stayed on 8.0 since I was having no issues, and then installed antispam and seem not to have any issues (though I haven't been posting a lot).

I plan on keeping antispam active until the next release and then I am going to yank it to get back  to the in-cycle upgrades and  just hope that antispam drops in an official release soon.

I just tried ticking "Email debug mode" on my live site and the "Manage email queue" menu option appears; unticking removes it.

Sounds like they may be some conflict betwen the various changes you've made.

Bob
Back to the top
 
Posted
Rating:
#85228
Avatar

Community saint

BobS said

At Chris's suggestion, I stayed on 8.0 since I was having no issues, and then installed antispam and seem not to have any issues (though I haven't been posting a lot).
Yeah, I had upgraded to 8.0.1 before I realized it wasn't necessary. Major lack of sleep prior to the upgrade did me in I think.

I plan on keeping antispam active until the next release and then I am going to yank it to get back  to the in-cycle upgrades and  just hope that antispam drops in an official release soon.
Me too. Might as well work out any bugs before it hits official release. I haven't seen anything hit it yet so I don't know if its working or not.

I just tried ticking "Email debug mode" on my live site and the "Manage email queue" menu option appears; unticking removes it.

Sounds like they may be some conflict betwen the various changes you've made.

Bob
I just tried also ticking "manage queue" and the menu item appeared so this turned out to be a non-issue.

I'll edit my original post to reflect that.

Steve

Back to the top
 
Posted
Rating:
#85230
Avatar

ocStaff (admin)

Ah, the CC address isn't working correctly with those notifications that do generate CCs.

This isn't related to the mail queue in any way, please delete those messages from the queue. It's a problem before they get into it.

Attachment
sources/notifications.php
» Download: notifications.php (43 Kb, 20 downloads so far)



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#85238
Avatar

Community saint

Fixed!  :thumbs:  Thanks, Chris.

Steve

Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: