Results 1 to 10 of 10
  1. #1
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,371
    Plugin Contributions
    23

    Default missing items on admin dropdown menu and other problems

    Someone installed this client's site and somehow screwed it up. The users and the profiles are missing from the dropdown menu for superusers. If you go straight to the users.php file, the edit button has FILENAME_USERS instead of users on it. A hint as to what to do to fix this would be great. It must be a database thing? I've made sure the correct admin files are uploaded to admin. There has been some work done in admin but not anything major that I can see.
    The full-time Zen Cart Guru. WizTech4ZC.com
    New template for 2.0 viewable here: 2.0 Demo

  2. #2
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: missing items on admin dropdown menu and other problems

    You are probably missing an button image. I can't tell you which, because there are multiple FILENAME_USERS references in the user.php. Compare your buttons with a fresh install. If you have more than one language be sure to check al the languages.
    the folder is YOUR_ADMIN/include/languages/YOUR_LAGUAGE/images/buttons/

  3. #3
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,371
    Plugin Contributions
    23

    Default Re: missing items on admin dropdown menu and other problems

    This has nothing to do with buttons - the dropdown menus are css dropdowns. Thanks for the effort.
    The full-time Zen Cart Guru. WizTech4ZC.com
    New template for 2.0 viewable here: 2.0 Demo

  4. #4
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: missing items on admin dropdown menu and other problems

    Quote Originally Posted by delia View Post
    Someone installed this and somehow screwed it up. The users and the profiles are missing from the dropdown menu for superusers. If you go straight to the users.php file, the edit button has FILENAME_USERS instead of users on it. A hint as to what to do to fix this would be great. It must be a database thing? I've made sure the correct admin files are uploaded to admin. There has been some work done in admin but not anything major that I can see.
    1) Are they missing for ONLY superusers? Or are they missing for ALL users?
    2) Was this a clean 1.5.0 installation? Was this an upgrade from a previous installation of Zen Cart on the host? Was this a move from another location?
    3) Is there a reason you have not moved to 1.5.1 which includes a number of fixes and enhancements?
    4) Do you have a working backup of the admin related database entries and files?

    Off the top of my head, I would guess you are right, someone screwed up the installation. The drop-downs you refer to are generated based upon content in the Zen Cart database. Missing data in the admin related tables WILL cause items to not show up here. Also as Design75 pointed out, something is most likely missing in your language files (or the configuration file).

    What do you see when you execute the following SQL Queries (add your zen_cart prefix if you have one to the table names)?
    Code:
    SELECT * FROM `admin_menus` WHERE `menu_key` = 'access';
    SELECT * FROM `admin_pages` WHERE `menu_key` = 'access';
    If the site does not already have a large amount of content added to the database and either of those queries return no data... you might want to just delete the installation and database. Otherwise you may need to manually merge database rows as well as Zen Cart files.

  5. #5
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,371
    Plugin Contributions
    23

    Default Re: missing items on admin dropdown menu and other problems

    Yeah, I had nothing to do with the setup but looks like someone installed 1.5 from his own set of files and then did a smidge of customization. Don't think he knew what he was doing. Only one superuser so I think I'm going to dump the admin menus and pages and insert the default ones. I did upload all admin files so I'm sure I'm not missing files. Thinking about it, if the user doesn't have something on the dropdown but knows the link then perhaps there's where you run into the problem of the missing language key - no permission so it doesn't work correctly. Learning 1.5 is like starting all over again sometimes!

    Thanks for answering.
    The full-time Zen Cart Guru. WizTech4ZC.com
    New template for 2.0 viewable here: 2.0 Demo

  6. #6
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: missing items on admin dropdown menu and other problems

    Quote Originally Posted by delia View Post
    Yeah, I had nothing to do with the setup but looks like someone installed 1.5 from his own set of files and then did a smidge of customization. Don't think he knew what he was doing.
    I feel your pain. I remember having to deal with an installation of 1.3.8 I "inherited" (1.5.0 was released a few days later). The previous person went mucking around in the database just placing data where they thought it should go - and managed to break (among other things) the entire attribute section. Not to mention lots of broken, outdated, and improperly installed plugins.

    Quote Originally Posted by delia View Post
    ... Thinking about it, if the user doesn't have something on the dropdown but knows the link then perhaps there's where you run into the problem of the missing language key - no permission so it doesn't work correctly...
    Zen Cart 1.5 usually just displays a "You do not have permission" page when this occurs.

    FILENAME_USERS is usually defined in "includes/filenames.php" (not an admin file). In the admin configuration if "DIR_FS_CATALOG" or "DIR_WS_INCLUDES" are not defined correctly this file will not be loaded.

    Quote Originally Posted by delia View Post
    ...Learning 1.5 is like starting all over again sometimes!...
    Especially the admin code and database. Although I am very happy with the changes!

  7. #7
    Join Date
    Jan 2004
    Posts
    66,445
    Plugin Contributions
    81

    Default Re: missing items on admin dropdown menu and other problems

    Right. Sounds like filenames.php hasn't been upgraded with the rest of the site, or has been replaced with an old version by a poorly-written addon. (No addon should ever touch filenames.php ... those changes belong in extra_datafiles defines instead)
    .

    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.

  8. #8
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,371
    Plugin Contributions
    23

    Default Re: missing items on admin dropdown menu and other problems

    I have uploaded the correct files to admin.

    I have checked the database and it all matches the default install.

    I searched for FILENAME_USERS in admin and didn't find it either in the problem site or a default - duh, guess what I didn't realize? It's the filenames.php in the catalog, not in admin and it was missing that key define.

    Now answer me this, has zen cart always only had filenames.php in the catalog and never in admin? This simply has never come up before. I certainly don't ever touch it; Dr. Byte told me not to years ago! :)
    The full-time Zen Cart Guru. WizTech4ZC.com
    New template for 2.0 viewable here: 2.0 Demo

  9. #9
    Join Date
    Jan 2004
    Posts
    66,445
    Plugin Contributions
    81

    Default Re: missing items on admin dropdown menu and other problems

    Correct. There's no filenames.php file in the admin.
    .

    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.

  10. #10
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,371
    Plugin Contributions
    23

    Default Re: missing items on admin dropdown menu and other problems

    Yep, required elements missing in the filenames.php thinking a new upload to the catalog side is also in order - and 1.51 now that obvious problems are fixed. Thanks once again for saving me everyone!
    The full-time Zen Cart Guru. WizTech4ZC.com
    New template for 2.0 viewable here: 2.0 Demo

 

 

Similar Threads

  1. Replies: 10
    Last Post: 11 Oct 2017, 08:09 PM
  2. v150 header alignment problems and missing items
    By bodkin77 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 24 Apr 2013, 07:25 PM
  3. v151 Missing Layout Boxes Controller in Admin Tool Dropdown Menu
    By lawrence in forum General Questions
    Replies: 1
    Last Post: 12 Nov 2012, 04:06 AM
  4. Admin/Tools Menu items missing
    By organicplanet in forum General Questions
    Replies: 0
    Last Post: 26 Jan 2012, 08:47 AM
  5. Missing: Admin - Configuration Menu Items
    By ernest in forum Basic Configuration
    Replies: 0
    Last Post: 12 Apr 2007, 01:06 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