Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Errors in Admin->Tools->Define Languages


Guest

Recommended Posts

Posted

I am installing and setting up a new store. In the admin area when I select tools and either Define Languages or File Manager I get errors. I've looked at the lines referenced and in the configure file, but can't figure out what's wrong.

 

 

The errors are as follows:

 

File Manager

Warning: dir(DIR_FS_DOCUMENT_ROOT): failed to open dir: No such file or directory in /home/thebros/public_html/luggagelocks/admin/file_manager.php on line 178

 

Fatal error: Call to a member function on a non-object in /home/thebros/public_html/luggagelocks/admin/file_manager.php on line 179

 

Define Languages

Warning: dir(DIR_FS_CATALOG_LANGUAGESenglish): failed to open dir: No such file or directory in /home/thebros/public_html/luggagelocks/admin/define_language.php on line 152

english.php

 

Any help is appreciated as I haven't found anything like this by searching the forums.

 

Thanks

Posted

When you see capital letters in an error like that, it means a definition can't be found. DIR_FS_DOCUMENT_ROOT is defined in the configure file so I would guess the mistake is there. You can post it here, minus sensitive data, if you can't find the problem.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted
When you see capital letters in an error like that, it means a definition can't be found. DIR_FS_DOCUMENT_ROOT is defined in the configure file so I would guess the mistake is there. You can post it here, minus sensitive data, if you can't find the problem.

 

Jack

 

 

I've tried to look through it and make some changes, but then the whole page crashes. I've put back the original and here it is, any help is greatly appreciated.

 

 

define('HTTP_SERVER', 'http://www.thebrotherscarpenter.com');

define('HTTP_CATALOG_SERVER', '');

define('HTTPS_CATALOG_SERVER', '');

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

define('DIR_WS_ADMIN', '/luggagelocks/admin/');

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

define('DIR_WS_CATALOG', '/luggagelocks/');

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

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', DIR_WS_CATALOG . 'includes/languages/');

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_BACKUP', DIR_FS_ADMIN . 'backups/');

Posted
Try chainging this
define('HTTP_CATALOG_SERVER', '');

to this

define('HTTP_CATALOG_SERVER', 'http://www.thebrotherscarpenter.com');

 

Jack

 

 

When I make that change I get the error:

 

Warning: mysql_connect(): Access denied for user 'thebros_osc2'@'localhost' (using password: YES) in /home/thebros/public_html/luggagelocks/admin/includes/functions/database.php on line 19

Unable to connect to database server!

 

Should I change this line of the bottom where the DB connection is defined to include the domain?

 

define('DB_SERVER', 'localhost');

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...