Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Urgent Issue Please Help - Fatal error: require() [function.require]: Failed opening required 'DIR_WS_INCLUDE


John Lewis

Recommended Posts

Hello,

 

My website www.buyitdutyfree.com for some reason all of a sudden is showing following error:

 

Warning: require(DIR_WS_INCLUDESheader_includes.php) [function.require]: failed to open stream: No such file or directory in /path_to/index.php on line 677

 

Fatal error: require() [function.require]: Failed opening required 'DIR_WS_INCLUDESheader_includes.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /path_to/index.php on line677

 

Can anybody help.

 

To see the actual page it is http://buyitdutyfree.com/index2.php as I have made a maintenance page for now on homepage.

 

 

 

Regards, John

Link to comment
Share on other sites

@@John Lewis

 

This is the problem DIR_WS_INCLUDESheader_includes.php you are missing the / so it should appear like this DIR_WS_INCLUDES/header_includes.php

 

so, in the /includes/configure.php file you will need to add the trailing slash to the path.

 

 

Chris

Link to comment
Share on other sites

@@John Lewis

 

This is the problem DIR_WS_INCLUDESheader_includes.php you are missing the / so it should appear like this DIR_WS_INCLUDES/header_includes.php

 

so, in the /includes/configure.php file you will need to add the trailing slash to the path.

 

 

Chris

 

Hello Chris,

 

This is current configure how do you mean the trailing slash?Thank you in advance for your help much appreciated.

 

 

<?php

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

define('HTTPS_SERVER', 'http://buyitdutyfree.com');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', 'buyitdutyfree.com');

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

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_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', '/path_to/public_html/');

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', 'the server username');

define('DB_SERVER_PASSWORD', 'the server password');

define('DB_DATABASE', 'the server database name');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

Link to comment
Share on other sites

@@DunWeb

 

Hello Chris,

 

This is current configure how do you mean the trailing slash?Thank you in advance for your help much appreciated.

 

 

<?php

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

define('HTTPS_SERVER', 'http://buyitdutyfree.com');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', 'buyitdutyfree.com');

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

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_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', '/path_to/public_html/');

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', 'the server username');

define('DB_SERVER_PASSWORD', 'the server password');

define('DB_DATABASE', 'the server database name');

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