Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error Message: failed to open stream: No such file or directory in /home/***/public_html/catalogue/includes/application_top.php on line 76


Tamar2001

Recommended Posts

Have just spent time updating files and removing some bugs when I tried to add IP protection to stop hackers etc.

 

We can now reaccess the main-site for uploading product and other admin/development work. However, when we try to access the online catalog page from this web-site we get an error message:

 

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

 

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

 

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

 

 

Accessing our web-site, all functions work, except when we try to view the catalogue and get the same error message:

 

 

Below is the script from the application_top.php file in the possible problem area (added numbers to help with identification of problem area):

 

67 while ($configuration = tep_db_fetch_array($configuration_query)) {

define($configuration['cfgKey'], $configuration['cfgValue']);

}

 

// define our general functions used application-wide

require(DIR_WS_FUNCTIONS . 'general.php');

require(DIR_WS_FUNCTIONS . 'html_output.php');

 

// initialize the logger class

require(DIR_WS_CLASSES . 'logger.php');

 

// include shopping cart class

require(DIR_WS_CLASSES . 'shopping_cart.php');

 

81 // check to see if php implemented session management functions - if not, include php3/php4 compatible session class

 

Any suggestions most welcome!

 

Thank you so much

Link to comment
Share on other sites

Thank you for spotting that the file:

 

logger.php is missing from my includes/classes

 

Where can I find a replacement file please??

It part of the stock osc in the admin side. Did you edit the wrong file?

Link to comment
Share on other sites

It part of the stock osc in the admin side. Did you edit the wrong file?

 

I have just checked my file structure and the file is in place under catalog/admin/includes/classes/logger.php

 

I have not touched the file, date is ame as on stock osc admin on site.

Link to comment
Share on other sites

I have just checked my file structure and the file is in place under catalog/admin/includes/classes/logger.php

 

I have not touched the file, date is ame as on stock osc admin on site.

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

 

admin/includes/application_top.php is trying to find the file

// initialize the logger class

require(DIR_WS_CLASSES . 'logger.php');

 

where you have

catalogue/includes/application_top.php

 

so did you copy the application_top.php to the catalog/includes when it should have gone in admin/includes

Link to comment
Share on other sites

I spent some time checking the application_top.php file in the public_html directory and it appeared to be corrupted so replaced it and all is now well and fine!

 

Thank you so much to those of you who have spared a thought to my difficulties!

 

Kind regards

Link to comment
Share on other sites

I spent some time checking the application_top.php file in the public_html directory and it appeared to be corrupted so replaced it and all is now well and fine!

 

Thank you so much to those of you who have spared a thought to my difficulties!

 

Kind regards

A pleasure, nothing worse than banging your head up against a brick wall.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...