Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Upgrade: Missing ADMIN_NAME_MINIMUM_LENGTH

    The subject configuration setting, introduced in zc156, gets added to the site's configuration table on an initial install ... but not when a site's database is upgraded.

    This results in a log similar to the following on a user-update in the admin:
    Code:
    [02-Aug-2019 17:41:38 UTC] Request URI: /myadmin/users.php, IP address: 47.49.36.106
    #1  zen_update_user() called at [/home/my_site/mysite/myadmin/users.php:73]
    --> PHP Notice: Use of undefined constant ADMIN_NAME_MINIMUM_LENGTH - assumed 'ADMIN_NAME_MINIMUM_LENGTH' in /home/my_site/mysite/myadmin/includes/functions/admin_access.php on line 192.
    To correct, you'll need to copy/paste and then run the following SQL script in your admin's Tools->Install SQL Patches:
    Code:
    INSERT INTO configuration (configuration_title, configuration_key, configuration_value, val_function, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Admin Usernames', 'ADMIN_NAME_MINIMUM_LENGTH', '4', '{"error":"TEXT_MIN_ADMIN_USER_LENGTH","id":"FILTER_VALIDATE_INT","options":{"options":{"min_range":4}}}', 'Minimum length of admin usernames (must be 4 or more)', '2', '18', now());

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: Upgrade: Missing ADMIN_NAME_MINIMUM_LENGTH

    Noting that the issue will be corrected in-core for zc157, based on this commit: https://github.com/zencart/zencart/c...d119ca048fa362

  3. #3
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,696
    Plugin Contributions
    123

    Default Re: Upgrade: Missing ADMIN_NAME_MINIMUM_LENGTH

    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 

Similar Threads

  1. v151 Missing Products after upgrade
    By Stevis2002 in forum Upgrading to 1.5.x
    Replies: 23
    Last Post: 13 Nov 2013, 05:43 PM
  2. Images missing after upgrade
    By moggi1964 in forum Upgrading from 1.3.x to 1.3.9
    Replies: 6
    Last Post: 26 Apr 2011, 01:32 PM
  3. EZ Pages missing after Upgrade
    By schwarzes in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 1 Oct 2010, 01:07 PM
  4. HTMLarea missing after 1.3.5 upgrade
    By Jeff_Mash in forum General Questions
    Replies: 4
    Last Post: 5 Sep 2006, 04:52 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