Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error message

Status
Not open for further replies.

JonoB

Programmer
May 29, 2003
147
GB
When creating a new account, the following error message is returned. Note that the account is actually created, even though the error message appears. How do I stop the error message being generated?

Thanks for the help!

Warning: reset() [function.reset]: Passed variable is not an array or object in /home/ on line 71

Warning: Variable passed to each() is not an array or object in /home/ on line 72

Fatal error: Call to a member function on a non-object in /home/ on line 970
Query was empty - Query was empty

Query was empty

[TEP STOP]


Warning: Unknown(): A session is active. You cannot change the session module's ini settings at this time. in Unknown on line 0
 
I have the same problem. create_account.php calls tep_mail(). tep_mail() passes an array of email headers to the email() constructor. Unfortunately, the array type and values get corrupted in transit. This in turn causes the each() function to fail. This is as much as I understand.

Have you solved the problem yet? I would be very interested in any progress that you might have made.
 
Yup, actually very easily. This is a documented problem in osCommerce. Basically, the problem is that if you do not have the "State" field in customer account creation (which you can speciify in Admin panel), then this error is generated. To test if this is the case in your scenario, turn on the State in admin and try create an account. If there are no more problems, bingo!

I cant remember the fix that I used (I am pretty sure that I had to edit create_account.php) as it was a couple of months ago, but if you do a seach of the official osCommerce forums, you will find a fix.

Try either searching for my username (JonoB) or "email.php on line 71" should do the trick.

You can check our my webpage at to see this in action.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top