Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Any Idea on how to fix this


Melange

Recommended Posts

Posted

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

Posted

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 >

Posted

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.

Posted

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 >

Archived

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

×
×
  • Create New...