trophy Posted February 24, 2007 Share Posted February 24, 2007 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 More sharing options...
bill110 Posted February 24, 2007 Share Posted February 24, 2007 It looks like the file catelog/includes/application_top.php is missing from your shop. 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 More sharing options...
trophy Posted February 24, 2007 Author Share Posted February 24, 2007 Bill thanks for the quick response. Upon checking the file is there. Have uploaded a copy of my virgin copy and it is still the same. Guess it must be something else. Gill A Link to comment Share on other sites More sharing options...
bill110 Posted February 24, 2007 Share Posted February 24, 2007 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 More sharing options...
trophy Posted February 24, 2007 Author Share Posted February 24, 2007 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 More sharing options...
bill110 Posted February 24, 2007 Share Posted February 24, 2007 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 More sharing options...
trophy Posted February 24, 2007 Author Share Posted February 24, 2007 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 More sharing options...
bill110 Posted February 24, 2007 Share Posted February 24, 2007 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 More sharing options...
trophy Posted February 24, 2007 Author Share Posted February 24, 2007 Another dumb question. How and where do I change the passwords etc. Yep you got a right one here. Gill A Link to comment Share on other sites More sharing options...
bill110 Posted February 24, 2007 Share Posted February 24, 2007 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 More sharing options...
trophy Posted February 24, 2007 Author Share Posted February 24, 2007 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 More sharing options...
trophy Posted February 24, 2007 Author Share Posted February 24, 2007 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.