Full service web hosting, great prices and support. Starts at $1.99/month!
Results 1 to 10 of 10

Thread: Customers cannot create accounts?

  1. #1
    WebMistress
    Guest


    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 ::

  2. #2
    osCMax Developer


    Customers cannot create accounts?


    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    23,134
    Contribute If you enjoy reading the
    content here, click the below
    image to support our site.
    Click Here To Contribute To Our Site

    Total Contributions For

    michael_s     $ 10.00
    Rep Power
    597


    Default

    OR you could add the field 'entry_zipcode' to the addressbook table...

  3. #3
    WebMistress
    Guest


    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?

  4. #4
    WebMistress
    Guest


    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>

  5. #5
    osCMax Developer


    Customers cannot create accounts?


    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    23,134
    Contribute If you enjoy reading the
    content here, click the below
    image to support our site.
    Click Here To Contribute To Our Site

    Total Contributions For

    michael_s     $ 10.00
    Rep Power
    597


    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...

  6. #6
    WebMistress
    Guest


    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::

  7. #7
    WebMistress
    Guest


    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...

  8. #8
    osCMax Developer


    Customers cannot create accounts?


    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    23,134
    Contribute If you enjoy reading the
    content here, click the below
    image to support our site.
    Click Here To Contribute To Our Site

    Total Contributions For

    michael_s     $ 10.00
    Rep Power
    597


    Default

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

  9. #9
    WebMistress
    Guest


    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);
    }
    }
    }
    ?>

  10. #10
    WebMistress
    Guest


    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?

Similar Threads

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

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •