Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warning: main(includes/languages/)


manfredlichti

Recommended Posts

Hello all....

 

In my Configuration I have english set as the default language. In the admin/includes/configuration.php file I have the language set to english. In the /includes/configuration.php file I have the language set to english. But would like it to be set to german, since I am running the shop in germany.... But when I change any of those to german I get the following error:

 

Warning: main(includes/languages/) [function.main]: failed to open stream: No such file or directory in /usr/local/www/data-dist/oscommerce/catalog/includes/application_top.php on line 285

 

Fatal error: main() [function.require]: Failed opening required 'includes/languages/' (include_path='.:') in /usr/local/www/data-dist/oscommerce/catalog/includes/application_top.php on line 285

 

I have played around for HOURS with different settings with NO luck... here are my two configuration.php files

 

/includes/configuration.php:

 

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://shop.lichti.com'); // eg, http://localhost - should not be empty for productive servers

# define('HTTPS_SERVER', 'https://www.shop.lichti.com'); // eg, https://localhost - should not be empty for productive serve

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'shop.lichti.com');

# define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '/catalog/');

define('HTTPS_COOKIE_PATH', '');

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', '');

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

define('DIR_WS_IMAGES', 'includes/languages/english/images/buttons/');

define('DIR_WS_IMAGES', 'includes/languages/german/images/buttons/');

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

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_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', '/usr/local/www/data/oscommerce/catalog/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

 

admin/includes/configuration.php:

 

 

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://shop.lichti.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://shop.lichti.com/catalog');

# define('HTTPS_CATALOG_SERVER', 'https://www.shop.lichti.com/');

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

define('DIR_FS_DOCUMENT_ROOT', '/usr/local/www/data/oscommerce/catalog/'); // where the pages are located on the server

define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required

define('DIR_FS_ADMIN', '/usr/local/www/data/oscommerce/catalog/admin/'); // absolute path required

define('DIR_WS_CATALOG', '/catalog/'); // absolute path required

define('DIR_FS_CATALOG', '/usr/local/www/data/oscommerce/catalog/'); // absolute path required

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

# define('DIR_WS_IMAGES', 'includes/languages/english/images/buttons/');

define('DIR_WS_IMAGES', 'includes/languages/german/images/buttons/');

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

 

 

Please help this is driving me a little nuts.

thank you

Link to comment
Share on other sites

just a follow up...

 

its the /usr/local/www/data-dist/oscommerce/catalog/includes/application_top.php and the /usr/local/www/data-dist/oscommerce/catalog/admin/includes/application_top.php that I have the english.php set in sorry about that... really hope this information helps with my problem

 

thanks again

Link to comment
Share on other sites

another:

 

When not having a language listed, just .php entered I can get to the Catalog page... when clicking on the login page I get the following error:

 

Warning: main(includes/languages/.php) [function.main]: failed to open stream: No such file or directory in /usr/local/www/data-dist/oscommerce/catalog/includes/application_top.php on line 285

 

Fatal error: main() [function.require]: Failed opening required 'includes/languages/.php' (include_path='.:') in /usr/local/www/data-dist/oscommerce/catalog/includes/application_top.php on line 285

 

Its a viscous circle... please help

thank you

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...