Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Receiveing error message and don't know how to fix it


Guest

Recommended Posts

Posted

Here is the error I am getting:

 

Warning: main(includes/configure.php) [function.main]: failed to create stream: No such file or directory in /home/dappasco/public_html/includes/application_top.php on line 34

 

Fatal error: main() [function.main]: Failed opening required 'includes/configure.php' (include_path='/usr/local/lib/php:/usr/lib/php') in /home/dappasco/public_html/includes/application_top.php on line 34

 

I am just a php beginer and can't figure out how to fix this problem

Posted
Here is the error I am getting:

 

Warning: main(includes/configure.php) [function.main]: failed to create stream: No such file or directory in /home/dappasco/public_html/includes/application_top.php on line 34

 

Fatal error: main() [function.main]: Failed opening required 'includes/configure.php' (include_path='/usr/local/lib/php:/usr/lib/php') in /home/dappasco/public_html/includes/application_top.php on line 34

 

I am just a php beginer and can't figure out how to fix this problem

 

catalog is:

 

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

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

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

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

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

define('DIR_FS_DOCUMENT_ROOT', '/home/dappasco/public_html');

define('DIR_FS_CATALOG', '/home/dappasco/public_html/');

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

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

 

 

and admin:

 

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

define('HTTP_CATALOG_SERVER', 'https://dappascollectibles.com');

define('HTTPS_CATALOG_SERVER', 'https://dappascollectibles.com');

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

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

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

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

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

define('DIR_FS_CATALOG', '/home/dappasco/public_html/'); // 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/');

Posted
define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');

define('DIR_FS_DOCUMENT_ROOT', '/home/dappasco/public_html');

define('DIR_FS_CATALOG', '/home/dappasco/public_html/');

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

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

 

This is what mine looks like

 

 

define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');

define('DIR_FS_DOCUMENT_ROOT', $HTTP_SERVER_VARS['DOCUMENT_ROOT']);

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

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

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

 

 

// Define the webserver and path parameters

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

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

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

define('HTTP_CATALOG_SERVER', 'https://dappascollectibles.com');

define('HTTPS_CATALOG_SERVER', 'https://dappascollectibles.com');

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

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

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

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

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

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

 

This is my admin

 

// Define the webserver and path parameters

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

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

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

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

define('HTTPS_CATALOG_SERVER', 'https://host73.ipowerweb.com/~mrsfield');

define('ENABLE_SSL_CATALOG', 'true'); // 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', '/admin/');

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

define('DIR_WS_CATALOG', '/');

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

 

Don't know if this will help or not...

Posted

Dan,

 

The error is indicating that it cannot find your configure.php file. I just visited your web page and it currently says it cannot find the includes/classes/logger.php file. Do you have your files in a catalog directory or are they located directly in your root directory? If they are in a catalog directory, then you would need to change the line in your configure.php file that says:

 

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

 

to:

 

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

 

I hope this helps.

 

Eric

Posted
Dan,

 

The error is indicating that it cannot find your configure.php file.  I just visited your web page and it currently says it cannot find the includes/classes/logger.php file.  Do you have your files in a catalog directory or are they located directly in your root directory?  If they are in a catalog directory, then you would need to change the line in your configure.php file that says:

 

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

 

to:

 

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

 

I hope this helps.  

 

Eric

 

My files are in my root directory. I just used a backup from 6/24 and I am able to get into my admin. mnow but the new error is:

 

Warning: main(includes/classes/logger.php) [function.main]: failed to create stream: No such file or directory in /home/dappasco/public_html/includes/application_top.php on line 154

 

Fatal error: main() [function.main]: Failed opening required 'includes/classes/logger.php' (include_path='.:/usr/local/lib/php.:/usr/lib/php') in /home/dappasco/public_html/includes/application_top.php on line 154

Posted

Dan,

 

The logger.php class file is used only for the admin section. It is called in the application_top.php file used for the admin files. There is a different application_top.php file for the catalog section that does not call the logger.php file. Check this out and see if you have the wrong application_top file in your includes folder in the catalog section.

 

Eric

Posted
Dan,

 

The logger.php class file is used only for the admin section.  It is called in the application_top.php file used for the admin files.  There is a different application_top.php file for the catalog section that does not call the logger.php file.  Check this out and see if you have the wrong application_top file in your includes folder in the catalog section.

 

Eric

 

 

That was it! I had the wrong application top file in my catalog.

thanks everyone for the help.

Dappa Dan

Archived

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

×
×
  • Create New...