Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal errors I am sinking fast


trophy

Recommended Posts

Can anybody please help me with this problem I have spent a couple of days on it now and are just about to chuck the lot.

These are the errors I am getting when I open my website http://hobbiesplus.co.nz

 

Warning: main(includes/application_top.php) [function.main]: failed to open stream: No such file or directory in /home/hobbiesp/public_html/index.php on line 13

 

Warning: main(includes/application_top.php) [function.main]: failed to open stream: No such file or directory in /home/hobbiesp/public_html/index.php on line 13

 

Warning: main(includes/application_top.php) [function.main]: failed to open stream: No such file or directory in /home/hobbiesp/public_html/index.php on line 13

 

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

 

Gill A

Link to comment
Share on other sites

Since you installed your shop in the root directory check your catelog/includes/configure.php file to be sure it does not have the paths set to catelog/includes etc..

My Contributions

 

Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly

Password Protect Admin

"No matter where you go....There you are" - Buccaroo Bonsai

Link to comment
Share on other sites

Bill, I am a total green horn here so I have no idea as to what I should be looking for, sorry.

Here is the file.

 

Gill A

 

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

define('HTTP_CATALOG_SERVER', 'http://hobbiesplus.co.nz');

define('HTTPS_CATALOG_SERVER', 'https://hobbiesplus.co.nz');

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

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

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

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

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

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

 

// define our database connection

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

define('DB_SERVER_USERNAME', 'hobbiesp_osc1');

define('DB_SERVER_PASSWORD', 'wvDwKom7T02l');

define('DB_DATABASE', 'hobbiesp_osc1');

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

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

?>

Link to comment
Share on other sites

Ok two things. There are 2 configure.php files.

one in the admin directory includes sub directory(which you posted here) and one in the root directory in the includes sub directory.

The one you posted looks ok. post the other one.

The second thing whenever you post either of these files be sure and delete the password and username for security reasons. You will now need to change these ( at the very least the password) at your host and in these two files.

My Contributions

 

Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly

Password Protect Admin

"No matter where you go....There you are" - Buccaroo Bonsai

Link to comment
Share on other sites

Wow man have I done it now.

While you were answering my question I uploaded my virgin copy of the 2nd folder of includes and the site is now working but I have lost all my old info so I now have a lot of work ahead of me to get it back to where it was.

I have to tell you, I got into this pickle by up loading a module called "Basic Design Pack" and not knowing (and still do not know) how to install it I got into this pickle.

I just uploaded it like they said and CRASH it all turned to custard.

I feel there is a need for clearer instructions on how to do some things.

Design pack seems to have a lot of the fixs that I want and would like.

If you can be bothered to help an idiot like me with the design pack install I would very much appreciate your help.

Gill A

Link to comment
Share on other sites

I dont use it so i'm not sure I could help too much. Maybe someone reading this thread can be of better assistance on that one.

My Contributions

 

Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly

Password Protect Admin

"No matter where you go....There you are" - Buccaroo Bonsai

Link to comment
Share on other sites

At your host where you originally set up the blank database there should be a place there to change the password, username, etc. Thene on the two configuer.php files change the lines there that define the database username, password,etc, just be sure in those files if the new username or password is say newpassword be sure to put it between the single quotes like this:

define('DB_SERVER_PASSWORD', 'newpassword');

My Contributions

 

Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly

Password Protect Admin

"No matter where you go....There you are" - Buccaroo Bonsai

Link to comment
Share on other sites

Bill thanks for all your help I am now getting back on track.

Since I uploaded the 2nd includes folder from my backup I find the index page does recognise what I have previously loaded which is still there as I can acess it through my admin.

It will recognise the change in the text in the centre of the page.

Any suggestions will be greatly appreciated.

Gill A

Link to comment
Share on other sites

That last post was a bit vague.

I should have said the left column, categories, Manufacturers does not show what I have already installed.

The centre column does not show whats new.

The right column should show nothing in reviews and specials.

Gill A

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...