Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2006
    Posts
    9
    Plugin Contributions
    0

    Default Re-installing a damaged directory

    I'm using ver 1.3.01. I'd damaged some files in my ADMIN directory, and so re-installed a fresh copy of it. I copy the old config.php in the new ADMIN.

    When I tried to access the Administrator tool I got the following screen:


    Warning: main(includes/init_includes/init_file_db_names.php): failed to open stream: No such file or directory in /home/montanip/public_html/zencart/includes/autoload_func.php on line 47

    Warning: main(includes/init_includes/init_file_db_names.php): failed to open stream: No such file or directory in /home/montanip/public_html/zencart/includes/autoload_func.php on line 47

    Warning: main(): Failed opening 'includes/init_includes/init_file_db_names.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/montanip/public_html/zencart/includes/autoload_func.php on line 47
    1146 Table 'montanip_zc1.TABLE_DB_CACHE' doesn't exist
    in:
    [delete from TABLE_DB_CACHE]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

    Any thoughts on what next here?

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

    Default Re: Re-installing a damaged directory

    It would seem that the indicated file:
    includes/init_includes/init_file_db_names.php
    didn't upload properly.

    Perhaps your FTP experienced a timeout?
    .

    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.

  3. #3
    Join Date
    Jul 2006
    Posts
    9
    Plugin Contributions
    0

    Default Re: Re-installing a damaged directory

    Ok, so I reloaded that individual file to its proper directory & again tried accessing my administrator; same message

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

    Default Re: Re-installing a damaged directory

    The error message means it's having trouble finding the required files.

    So ... either your /admin/includes/configure.php is busted, bad, incomplete, or blank ..... or your admin files are not uploaded properly (meaning, maybe not all of them loaded during FTP, or some are 0-bytes, or are otherwise bad).

    Start by posting your /admin/includes/configure.php AND your /includes/configure.php ... without passwords here.
    And perhaps re-upload the /admin/ folder fresh ... again (ya, I know... for the umpteenth time...)
    .

    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.

  5. #5
    Join Date
    Jul 2006
    Posts
    9
    Plugin Contributions
    0

    Default Re: Re-installing a damaged directory

    Re-uploaded entire ADMIN folder again; here's a copy of the configure.php file from my old ADMIN folder
    PHP Code:
      define('HTTP_SERVER''http://montanipublishing.com');
      
    define('HTTPS_SERVER''https://montanipublishing.com');
      
    define('HTTP_CATALOG_SERVER''http://montanipublishing.com');
      
    define('HTTPS_CATALOG_SERVER''https://montanipublishing.com');

      
    // Use secure webserver for catalog module and/or admin areas?
      
    define('ENABLE_SSL_CATALOG''false');
      
    define('ENABLE_SSL_ADMIN''false');

    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
      // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
      
    define('DIR_WS_ADMIN''/zencart/admin/');
      
    define('DIR_WS_CATALOG''/zencart/');
      
    define('DIR_WS_HTTPS_ADMIN''/zencart/admin/');
      
    define('DIR_WS_HTTPS_CATALOG''/zencart/');

      
    define('DIR_WS_IMAGES''images/');
      
    define('DIR_WS_ICONS'DIR_WS_IMAGES 'icons/');
      
    define('DIR_WS_CATALOG_IMAGES'HTTP_CATALOG_SERVER DIR_WS_CATALOG 'images/');
      
    define('DIR_WS_CATALOG_TEMPLATE'HTTP_CATALOG_SERVER DIR_WS_CATALOG 'includes/templates/');
      
    define('DIR_WS_INCLUDES''includes/');
      
    define('DIR_WS_BOXES'DIR_WS_INCLUDES 'boxes/');
      
    define('DIR_WS_FUNCTIONS'DIR_WS_INCLUDES 'functions/');
      
    define('DIR_WS_CLASSES'DIR_WS_INCLUDES 'classes/');
      
    define('DIR_WS_MODULES'DIR_WS_INCLUDES 'modules/');
      
    define('DIR_WS_LANGUAGES'DIR_WS_INCLUDES 'languages/');
      
    define('DIR_WS_CATALOG_LANGUAGES'HTTP_CATALOG_SERVER DIR_WS_CATALOG 'includes/languages/');

    // * 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''/home/montanip/public_html/zencart/admin/');
      
    define('DIR_FS_CATALOG''/home/montanip/public_html/zencart/');

      
    define('DIR_FS_CATALOG_LANGUAGES'DIR_FS_CATALOG 'includes/languages/');
      
    define('DIR_FS_CATALOG_IMAGES'DIR_FS_CATALOG 'images/');
      
    define('DIR_FS_CATALOG_MODULES'DIR_FS_CATALOG 'includes/modules/');
      
    define('DIR_FS_CATALOG_TEMPLATES'DIR_FS_CATALOG 'includes/templates/');
      
    define('DIR_FS_BACKUP'DIR_FS_ADMIN 'backups/');
      
    define('DIR_FS_EMAIL_TEMPLATES'DIR_FS_CATALOG 'email/');
      
    define('DIR_FS_DOWNLOAD'DIR_FS_CATALOG 'download/');

    // define our database connection
      
    define('DB_TYPE''mysql');
      
    define('DB_PREFIX''zen_');
      
    define('DB_SERVER''localhost'); // eg, localhost - should not be empty
      
    define('DB_SERVER_USERNAME''*******');
      
    define('DB_SERVER_PASSWORD''******');
      
    define('DB_DATABASE''montanip_zc1');
      
    define('USE_PCONNECT''false'); // use persistent connections?
      
    define('STORE_SESSIONS''db'); // leave empty '' for default handler or set to 'db'

      // The next 2 "defines" are for SQL cache support.
      // For SQL_CACHE_METHOD, you can select from:  none, database, or file
      // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache 
      // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
      // ie: /path/to/your/webspace/public_html/zen/cache   -- leave no trailing slash  
      
    define('SQL_CACHE_METHOD''database'); 
      
    define('DIR_FS_SQL_CACHE''/home/montanip/public_html/zencart/cache'); 
    Last edited by DrByte; 8 Aug 2006 at 09:03 PM. Reason: removed attachment and password

 

 

Similar Threads

  1. I have installed to a directory. How do I rename or move that directory?
    By nelly7 in forum Installing on a Linux/Unix Server
    Replies: 9
    Last Post: 18 Dec 2011, 11:15 PM
  2. Remove a damaged shipping module
    By FrankDeRosa in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 18 Jun 2009, 05:18 PM
  3. Who insures goods damaged in transit?
    By Peekay in forum General Questions
    Replies: 2
    Last Post: 4 Apr 2007, 04:25 PM
  4. installing Easy Pop in the right directory, which one.?.
    By caffiendo in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 2 Feb 2007, 07:52 PM

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