Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Catalog Confige problem


Guest

Recommended Posts

Dear All,

 

I have now solved the Admin/includes/confige.php issue everything works again! But using the same paths in Catalog/includes/confige.php results in an error message see below.

 

Warning: require(includes/languages/.php) [function.require]: failed to open stream: No such file or directory in D:\Hosting\4471283\html\catalog\includes\application_top.php on line 287

 

Fatal error: require() [function.require]: Failed opening required 'includes/languages/.php' (include_path='.;C:\php5\pear') in D:\Hosting\4471283\html\catalog\includes\application_top.php on line 287

 

My catalog/includes/config.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://www.janolidesignsstore.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://www.janolidesignsstore.com'); // eg, https://localhost - should not be empty for productive servers

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

define('HTTP_COOKIE_DOMAIN', 'www.janolidesignsstore.com');

define('HTTPS_COOKIE_DOMAIN', '.janolidesignsstore.com');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

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

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

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

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', 'D:/Hosting/4471283/html/catalog/');

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

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

 

Anybody?!?

Link to comment
Share on other sites

I'd say you're missing a language file. Check the catalog/includes/languages directory if there are any files in there. If not, copy the ones from the installation package back in there. Another problem could be that the database table with the languages is empty or corrupt.

Link to comment
Share on other sites

I'd say you're missing a language file. Check the catalog/includes/languages directory if there are any files in there. If not, copy the ones from the installation package back in there. Another problem could be that the database table with the languages is empty or corrupt.

 

I think you're correct that the database table with languages is corrupt as it is not empty, all the files are present in the catalog/includes/languages directory. Do you have any suggestions how to solve this?

 

Thanks

Link to comment
Share on other sites

You can check if it is system related or browser related by typing the following into your browser address bar: www.yourdomain.com/catalog/index.php?language=en . The important part is the language=en. This forces your shop to use the english language (if installed). If it comes up correctly, your shop is ok but your browser doesn't submit any information about the used language. If it still comes up with the error, there must be a bug in your system somewhere.

Link to comment
Share on other sites

You can check if it is system related or browser related by typing the following into your browser address bar: www.yourdomain.com/catalog/index.php?language=en . The important part is the language=en. This forces your shop to use the english language (if installed). If it comes up correctly, your shop is ok but your browser doesn't submit any information about the used language. If it still comes up with the error, there must be a bug in your system somewhere.

 

 

I am afraid that that there is a bug in my system...this is what is displayed.

 

Fatal error: Call to a member function add_current_page() on a non-object in D:\Hosting\4471283\html\catalog\includes\application_top.php on line 311

Link to comment
Share on other sites

I'd say it's an issue of your configure.php settings since the function just uses the submitted parameters. Here's an example of the configure.php. Installed yesterday with a clean shop in subdirectory /catalog.

 

<?php
 define('HTTP_SERVER', 'http://127.0.0.1');
 define('HTTPS_SERVER', 'http://127.0.0.1');
 define('ENABLE_SSL', false);
 define('HTTP_COOKIE_DOMAIN', '127.0.0.1');
 define('HTTPS_COOKIE_DOMAIN', '127.0.0.1');
 define('HTTP_COOKIE_PATH', '/OSCTest/catalog/');
 define('HTTPS_COOKIE_PATH', '/OSCTest/catalog/');
 define('DIR_WS_HTTP_CATALOG', '/OSCTest/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '/OSCTest/catalog/');
 define('DIR_WS_IMAGES', 'images/');
 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', 'C:/homepages/OSC/catalog/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 define('DB_SERVER', 'localhost');
 define('DB_SERVER_USERNAME', '****');
 define('DB_SERVER_PASSWORD', '*****');
 define('DB_DATABASE', 'OSC_test');
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', 'mysql');
?>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...