Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal error:


jimsel

Recommended Posts

I have read for hours looking for an answer to my error, but to no avail

 

all files 'look; ok to me:

configuration.php

index.php

includes/application_top.php

 

 

Fatal error: Failed opening required 'includes/application_top.php' (include_path='.:/home/build/cron/distrib/build/tmp/stronghold-php4-4.1.2/usr/local/redhat/lib/php') in /home/sites/site155/html/catalog/index.php on line 13

 

sometime a while back, their was a problem with a backup issue (sessions), but ever since then, i have not gotten this error resolved.

 

thanks for your time

Jim

Link to comment
Share on other sites

Post your catalog/includes/configure.php - lets see how it looks to us! :P

 

BTW - have you checked the file is not corrupt from the bodgy backup...?

 

Matti

Link to comment
Share on other sites

Hi Matti.

 

Here is the catalog/includes/config file:

 

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

def_WS_* = Webserver directories (virtual/URL)

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

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

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

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

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

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

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

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

 

// define our database connection

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

define('DB_SERVER_USERNAME', 'my_user_name');

define('DB_SERVER_PASSWORD', 'my_password');

define('DB_DATABASE', 'my_database');

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

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

?>

 

 

This is a second post, the first one was on 12-24-03. You might want to take a look at what transpired in that evening. The exact error message is:

 

Fatal error: Failed opening required 'includes/application_top.php' (include_path='.:/home/build/cron/distrib/build/tmp/stronghold-php4-4.1.2/usr/local/redhat/lib/php') in /home/sites/site155/html/catalog/index.php on line 13

 

http://www.oscommerce.com/forums/index.php?showtopic=71389

 

My host is also stumped. i did do a complete re-install and admin is the only part of the application that is working.

 

Thanks you for your time,

Jim

Link to comment
Share on other sites

Well the file looks ok.... its missing:

 

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

 

 

... but I'm assuming that you missed that while copy and pasting here :P

 

This path does not look correct:

 

 define('DIR_FS_CATALOG', '/localhost/catalog/');

 

'localhost' is virtual - the filesystem path must be the actual path.

 

Also.....

 

Delete application_top.php from your server and install a known working copy.

 

If its a Windows server, do not trust an overwrite (honest, I have actually seen Windows not overwrite even though it appeared to :blink: ) - delete the file first then restore.

 

HTH

 

Matti

Link to comment
Share on other sites

The PHP include path looks correct - the error also shows the correct file system path:

 

define('DIR_FS_CATALOG', '/home/sites/site155/html/catalog/');

 

Matti

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...