Author Topic: PHP Warning: Variable passed to each() is not an array or object in  (Read 3829 times)

jonisolis

  • Posts: 27
    • View Profile
Error messages I am getting with ListMailPro...

[10-Oct-2013 10:03:57] PHP Warning:  sort() expects parameter 1 to be array, null given in /home1/alove4ho/public_html/mail/signup.php on line 25
[10-Oct-2013 10:03:57] PHP Warning:  Variable passed to each() is not an array or object in /home1/alove4ho/public_html/mail/signup.php on line 29
[10-Oct-2013 10:03:57] PHP Warning:  reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /home1/alove4ho/public_html/mail/signup.php on line 33
[10-Oct-2013 10:03:57] PHP Warning:  Variable passed to each() is not an array or object in /home1/alove4ho/public_html/mail/signup.php on line 78
[10-Oct-2013 10:03:57] PHP Warning:  reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /home1/alove4ho/public_html/mail/signup.php on line 85
[10-Oct-2013 10:03:57] PHP Warning:  Variable passed to each() is not an array or object in /home1/alove4ho/public_html/mail/signup.php on line 88
[10-Oct-2013 10:03:57] PHP Warning:  reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /home1/alove4ho/public_html/mail/signup.php on line 111
[10-Oct-2013 10:03:57] PHP Warning:  Variable passed to each() is not an array or object in /home1/alove4ho/public_html/mail/signup.php on line 114
[10-Oct-2013 10:03:57] PHP Warning:  reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /home1/alove4ho/public_html/mail/signup.php on line 121
[10-Oct-2013 10:03:57] PHP Warning:  Variable passed to each() is not an array or object in /home1/alove4ho/public_html/mail/signup.php on line 124
[10-Oct-2013 10:03:57] PHP Warning:  reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /home1/alove4ho/public_html/mail/signup.php on line 148
[10-Oct-2013 10:03:57] PHP Warning:  Variable passed to each() is not an array or object in /home1/alove4ho/public_html/mail/signup.php on line 151
[10-Oct-2013 10:03:57] PHP Warning:  reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /home1/alove4ho/public_html/mail/signup.php on line 158

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Re: PHP Warning: Variable passed to each() is not an array or object in
« Reply #1 on: October 12, 2013, 02:53:15 pm »
Hi Joni,

Try a search in these forums for "variable passed" as there may be others who have had the same problem in the past.  (Are you sure you set the required "list" variable?)

If you still can't get it fixed, we can take a look at your signup form HTML. Please paste the code with the ACTION variable modified to protect your privacy.  "example.com" is a good domain to use.  Put your code between (code) and (/code) with square instead of round brackets for best results.

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