Zen Cart Logo
Forums / Basic Configuration / Re-installing a damaged directory

Re-installing a damaged directory

Locked

Views: 1,567

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
7 Aug 2006, 12:58 PM
#1
davetabler avatar

davetabler

New Zenner

Join Date:
Jul 2006
Posts:
9
Plugin Contributions:
0

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?

7 Aug 2006, 7:21 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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?

7 Aug 2006, 7:29 PM
#3
davetabler avatar

davetabler

New Zenner

Join Date:
Jul 2006
Posts:
9
Plugin Contributions:
0

Re: Re-installing a damaged directory

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

7 Aug 2006, 11:12 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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...)

8 Aug 2006, 1:26 PM
#5
davetabler avatar

davetabler

New Zenner

Join Date:
Jul 2006
Posts:
9
Plugin Contributions:
0

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
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');