Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2008
    Location
    Qld, Australia
    Posts
    257
    Plugin Contributions
    6

    Default Admin | Customers edit customer undefined key when customer fax turned off

    zc157d vanilla with PHP 8.0

    Minor bug
    Warning Undefined array key "customers_fax" in admin\customers.php on line 92.

    This occurs when Admin | Configuration | Customer Details | Fax Number = false
    and Customer Details are edited.

    I changed (changes in red)
    Code:
    $customers_fax = zen_db_prepare_input($_POST['customers_fax'] );
    to
    Code:
    $customers_fax = zen_db_prepare_input(($_POST['customers_fax'] ?? ''));

  2. #2
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,586
    Plugin Contributions
    30

    Default Re: Admin | Customers edit customer undefined key when customer fax turned off

    Most of these things have already been dealt with on Github, always worth having a search in the issues there first:
    https://github.com/zencart/zencart/pull/3618
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

 

 

Similar Threads

  1. customer tele required though turned off
    By fotofix in forum Basic Configuration
    Replies: 2
    Last Post: 2 Jul 2011, 11:21 AM
  2. Featured Products showing price even when turned off in admin.
    By Nineve in forum Customization from the Admin
    Replies: 1
    Last Post: 28 Jul 2010, 05:50 PM
  3. Replies: 1
    Last Post: 8 Oct 2009, 06:35 PM
  4. When I click on EDIT for a customer under Admin I get a SQL error
    By mheishman in forum Managing Customers and Orders
    Replies: 3
    Last Post: 3 Dec 2008, 09:41 PM
  5. Replies: 13
    Last Post: 16 Mar 2007, 09:08 PM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR