Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Aug 2007
    Posts
    11
    Plugin Contributions
    0

    Default database error after changing admin folder

    I have spent all of today trying to fix this error after following the advice to change my admin folder name.

    It has been hell and my shop is now showing the page - Cannot connect to database!!

    I have ready many posts and not found a solution yet.

    I have checked my php and a second EMPTY database has been created (don't know how) I think my shop may be pointing to this empty database.

    After changing the name of the admin folder and following the other instructions I am unable to connect to the back office. Just get the error
    ERROR: [NEWFOLDERNAME]/includes/configure.php file not found. Suggest running zc_install/index.php?

    I can, however, login with the old address [admin/] as the folder is still on my server.
    I have not changed the password to the DB

    What can I do?

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: database error after changing admin folder

    I can, however, login with the old address [admin/] as the folder is still on my server.
    How did you create the new folder contents?
    Do you have in this new folder a /includes/configure.php file?
    Is this file edited to reflect your new admin folder name?
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Aug 2007
    Posts
    11
    Plugin Contributions
    0

    Default Re: database error after changing admin folder

    Quote Originally Posted by kobra View Post
    How did you create the new folder contents?
    Do you have in this new folder a /includes/configure.php file?
    Is this file edited to reflect your new admin folder name?
    The shop had been working fine until I change the admin folder name for extra security.

    I use Dreamweaver to change and upload to the server. All the files within the old folder ADMIN and the new folder have the same files. The configure file is in both.

    I can log into the back office but cannot view my site at www.chocolatefalls.co.uk

    Yes the file is updated to the new folder name, although I am unable to log into the back office with the new folder name only with the old ADMIN address.

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: database error after changing admin folder

    ERROR: [NEWFOLDERNAME]/includes/configure.php file not found.
    This states that you do not

    Check file byte sizes
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Aug 2007
    Posts
    11
    Plugin Contributions
    0

    Default Re: database error after changing admin folder

    Yes I know that is what it means. But the file is viewable on the server so I know that it is there.

    define('DIR_WS_ADMIN', '/choccart/newname/');
    define('DIR_WS_CATALOG', '/choccart/');
    define('DIR_WS_HTTPS_ADMIN', '/choccart/newname/');
    define('DIR_WS_HTTPS_CATALOG', '/chocolatefalls-scotland/choccart/');


    // * DIR_FS_* = Filesystem directories (local/physical)
    //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
    define('DIR_FS_ADMIN', '//www/chocolatefalls-scotland/choccart/newname/');
    define('DIR_FS_CATALOG', '//www/chocolatefalls-scotland/choccart/');

    My main issue to try and fix is the database error when I try to visit the shop so that the shop is open again

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: database error after changing admin folder

    My main issue to try and fix is the database error when I try to visit the shop so that the shop is open again
    As you should have only been working on the admin side - your frontend should not have been affected....
    check your /includes files for modified date as none should be recent
    i.e. date you started this or later
    Zen-Venom Get Bitten

  7. #7
    Join Date
    Aug 2007
    Posts
    11
    Plugin Contributions
    0

    Default Re: database error after changing admin folder

    Quote Originally Posted by kobra View Post
    As you should have only been working on the admin side - your frontend should not have been affected....
    check your /includes files for modified date as none should be recent
    i.e. date you started this or later
    Just completed the check on the includes/ folders. Was hoping to find an error...but the files have not been amended.

    Not looking good so far.

    In PHPMyadmin I was trying to find out how I can delete the empty database that appeared. There does not seem to be a button to do this.

    Maybe my shop is pointing to the empty database file?
    I don't know how I could find this out!

  8. #8
    Join Date
    Aug 2007
    Posts
    11
    Plugin Contributions
    0

    Default Re: database error after changing admin folder

    Now getting somewhere!

    My back office is now working using the new admin folder.

    Still have the same error when trying to visist the shop at www.chocolatefalls-scotland.co.uk

  9. #9
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: database error after changing admin folder

    Maybe my shop is pointing to the empty database file?
    I don't know how I could find this out!
    Still have the same error when trying to visist the shop
    Sama answer for both.

    As you are now connecting to the DB for the admin - Compare the DB entries that are in the admin configure to those that are in the frontend configure
    Zen-Venom Get Bitten

  10. #10
    Join Date
    Aug 2007
    Posts
    11
    Plugin Contributions
    0

    Default Re: database error after changing admin folder

    Thank you, Thank you, Thank you, Thank you,

    Look at it for 8 HOURS!!! you just can't see things sometimes. Needed you just to direct me.

    Thanks again

    Hopefully not spoken too soon!!! But I'm sure it will be fine now.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. 404 error after changing name od admin folder
    By wagnerguy in forum Basic Configuration
    Replies: 27
    Last Post: 24 Dec 2011, 06:10 AM
  2. Problems after changing name of admin folder
    By pbhewitt in forum General Questions
    Replies: 4
    Last Post: 2 Oct 2010, 01:01 PM
  3. 403 error after changing name of admin folder
    By YZ250 in forum General Questions
    Replies: 8
    Last Post: 7 Jul 2009, 07:40 AM
  4. Problems after changing admin folder name
    By barbaraj1111 in forum General Questions
    Replies: 2
    Last Post: 26 Aug 2008, 08:41 PM
  5. Problem Accessing Admin After Changing Folder Name
    By enchantedone in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 12 Jun 2006, 05:13 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