Question : New osCommerce install admin errors

I seem to always get this error when installing a  new osCommerce install:

PHP Fatal error:  require() [function.require]: Failed opening required 'includes/languages/.php' (include_path='.:/usr/local/share/pear') in /usr/home/dpaule/www/design-prices/admin/includes/application_top.php on line 138

the result is a blank page when I try to enter the admin and I'm sure it has to do with a bad path in the below code snippet. BTW, here is where the error occurs in ..includes/application_top.php on line 138 :

// include the language translations
  require(DIR_WS_LANGUAGES . $language . '.php'); <--  line 138
  $current_page = basename($PHP_SELF);
  if (file_exists(DIR_WS_LANGUAGES . $language . '/' . $current_page)) {
    include(DIR_WS_LANGUAGES . $language . '/' . $current_page);
  }


Thanks for any help.

Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:

Open in New Window Select All

Answer : New osCommerce install admin errors

change this line:

 define('DIR_WS_INCLUDES', 'includes/');


to:

 define('DIR_WS_INCLUDES', '/usr/home/dpaule/www/design-prices/admin/includes/');
Random Solutions  
 
programming4us programming4us