osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Customers cannot create accounts?

This is a discussion on Customers cannot create accounts? within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; I seem to have run into yet another lovely snag. I can see customers having created accounts, yet when I ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 11-12-2003, 08:51 PM
Member
 
Join Date: Aug 2003
Location: Lost
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
WebMistress
Default Customers cannot create accounts?

I seem to have run into yet another lovely snag.

I can see customers having created accounts, yet when I click on their names with edit in the admin module, I get this error.

Warning: reset(): Passed variable is not an array or object in /home/blah/public_html/blah/admin/includes/classes/object_info.php on line 17

Warning: Variable passed to each() is not an array or object in /home/blah/public_html/blah/admin/includes/classes/object_info.php on line 18

I go, uh crud?
try to make a new account

Get this after I enter in testing info on the entry page.


1054 - Unknown column 'entry_zipcode' in 'field list'

insert into address_book (customers_id, entry_firstname, entry_lastname, entry_street_address, entry_city, entry_zipcode, entry_country_id, entry_zone_id, entry_state) values ('8', 'me', 'me', '123 nree', 'and', '46016', '223', '24', '')

[TEP STOP]

I take it this means that I have to scour every line of every single page in my files to change EVERY reference to post-code to read zip-code???

::changes sig to read
~~ O ~~
Bang Head Here ::
__________________
~~!!It did WHAT??!!~~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 11-12-2003, 08:58 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,534
Thanks: 76
Thanked 334 Times in 313 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

OR you could add the field 'entry_zipcode' to the addressbook table...
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 11-12-2003, 09:02 PM
Member
 
Join Date: Aug 2003
Location: Lost
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
WebMistress
Default

o0
really....

And this would make it much simpler?

How do I go about doing that?
Is that in the adding fields info thinggies from other questioneers?

Does that look like what it is to you as well?
An errant reference?
__________________
~~!!It did WHAT??!!~~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 11-12-2003, 09:09 PM
Member
 
Join Date: Aug 2003
Location: Lost
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
WebMistress
Default

ooh
is it here?

main catalog/address_book.php
in this line of queries?
$addresses_query = tep_db_query("select address_book_id, entry_firstname as firstname,
just add entry_zipcode as zipcode

?

----------

nope
thats not it
now I get this upon logging into said created test account

1054 - Unknown column 'entry_zipcode' in 'field list'

select address_book_id, entry_firstname as firstname, entry_lastname as lastname, entry_company as company, entry_street_address as street_address, entry_suburb as suburb, entry_city as city, entry_zipcode as zipcode, entry_postcode as postcode, entry_state as state, entry_zone_id as zone_id, entry_country_id as country_id from address_book where customers_id = '8' order by firstname, lastname

[TEP STOP]

::deletes and tries again::


ugh
I need to change something in the DB dont I>
__________________
~~!!It did WHAT??!!~~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 11-12-2003, 09:21 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,534
Thanks: 76
Thanked 334 Times in 313 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

WebMistress, don't add it to the files. Add it to the database. You have to run a mysql query on the database and insert the field.

The error tells you that the program (osCommerce) tried to access the field 'entry_zipcode' in the database, and it is not there. My solution was to add that field to the database so that you dont get the error...
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 11-12-2003, 09:24 PM
Member
 
Join Date: Aug 2003
Location: Lost
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
WebMistress
Default

|Thats what I thought
and unfortunately, I am a complete newb with all this <<like you cant tell >>, and have no clue how to run a query in the DB without a contrib.

::blehs and starts looking for something to teach that::
__________________
~~!!It did WHAT??!!~~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 11-12-2003, 09:42 PM
Member
 
Join Date: Aug 2003
Location: Lost
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
WebMistress
Default

ok I think I may have found it

in the PHPMyAdmin, do I add this?

Add new field : 1 After:line of my choice
and then make the query string on the file match??

HAVE to ask to make sure because with my luck lately, I would totally farshnuggel my entire db with the beautiful press of a single button...
__________________
~~!!It did WHAT??!!~~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 11-12-2003, 09:45 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,534
Thanks: 76
Thanked 334 Times in 313 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

WebMistress, avoid any worries and backup your db before you change anything. But yeah, that is the general idea...
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 11-12-2003, 10:00 PM
Member
 
Join Date: Aug 2003
Location: Lost
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
WebMistress
Default

::grins VERY large and proudly::
I did it
BUT
I still get this error when I try and delete the test account

Warning: reset(): Passed variable is not an array or object in /home/blah/public_html/blah/admin/includes/classes/object_info.php on line 17

Warning: Variable passed to each() is not an array or object in /home/blah/public_html/blah/admin/includes/classes/object_info.php on line 18

What the hell is the error???

This is the whole file

<?php
/*
$Id: object_info.php,v 1.6 2003/06/20 16:23:08 hpdl Exp $

5\ osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2003 osCommerce

10\ Released under the GNU General Public License
*/

class objectInfo {

15\ // class constructor
function objectInfo($object_array) {
reset($object_array);
while (list($key, $value) = each($object_array)) {
$this->$key = tep_db_prepare_input($value);
}
}
}
?>
__________________
~~!!It did WHAT??!!~~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #10  
Old 11-14-2003, 02:09 AM
Member
 
Join Date: Aug 2003
Location: Lost
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
WebMistress
Default

I THINK I figured out what the error is.
When there was a problem with the account creation, anyone that tried to make an account was only able to get their email and password done. The parse error didnt let them get any further.
If I try and edit ANY of those customers, that is when the error comes up. But if I try and edit any of the completed accounts, namely the one I made BEFORE the error started, or the new ones I made/edited after it was fixed, then all is cool.

Any ideas or should I wait until everyone gets their accounts updated and THEN worry or just leave the test acconts there?
__________________
~~!!It did WHAT??!!~~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
user accounts without email? blioux osCMax v2 Customization/Mods 3 06-27-2005 08:10 AM
Strange problem with accounts bfr osCMax v1.7 Discussion 3 10-30-2004 04:44 AM
Can't create accounts, or purchase anything from my store. pbicontact osCommerce 2.2 Modification Help 9 10-23-2004 11:53 AM
My customers can't create accounts. pbicontact osCommerce 2.2 Modification Help 3 04-05-2004 05:41 AM
Another problem with customer accounts storyleader osCMax v1.7 Installation 8 03-10-2004 08:18 AM


All times are GMT -8. The time now is 05:28 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax