Melange Posted July 27, 2008 Posted July 27, 2008 Everything was working fine .. then I started getting this Any one tell me How to fix this ? Thanks so much 1923 TURK GRUP DJ_K_A_H_I_R Warning: main(DIR_WS_LANGUAGES/FILENAME_DEFAULT) [function.main]: failed to open stream: No such file or directory in /home/dirtyank/public_html/index.php on line 33 Warning: main(DIR_WS_LANGUAGES/FILENAME_DEFAULT) [function.main]: failed to open stream: No such file or directory in /home/dirtyank/public_html/index.php on line 33 Warning: main(DIR_WS_LANGUAGES/FILENAME_DEFAULT) [function.main]: failed to open stream: No such file or directory in /home/dirtyank/public_html/index.php on line 33 Fatal error: main() [function.require]: Failed opening required 'DIR_WS_LANGUAGES/FILENAME_DEFAULT' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/dirtyank/public_html/index.php on line 33 She Who Controls The Spice .... Controls The Universe
germ Posted July 27, 2008 Posted July 27, 2008 Looks like you have two screwed up files. DIR_WS_LANGUAGES should probably be defined in your /includes/configure.php like this: define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); FILENAME_DEFAULT should probably be defined in /includes/filenames.php like this: define('FILENAME_DEFAULT', 'index.php'); If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
spooks Posted July 27, 2008 Posted July 27, 2008 missing require('includes/application_top.php'); will cause this Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al.
germ Posted July 27, 2008 Posted July 27, 2008 Even easier to fix! The top of the main index.php should look about like this: <?php /* $Id: index.php,v 1.1 2003/06/11 17:37:59 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.