Page 1 of 1
MAIL ERROR: Warning: Invalid argument supplied for foreach()
Posted: Sat May 04, 2013 9:26 am
by placeshifter
After migrating my web site to a new server using a flex image, I'm getting the following error on submission of a contact form:
Warning: Invalid argument supplied for foreach() in /home/website/public_html/lib/classes/class.Events.php on line 174
Can you tell me what the problem might be and how I can resolve this?
I changed my CMS Mail settings from SMTP to Sendmail and it has resolved it for now.
Just wondering why the SMTP submission was causing the error and how to correct it.
Re: MAIL ERROR: Warning: Invalid argument supplied for forea
Posted: Tue Sep 17, 2013 6:26 am
by catchlight
I got this message all over my site after upgrading to 1.10 from 1.11.8 changing stuff in the CMS mailer settings didn't correct anything for me, so I'm not sure if your issue has anything to do with CMS Mailer.
Re: MAIL ERROR: Warning: Invalid argument supplied for forea
Posted: Tue Sep 17, 2013 9:05 am
by Rolf
System information?
Re: MAIL ERROR: Warning: Invalid argument supplied for forea
Posted: Wed Sep 18, 2013 1:20 am
by catchlight
If I can hi-jack this post - hopefully this might help us all anyway.
Cms Version: 1.11.8
Installed Modules:
FCKeditorX: 1.0.1
MenuManager: 1.8.6
Printing: 1.1.1
TinyMCE: 2.8.0
Search: 1.7.10
News: 2.13
FileManager: 1.4.3
Config Information:
php_memory_limit:
process_whole_template:
max_upload_size: 2000000
url_rewriting: internal
page_extension:
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: false
Php Information:
phpversion: 5.3.27
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
E_DEPRECATED: 0
memory_limit: 32M
max_execution_time: 30
output_buffering: On
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 8M
upload_max_filesize: 2M
session_save_path: /tmp (1777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
Server Information:
Server Api: cgi-fcgi
Server Db Type: MySQL (mysql)
Server Db Version: 5.5.32
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
Server Time Diff: No filesystem time difference found
Re: MAIL ERROR: Warning: Invalid argument supplied for forea
Posted: Wed Sep 18, 2013 4:27 am
by calguy1000
this error is caused by a query that returns no results. meaning you have no event handlers anywhere, for anything.
Adding an event handler for something will make the notice go away.