Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Installation problem with languages?

This is a discussion on Installation problem with languages? within the osCmax v2 Installation issues forums, part of the osCmax v2.0 Forums category; I've just installed oscMax without a problem until I tried clicking on the catalog and admin buttons at the end ...

      
  1. #1
    Member
    Join Date
    Sep 2003
    Posts
    90
    Rep Power
    0


    Default Installation problem with languages?

    I've just installed oscMax without a problem until I tried clicking on the catalog and admin buttons at the end of the install routine. I get the following errors:

    Clicking catalog

    Code:
    Warning: main(DIR_WS_LANGUAGES/FILENAME_DEFAULT): failed to open stream: No such file or directory in /home/fhlinux185/c/mysite.net/user/htdocs/index.php on line 43
    
    Warning: main(DIR_WS_LANGUAGES/FILENAME_DEFAULT): failed to open stream: No such file or directory in /home/fhlinux185/c/mysite.net/user/htdocs/index.php on line 43
    
    Fatal error: main(): Failed opening required 'DIR_WS_LANGUAGES/FILENAME_DEFAULT' (include_path='.:/usr/share/pear') in /home/fhlinux185/c/mysite.net/user/htdocs/index.php on line 43
    and in admin:

    Code:
    Fatal error: Cannot instantiate non-existent class: language in /home/fhlinux185/c/mysite.net/user/htdocs/admin/includes/application_top.php on line 120
    I've checked the default language in the db and it's set to eng.

    Don't know what's wrong but I followed the installation instructions to the letter and didn't get any errors. What am I missing please?

  2. #2
    Active Member neil's Avatar
    Join Date
    Nov 2002
    Posts
    248
    Rep Power
    10


    Default RE: Installation problem with languages?

    Are your language directories on the server?
    includes/languages/english/
    includes/languages/english.php
    HTH
    Neil
    www.12website.com

    "You can have everything in life that you want if you will just help enough other people get what they want."
    Zig Ziglar

  3. #3
    Member
    Join Date
    Sep 2003
    Posts
    90
    Rep Power
    0


    Default

    Yes they are, but the error messages are telling me they can't be found? Why I wonder?

  4. #4
    Member
    Join Date
    Sep 2003
    Posts
    90
    Rep Power
    0


    Default

    Back to basics:
    Line 43 in htdocs/index.php contains the following:
    Code:
    require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT);
    If I put an echo statement in to the test version of my existing live site (1.7 osCMax) I get:
    Code:
    includes/languages/english/index.php
    But I can see it.

  5. #5
    Member
    Join Date
    Sep 2003
    Posts
    90
    Rep Power
    0


    Default

    I've just checked the file using putty as an alternative way of viewing my files. I moved down through the directory structure and includes/languages/english/index.php is there.

    If the error says it isn't there then I wondered if somehow I had screwed up the whole installation and put the whole site in something other than htdocs. I've checked it and it all seems ok. Besides if the the 'home' directory had been wrong the install process wouldn't have worked would it? Entering http://myserver.com/install/index.php and getting the install to start must mean everything is in the right place?

    Curses in loud voice and wanders off into the distance muttering to himself...

  6. #6
    Member
    Join Date
    Sep 2003
    Posts
    90
    Rep Power
    0


    Default

    Looks like my configure.php files were not set up properly. Strange because I didn't get any errors. I've just made a first attempt at setting up the file properly but it still doesn't work. This must be a configure problem. If the files are in the right place and the error says it can't find them, then it must be looking in the wrong place - meaning I guess that the paths in configure.php are not correct.

  7. #7
    Member
    Join Date
    Sep 2003
    Posts
    90
    Rep Power
    0


    Default

    I've been right through both my configure.php files and everything is set correctly. The error message in my first post tells me that index.php is being read, at least as far as line 42.

    Help would be much appreciated on this. Maybe the solution is so simple I have just missed it, but I've been missing it for the last 6 hours...

  8. #8
    Active Member neil's Avatar
    Join Date
    Nov 2002
    Posts
    248
    Rep Power
    10


    Default

    Post the configure file minus the database connection information.
    Is the language path as below
    Code:
     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 DO NOT POST PAST HERE
    DO NOT POST PAST HERE
    HTH
    Neil
    www.12website.com

    "You can have everything in life that you want if you will just help enough other people get what they want."
    Zig Ziglar

  9. #9
    Member
    Join Date
    Sep 2003
    Posts
    90
    Rep Power
    0


    Default

    7.5 hours on, I've run out of ideas. Tried hard coding the path but it seems no matter what I do I can't get past this error. I thought installation is supposed to be the easy bit! If I can't solve this problem fairly quickly I've probably got no chance of achieving my plan which was to take a vanilla V2, add in all the contributions I've added that are not in V2, identify the differences in the db schemas and migrate my 1.7 data into V2.
    But if I can't even get the core product working!!!
    Maybe I'll go for a beer and think some more. In the meantime if you can help...

  10. #10
    Member
    Join Date
    Sep 2003
    Posts
    90
    Rep Power
    0


    Default

    I'm sure my configure.php is the same as above. Posting it so I can be completely sure:

    Code:
    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/');

Page 1 of 2 12 LastLast

Similar Threads

  1. Problem: Warning: main(includes/languages/
    By thetraveller in forum osCmax v2 Installation issues
    Replies: 4
    Last Post: 10-07-2005, 05:44 PM
  2. Installation problem?
    By freddae in forum osCommerce 2.2 Installation Help
    Replies: 7
    Last Post: 12-11-2004, 04:15 PM
  3. Problem with languages in Oscommerce
    By Samuel6411 in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 11-26-2004, 10:33 AM
  4. Installation easy and ok! But languages...
    By huso in forum osCMax v1.7 Installation
    Replies: 1
    Last Post: 07-23-2004, 05:48 PM
  5. Installation help languages swedish(svenska) help!
    By Pluto001 in forum osCommerce 2.2 Installation Help
    Replies: 2
    Last Post: 05-03-2004, 03:35 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •