Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

need help


Guest

Recommended Posts

Posted

Hi all

can get in admin but not in shop

Warning: main(DIR_WS_INCLUDESfilenames.php): failed to open stream: No such file or directory in /home/merlinsk/public_html/treasurechest/includes/application_top.php on line 53

 

Warning: main(DIR_WS_INCLUDESfilenames.php): failed to open stream: No such file or directory in /home/merlinsk/public_html/treasurechest/includes/application_top.php on line 53

 

Fatal error: main(): Failed opening required 'DIR_WS_INCLUDESfilenames.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/merlinsk/public_html/treasurechest/includes/application_top.php on line 53

this file is reading like this

// include the list of project filenames

require(DIR_WS_INCLUDES . 'filenames.php');inthe above named application top php on line 53 what I cant understand is the include_path=etc in the fatal error statement above

 

please help

Ray P

Posted

Check your catalog/includes folder.

 

Have you removed the filenames.php file

Lifes a bitch, then you marry one, then you die!

Posted
Hi all

can get in admin but not in shop

Warning: main(DIR_WS_INCLUDESfilenames.php): failed to open stream: No such file or directory in /home/merlinsk/public_html/treasurechest/includes/application_top.php on line 53

 

Warning: main(DIR_WS_INCLUDESfilenames.php): failed to open stream: No such file or directory in /home/merlinsk/public_html/treasurechest/includes/application_top.php on line 53

 

Fatal error: main(): Failed opening required 'DIR_WS_INCLUDESfilenames.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/merlinsk/public_html/treasurechest/includes/application_top.php on line 53

this file is reading like this

// include the list of project filenames

  require(DIR_WS_INCLUDES . 'filenames.php');inthe above named application top php on line 53 what I cant understand is the include_path=etc in the fatal error statement above

 

please help

Ray P

 

in configure.php define your DIR_WS_INCLUDES

Treasurer MFC

Posted
in configure.php define your DIR_WS_INCLUDES

this is the define statement

define('DIR_WS_INCLUDES', 'includes/');

 

and no the filenames.php is where it should be

 

is the define right

 

:blush:

Posted

define('DIR_WS_INCLUDES', 'includes/');

this is correct - provided that your absolute path has a closing forward slash / on the end of it.

 

Best to post your includes/configure.php here, without the database user name and password and I'll take a look at it.

 

Vger

Posted
define('DIR_WS_INCLUDES', 'includes/');

this is correct - provided that your absolute path has a closing forward slash / on the end of it.

 

Best to post your includes/configure.php here, without the database user name and password and I'll take a look at it.

 

Vger

 

Thanks any help would be appreciated

<?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://merlinskeep.co.uk'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://merlinskeep.co.uk');

define('HTTPS_CATALOG_SERVER', 'https://merlinskeep.co.uk');

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

define('DIR_FS_DOCUMENT_ROOT', '/home/merlinsk/public_html/treasurechest/'); // where the pages are located on the server

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

define('DIR_FS_ADMIN', '/home/merlinsk/public_html/treasurechest/admin/'); // absolute pate required

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

define('DIR_FS_CATALOG', '/home/merlinsk/public_html/treasurechest/'); // absolute path required

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

 

// define our database connection

define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', '');

define('DB_SERVER_PASSWORD', '');

define('DB_DATABASE', 'merlinsk_osc1');

define('USE_PCONNECT', 'false'); // use persisstent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

?>

Ray

Posted

This file is a mix of the includes/configure.php file, and the admin/includes/configure.php file, and not the includes/configure.php file. I suspect this is why you can't get into your shop.

 

This file should look something like:

 

<?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.yourdomain.com'); // eg, http://localhost - should not be empty for productive servers

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

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

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

define('HTTPS_COOKIE_DOMAIN', '');

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

define('HTTPS_COOKIE_PATH', '');

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

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

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', '/home/merlinsk/public_html/treasurechest/');

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

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

define('DIR_FS_CACHE', 'tmp/');

 

// define our database connection

define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', '********');

define('DB_SERVER_PASSWORD', '******');

define('DB_DATABASE', '********');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

?>

 

Vger

Posted
This file is a mix of the includes/configure.php file, and the admin/includes/configure.php file, and not the includes/configure.php file.  I suspect this is why you can't get into your shop.

 

This file should look something like:

 

<?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.yourdomain.com'); // eg, http://localhost - should not be empty for productive servers

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

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

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

  define('HTTPS_COOKIE_DOMAIN', '');

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

  define('HTTPS_COOKIE_PATH', '');

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

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

  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', '/home/merlinsk/public_html/treasurechest/');

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

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

  define('DIR_FS_CACHE', 'tmp/');

 

// define our database connection

  define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers

  define('DB_SERVER_USERNAME', '********');

  define('DB_SERVER_PASSWORD', '******');

  define('DB_DATABASE', '********');

  define('USE_PCONNECT', 'false'); // use persistent connections?

  define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

?>

 

Vger

Forgive apeasant for copying and pasting your very fast reply(you are simply the bestmy page came up but it now gives me this

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/merlinsk/public_html/treasurechest/includes/configure.php:47) in /home/merlinsk/public_html/treasurechest/includes/functions/sessions.php on line 67

 

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/merlinsk/public_html/treasurechest/includes/configure.php:47) in /home/merlinsk/public_html/treasurechest/includes/functions/sessions.php on line 67

line 67 simply says return session_start();

has the dbase now been contaminated

Ray

Archived

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

×
×
  • Create New...