Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2004
    Location
    Australia
    Posts
    92
    Plugin Contributions
    0

    red flag ADMIN - Customers Errors

    Hi Guys,

    Im getting these customer errors in the admin after my site upgrade.

    I think I went from 2.4 or something to the lastest version.

    Errors:
    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in admin/customers.php on line 1099

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in admin/customers.php on line 1101

    Warning: reset() [function.reset]: Passed variable is not an array or object in admin/includes/classes/object_info.php on line 29

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

    Im not sure if this would have created a problem but to get the existing customers over i just exported from the old DB to the new one.

    How do i fix this?

    EDIT:
    Also getting these errors when editing a customer:
    Warning: reset() [function.reset]: Passed variable is not an array or object in admin/includes/classes/object_info.php on line 29

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

    Chino

  2. #2
    Join Date
    Jan 2004
    Posts
    58,246
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: ADMIN - Customers Errors

    That is typically a result of bad data. The data which comprises a "customer" comes from several tables. Those errors typically appear when one or more of those tables is empty or does not contain the expected record for the selected customer.

    A proper upgrade of a Zen Cart site uses the /zc_install/index.php script to do convert the old database to the new structure. You can find the details of the upgrade process in the upgrade documentation which came with your version of Zen Cart.
    It's important to use the upgrade program because it not only preserves the data, but also handles upgrading the database structure.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Sep 2004
    Location
    Australia
    Posts
    92
    Plugin Contributions
    0

    Default Re: ADMIN - Customers Errors

    Could you advise me which tables are linked to the customers table?

  4. #4
    Join Date
    Jan 2004
    Posts
    58,246
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: ADMIN - Customers Errors

    Quote Originally Posted by Cheeky Chino View Post
    Could you advise me which tables are linked to the customers table?
    Yes, the link I posted in my previous post explains that.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Sep 2004
    Location
    Australia
    Posts
    92
    Plugin Contributions
    0

    Default Re: ADMIN - Customers Errors

    Quote Originally Posted by DrByte View Post
    Yes, the link I posted in my previous post explains that.
    Yes i clicked through your link, and i didn't really help with my situation.

    It doesnt say what tables etc are exactly upgraded changed etc, it's just saying that you should run the upgrade wizard etc...

  6. #6
    Join Date
    Jan 2004
    Posts
    58,246
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: ADMIN - Customers Errors

    Quote Originally Posted by DrByte View Post
    That is typically a result of bad data. The data which comprises a "customer" comes from several tables. Those errors typically appear when one or more of those tables is empty or does not contain the expected record for the selected customer.
    Quote Originally Posted by Cheeky Chino View Post
    Could you advise me which tables are linked to the customers table?
    Quote Originally Posted by Cheeky Chino View Post
    Yes i clicked through your link, and i didn't really help with my situation.
    The link I posted specifically answers your question about "which tables are linked to the customers table".



    Quote Originally Posted by DrByte View Post
    A proper upgrade of a Zen Cart site uses the /zc_install/index.php script to do convert the old database to the new structure. You can find the details of the upgrade process in the upgrade documentation which came with your version of Zen Cart.
    It's important to use the upgrade program because it not only preserves the data, but also handles upgrading the database structure.
    Quote Originally Posted by Cheeky Chino View Post
    It doesnt say what tables etc are exactly upgraded changed etc, it's just saying that you should run the upgrade wizard etc...
    The correct way to upgrade your database structure is to use the supplied upgrade script. It takes all of 5-10 minutes. Maybe 15 including backups.


    The documented upgrade instructions are written and supplied not just to take up disk space, but to provide a plan which will prevent you from having the problems you're reporting.


    So, since it seems you are bent on using a new database and merging data, instead of upgrading the original one, you'll need to:
    1. Upgrade your "old" database using the supplied zc_install upgrade script.
    2. Then import the tables related to customer-data.
    That way you'll have the data in the right format.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. All customers fields in ADMIN > CUSTOMERS are empty and I can't delete them!
    By plgaudreau in forum Managing Customers and Orders
    Replies: 1
    Last Post: 26 Feb 2008, 02:08 AM
  2. After two years, customers starting to get errors
    By RonnyO in forum General Questions
    Replies: 5
    Last Post: 7 Jan 2008, 04:03 AM
  3. Customers uninformed when errors occur...
    By techmon in forum PayPal Express Checkout support
    Replies: 0
    Last Post: 6 Nov 2007, 04:30 AM
  4. Admin errors on fresh installation - module errors and language definition errors
    By etrader in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 5 Oct 2007, 09:05 AM

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
  •