Page 1 of 2 12 LastLast
Results 1 to 10 of 31

Hybrid View

  1. #1
    Join Date
    Apr 2014
    Location
    Canada
    Posts
    249
    Plugin Contributions
    0

    Default Re: Unable to delete customer

    ah! I see. Didn't know that(just updated from 1.5.0) thx!

    So there's this:
    [22-Apr-2014 13:13:03 America/New_York] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /public_html/includes/functions/functions_lookups.php on line 928

    which I assume needs fixing but isn't related to this topic. And this:
    [22-Apr-2014 15:29:57 UTC] PHP Warning: array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #1 is not an array in public_html/HIDDEN/customers.php on line 1106
    [22-Apr-2014 15:29:57 UTC] PHP Warning: array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #2 is not an array in public_html/HIDDEN/customers.php on line 1108
    [22-Apr-2014 15:29:57 UTC] PHP Warning: reset() expects parameter 1 to be array, null given in public_html/HIDDEN/includes/classes/object_info.php on line 29
    [22-Apr-2014 15:29:57 UTC] PHP Warning: Variable passed to each() is not an array or object in public_html/HIDDEN/includes/classes/object_info.php on line 30

    Odd. Because it did reflect the time around which I first tried deleting the customer earlier today but I just tried again and it didn't create an entry at all...

  2. #2
    Join Date
    Apr 2014
    Location
    Canada
    Posts
    249
    Plugin Contributions
    0

    Default Re: Unable to delete customer

    Now I'm actually getting a bit concerned with this...

    In the admin activity log, there was an email address. I did some digging and came up with this:

    http://www.xjbz.gov.cn/cxfz/viewyjjy.asp?id=762

    The number listed in that box(88952634) is the number that was used for the First Name and company fields.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Unable to delete customer

    So what exactly is the concern now?
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    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.

  4. #4
    Join Date
    Apr 2014
    Location
    Canada
    Posts
    249
    Plugin Contributions
    0

    Default Re: Unable to delete customer

    Primarily that I can't delete the customer but also that the entry links back to an Asian site. Should I suspect foul play here?

  5. #5
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Unable to delete customer

    Foul play? Maybe. Bots and malicious visitors are always trying things on millions of sites every day. Could be they were hoping they could create an account that would let them send spam from your tell-a-friend page. But if you're using v151 then you probably don't have a tell-a-friend page, but they might not know that.

    Anyway, as lat9 has posted, your inability to delete the customer is probably connected to having missing country/zone details for whatever country/zone they specified. That could be a result of having deleted countries/states/zones from your database after they created that account. Whatever the cause, you can manually delete it from the database by finding the customers_id from the customers table, and then deleting that customer's record from every other table in the database (and there are lots) where that customers_id is in the table. Some tables may have multiple entries. customers_id will be in tables related to customers, addresses, orders, coupons, emails, discounts, and more: www.zen-cart.com/wiki/index.php/Developers_-_Database_Schema
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    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.

  6. #6
    Join Date
    Apr 2014
    Location
    Canada
    Posts
    249
    Plugin Contributions
    0

    Default Re: Unable to delete customer

    Quote Originally Posted by DrByte View Post
    That could be a result of having deleted countries/states/zones from your database after they created that account.
    Certainly not that I recall. There are currently 13 pages of countries & 10 pages of zones.

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,973
    Plugin Contributions
    96

    Default Re: Unable to delete customer

    It's actually the customer's address_book entry that's got the invalid/unknown country ID. Go to your webhost's cPanel and bring up phpMyAdmin.
    1. Click on the address_book table's link on the lefthand side of the display.
    2. Click the Search button and enter the id of this rogue customer as the customers_id Value and click Go.
    3. When the customer's address_book record is displayed, write down what the values for entry_country_id and entry_zone_id are and post them back here.

  8. #8
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,973
    Plugin Contributions
    96

    Default Re: Unable to delete customer

    Quote Originally Posted by plc613 View Post
    ah! I see. Didn't know that(just updated from 1.5.0) thx!

    So there's this:
    [22-Apr-2014 13:13:03 America/New_York] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /public_html/includes/functions/functions_lookups.php on line 928

    which I assume needs fixing but isn't related to this topic.
    Agreed.
    Quote Originally Posted by plc613 View Post
    And this:
    [22-Apr-2014 15:29:57 UTC] PHP Warning: array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #1 is not an array in public_html/HIDDEN/customers.php on line 1106
    [22-Apr-2014 15:29:57 UTC] PHP Warning: array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #2 is not an array in public_html/HIDDEN/customers.php on line 1108
    [22-Apr-2014 15:29:57 UTC] PHP Warning: reset() expects parameter 1 to be array, null given in public_html/HIDDEN/includes/classes/object_info.php on line 29
    [22-Apr-2014 15:29:57 UTC] PHP Warning: Variable passed to each() is not an array or object in public_html/HIDDEN/includes/classes/object_info.php on line 30

    Odd. Because it did reflect the time around which I first tried deleting the customer earlier today but I just tried again and it didn't create an entry at all...
    As with most code-related problems that result in multiple errors/warnings being issued, the first item usually cascades into a slew of related issues. That's the case here.

    The first warning indicates that, for some reason, there is no valid country reference found for the customer's record. The code, in customers.php, starting at line 1099 is, with the italicized line being 1106:
    Code:
            $country = $db->Execute("select countries_name
                                     from " . TABLE_COUNTRIES . "
                                     where countries_id = '" . (int)$customers->fields['entry_country_id'] . "'");
    
            $reviews = $db->Execute("select count(*) as number_of_reviews
                                     from " . TABLE_REVIEWS . " where customers_id = '" . (int)$customers->fields['customers_id'] . "'");
    
            $customer_info = array_merge($country->fields, $info->fields, $reviews->fields);
    Are you familiar with phpMyAdmin usage? If so, it would be interesting to see what's in the customers table for this person.

    What database collation (latin1 vs utf8) are you using? It could be as simple as a customer from China attempting to create a valid account on your site but having issues (as you are now) since there's a character-set mismatch somewhere in your configuration.

  9. #9
    Join Date
    Apr 2014
    Location
    Canada
    Posts
    249
    Plugin Contributions
    0

    Default Re: Unable to delete customer

    Quote Originally Posted by lat9 View Post
    Agreed.

    As with most code-related problems that result in multiple errors/warnings being issued, the first item usually cascades into a slew of related issues. That's the case here.

    Are you familiar with phpMyAdmin usage? If so, it would be interesting to see what's in the customers table for this person.
    Somewhat. monkey see monkey do ;)
    Quote Originally Posted by lat9 View Post
    What database collation (latin1 vs utf8) are you using? It could be as simple as a customer from China attempting to create a valid account on your site but having issues (as you are now) since there's a character-set mismatch somewhere in your configuration.
    There appears to be a mixture of latin1 and utf8. Is that fixable? I should prob. mention that prior to GeekHost I was on a shared server. So although I did not opt to using their "apps collection" to install ZC I may have been subjected to non-standard stuff. Upgrading to 1.5.1 was a breeze once I moved so at least my files are standards compliant(I use the Piccadilly Posh template)
    Last edited by plc613; 22 Apr 2014 at 07:32 PM.

  10. #10
    Join Date
    Apr 2014
    Location
    Canada
    Posts
    249
    Plugin Contributions
    0

    Default Re: Unable to delete customer

    Not certain this is what you're referring to or not:
    6 m 88952634 88952634 0001-01-01 00:00:00 safe3q###################### 6 88952634 88952634 91d3baf3026eeed25f7fd5c0eaa00914:90 1 0 HTML 0 0

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Unable to delete country
    By RiverCity in forum Basic Configuration
    Replies: 4
    Last Post: 21 Apr 2014, 02:57 PM
  2. Unable To Delete Country
    By spawnie69 in forum Managing Customers and Orders
    Replies: 10
    Last Post: 28 Nov 2012, 06:25 PM
  3. Unable to delete / create new product categories
    By gumboot in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 8 Jan 2008, 03:19 AM

Posting Permissions

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