Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Apr 2011
    Posts
    45
    Plugin Contributions
    0

    Default Upgrade problem without admin folder

    Starting from a working 1.3.9h install, which worked fine, I modified all my .php files and uploaded them except for the admin and the zc_install folders.

    I got an error message regarding having to upgrade the db (I'm afraid I'm not able to be precise about which error msg due to it being late and me being groggy), so I started by copying the zc_folder to the server, and then started the upgrade process from there.

    It found that I had no 'admin' folder so I couldn't upgrade until I copied the admin to the server.

    Given that I had, for security reasons as required with my original fresh install, renamed the admin folder, why did I have to put a new copy of the thing on the server? Was I supposed to temporarily rename the admin-folder-with-the-changed-name back to admin?

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Upgrade path's a bit confusing...

    Yes, that's what you need to do, along with merging your customizations into the new version of the admin folder.. There are many major admin files and entire folders changed for v1.5.0, so you need to upgrade the admin as well as the storefront to get to v1.5.0.

  3. #3
    Join Date
    Apr 2011
    Posts
    45
    Plugin Contributions
    0

    Default Re: Upgrade problem without admin folder

    Well, expletives. Bloody directions didn't tell me that. Back to the drawing board on the upgrade, I guess.

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Upgrade problem without admin folder

    Just curious... how did you read the directions to mean that you didn't need to do anything with the admin files? I thought they were pretty thorough.
    Now that I think of it, maybe they didn't mention renaming /your_admin/ back to /admin/ for the file transfer - will have to check.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Upgrade problem without admin folder

    Quote Originally Posted by gjh42 View Post
    Now that I think of it, maybe they didn't mention renaming /your_admin/ back to /admin/ for the file transfer - will have to check.
    You won't find such mention, because it's not necessary.
    .

    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 2011
    Posts
    45
    Plugin Contributions
    0

    Default Re: Upgrade problem without admin folder

    When I tried to upgrade with my securely-named admin folder as-is, the upgrade wouldn't proceed and said there wasn't an admin folder. Renaming the admin folder back to 'admin' got the process running (plus changing the config files to writeable).

    I would assume that Zen Cart would know from reading the config .php file that my 'foobar' directory is indeed the admin directory, renamed...but for some reason, it didn't, and I really don't want to volunteer to do a repro 'cause I've got to get the store open for business.

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Upgrade problem without admin folder

    The catalog configure.php doesn't have any reference to what the admin foldername is, and the admin configure.php cannot be read by zc_install until it knows where the admin folder is - chicken/egg. (And in v1.5.0, the admin configure file dynamically looks up its own location and sets the define accordingly, so it is not even hard-coded into the file at all.)
    So there is really no way around renaming it back to admin for the upgrade.

  8. #8
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Upgrade problem without admin folder

    Quote Originally Posted by Servelan View Post
    When I tried to upgrade with my securely-named admin folder as-is, the upgrade wouldn't proceed and said there wasn't an admin folder. Renaming the admin folder back to 'admin' got the process running (plus changing the config files to writeable).

    I would assume that Zen Cart would know from reading the config .php file that my 'foobar' directory is indeed the admin directory, renamed...but for some reason, it didn't, and I really don't want to volunteer to do a repro 'cause I've got to get the store open for business.
    Quote Originally Posted by gjh42 View Post
    The catalog configure.php doesn't have any reference to what the admin foldername is, and the admin configure.php cannot be read by zc_install until it knows where the admin folder is - chicken/egg. (And in v1.5.0, the admin configure file dynamically looks up its own location and sets the define accordingly, so it is not even hard-coded into the file at all.)
    So there is really no way around renaming it back to admin for the upgrade.
    I repeat: The DATABASE UPGRADE option DOES NOT require the "admin" folder to be present, nor named "admin". It's immaterial to the process of upgrading the database.
    .

    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.

  9. #9
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Upgrade problem without admin folder

    Sorry, I had just done an upgrade recently and apparently forgot which folder I renamed prematurely and had to un-rename:) At least I didn't delete zc_install before ensuring the upgrade was properly finished.

  10. #10
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Upgrade problem without admin folder

    Since 1.3.9a if it finds a database containing Zen Cart content (which is the same dependency that enables the DB Upgrade button), it may SHOW A WARNING about the /admin/includes/configure.php file not being present, but the DB Upgrade button activates, and you can indeed proceed with upgrading.
    Of course, since you know there's no /admin/includes/configure.php file because your /admin/ folder is named something else, you can safely ignore the warning because you know it doesn't apply to you.
    What you need is the DB Upgrade button, which, as I said, will appear properly if the /includes/configure.php file is present and points to a database that can be validated as containing Zen Cart tables/content, and will not impede progressing toward upgrading despite the /admin/includes/configure.php file warning.

    This is in contrast to attempting an "Install", where if the /admin/includes/configure.php file is missing, it will of course prevent you from proceeding.
    .

    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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v139h confused about renamed admin folder and new admin files for upgrade
    By Pazaz in forum Upgrading to 1.5.x
    Replies: 8
    Last Post: 4 Jan 2015, 07:44 PM
  2. Admin folder rename problem with upgrade
    By lilrowo in forum General Questions
    Replies: 6
    Last Post: 10 May 2011, 06:57 AM
  3. Upgrade issues (Admin Folder)
    By uswebworx in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 5 Aug 2010, 04:30 PM
  4. SSL Upgrade / Admin Folder Change
    By uwinme in forum General Questions
    Replies: 2
    Last Post: 1 Jun 2010, 09:51 PM
  5. Upgrade from 1.3.5 to 1.3.6 : Admin folder name changed.
    By getreload in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 3 Nov 2006, 11:49 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