Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recieveing error when disabling State/Province


Patabugen

Recommended Posts

Posted

I have just spent far too long trying to debug this problem.

 

What I was originally trying to do was remove the requiremenet for a phone number, at the same time I cleaned up the create account form by disabling various unneeded fields (State, Gender, DOB and Subhurb).

 

I then started recieving this error:

 

 

Warning: reset() [function.reset]: Passed variable is not an array or object in D:\MyWebDir\catalog\includes\classes\email.php on line 71

Warning: Variable passed to each() is not an array or object in D:\MyWebDir\catalog\includes\classes\email.php on line 72

Fatal error: Call to a member function on a non-object in D:\MyWebDir\catalog\includes\functions\general.php on line 1022
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

 

and spent many-an-hour restoring backups, reading code, searching forums until I re-enabled all fields and went through disabling them one by one to find that this is the problem.

 

Has anyone else had this problem? If so, I'll post a bug report... If not... why might my installation be doing this? I have a few contributions added and a custom template but nothing that I can think of that should affect this (I'll list them if need be).

Posted
I have just spent far too long trying to debug this problem.

 

What I was originally trying to do was remove the requiremenet for a phone number, at the same time I cleaned up the create account form by disabling various unneeded fields (State, Gender, DOB and Subhurb).

 

I then started recieving this error:

Warning: reset() [function.reset]: Passed variable is not an array or object in D:\MyWebDir\catalog\includes\classes\email.php on line 71

Warning: Variable passed to each() is not an array or object in D:\MyWebDir\catalog\includes\classes\email.php on line 72

Fatal error: Call to a member function on a non-object in D:\MyWebDir\catalog\includes\functions\general.php on line 1022
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

 

and spent many-an-hour restoring backups, reading code, searching forums until I re-enabled all fields and went through disabling them one by one to find that this is the problem.

 

Has anyone else had this problem? If so, I'll post a bug report... If not... why might my installation be doing this? I have a few contributions added and a custom template but nothing that I can think of that should affect this (I'll list them if need be).

 

State, gender, dob, suburb call all be diasabled via admin -> configuration -> customer_details screen

 

Telephone requries some code change in create_account.php, look around line 153 for

	if (strlen($telephone) < ENTRY_TELEPHONE_MIN_LENGTH) {
  $error = true;

  $messageStack->add('create_account', ENTRY_TELEPHONE_NUMBER_ERROR);
}

 

and change to

 

	if (strlen($telephone) < ENTRY_TELEPHONE_MIN_LENGTH) {
  $error = false;

  //$messageStack->add('create_account', ENTRY_TELEPHONE_NUMBER_ERROR);
}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...