Author Topic: Signup Not working showing...  (Read 2643 times)

sam3

  • Posts: 3
    • View Profile
Signup Not working showing...
« on: May 22, 2007, 12:55:30 pm »
Hello

Please can you tell me what is meaning of the following warning as my signup form does not work. Many thanks in advance:

Here is the error I gets:

===
Warning: sort() expects parameter 1 to be array, null given in /mail/signup.php on line 25

Warning: Variable passed to each() is not an array or object in /mail/signup.php on line 29

Warning: reset(): Passed variable is not an array or object in /mail/signup.php on line 33

Warning: Variable passed to each() is not an array or object in /mail/signup.php on line 78

Warning: reset(): Passed variable is not an array or object in /mail/signup.php on line 85

Warning: Variable passed to each() is not an array or object in /mail/signup.php on line 88

Warning: reset(): Passed variable is not an array or object in /mail/signup.php on line 111

Warning: Variable passed to each() is not an array or object in /mail/signup.php on line 114

Warning: reset(): Passed variable is not an array or object in /mail/signup.php on line 121

Warning: Variable passed to each() is not an array or object in /mail/signup.php on line 124

Warning: reset(): Passed variable is not an array or object in /mail/signup.php on line 148

Warning: Variable passed to each() is not an array or object in /mail/signup.php on line 151

Warning: reset(): Passed variable is not an array or object in /mail/signup.php on line 158
ListMail Custom HTML not found! Please contact your administrator
===

Thanks & Regards
Sam

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Signup Not working showing...
« Reply #1 on: May 22, 2007, 01:53:04 pm »
Hi Sam,

The reported errors usually come up when you forget the "list" variable which tells ListMail which list to put the subscriber on.  This can happen if you browse to signup.php directly or if you forget to add the list variable to your signup form, ie:
Code: [Select]
<input type=hidden name=list value=1>
Please double check that you have defined the list to subscribe to in your signup form.

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

sam3

  • Posts: 3
    • View Profile
RE:Signup Not working showing...
« Reply #2 on: May 22, 2007, 02:02:49 pm »
Dean,

Many thanks for your speedy response. I really do appreciate it.

However, I cut and pasted what the listmailpro generated and the
list name is there. Hence:
Quote

<form method=post action=http://notadomain.com/mail/signup.php>
<input type=hidden name=list value=1>
First Name: <input type=text name=fname size=10><br>
Last Name: <input type=text name=lname size=10><br>
Email: <input type=text name=email><br>
<input type=submit name=sup value="Subscribe Me!">
</form>


Thanks & Regards,
Sam

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Signup Not working showing...
« Reply #3 on: May 22, 2007, 07:12:23 pm »
Sam,

Some (rare) web hosts have a problem with POST requests with or without the "www" on the domain.  I see that you are not using "www" at this time.  Try changing your first line from this:
Code: [Select]
<form method=post action=http://notadomain.com/mail/signup.php>
to this
Code: [Select]
<form method=post action=http://www.notadomain.com/mail/signup.php>
Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

sam3

  • Posts: 3
    • View Profile
RE:Signup Not working showing...
« Reply #4 on: May 22, 2007, 09:44:59 pm »
Dean,

You're a Genius!

It's working now. I'll continue the configuration and testing.

Thanks & Regards,

Sam

listmail3

  • Posts: 1
    • View Profile
Signup Not working showing...
« Reply #5 on: July 18, 2007, 09:56:56 pm »
I also had this problem using a wysiwyg editor in a Content Maagement System (Joomla) and found that after I pasted the code in HTML mode and then viewed it in wysiwyg mode, it changed the code.

Solution: save page while still in HTML mode.