Welcome to Geeklog, Anonymous Friday, November 29 2024 @ 09:38 am EST

Geeklog Forums

Mailing List Plug In


BMcDonald

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

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/05
Posts: 985
What's on line 907 of functions.inc?

I didn't know there was a mailing list plugin. Where did you find it?
 Quote

BMcDonald

Anonymous
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;
}
}
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/05
Posts: 985
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.
 Quote

All times are EST. The time is now 09:38 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content