Posted on: 01/14/08 05:06pm
By: Anonymous (BMcDonald)
I had the mailing list plug in installed for some time, but just now am turning it on. It all seems to work fine except when I try to actually send an email. I get the error:
An error has occurred:
2 - Invalid argument supplied for foreach() @ /home/kickthem/public_html/plugins/lists/functions.inc line 907
Any ideas as to what this mean and how to fix it would be wonderful.
Re: Mailing List Plug In
Posted on: 01/14/08 07:41pm
By: jmucchiello
What's on line 907 of functions.inc?
I didn't know there was a mailing list plugin. Where did you find it?
Re: Mailing List Plug In
Posted on: 01/14/08 08:03pm
By: Anonymous (BMcDonald)
I got the plug in a long time ago. I installed it and it's just been sitting there since I didn't need it. I just looked and I can't even find the original files.
Here's what starts on line 907
foreach ($ml_id as $id) {
if (!array_key_exists($id, $_ML_PERMS) || $_ML_PERMS[$id] < 2) {
$retval .= lists_message($_LISTSTXT[169]);
$retval .= lists_display($email);
return $retval;
}
}
Re: Mailing List Plug In
Posted on: 01/14/08 09:53pm
By: jmucchiello
That plugin is for Geeklog 1.3.8 or so. I found it on sourceforge. I doubt it works with 1.4.1. I hope you aren't running such an old website.
In answer to your question, $ml is probably not set, it definitely is not an array (that's what the error means). It probably relies on register_globals being on. Most PHP environments today leave register_globals off.