osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Installation issues

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 06-24-2006, 10:07 AM
Member
 
Join Date: Sep 2003
Posts: 90
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
warrenthewindmill
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 06-24-2006, 05:07 PM
neil's Avatar
Active Member
 
Join Date: Nov 2002
Posts: 245
Thanks: 9
Thanked 7 Times in 6 Posts
Rep Power: 6
neil is on a distinguished road
Default RE: Installation problem with languages?

Are your language directories on the server?
includes/languages/english/
includes/languages/english.php
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 06-24-2006, 10:40 PM
Member
 
Join Date: Sep 2003
Posts: 90
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
warrenthewindmill
Default

Yes they are, but the error messages are telling me they can't be found? Why I wonder?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 06-24-2006, 10:54 PM
Member
 
Join Date: Sep 2003
Posts: 90
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
warrenthewindmill
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 06-24-2006, 11:52 PM
Member
 
Join Date: Sep 2003
Posts: 90
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
warrenthewindmill
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...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 06-25-2006, 01:18 AM
Member
 
Join Date: Sep 2003
Posts: 90
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
warrenthewindmill
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 06-25-2006, 02:00 AM
Member
 
Join Date: Sep 2003
Posts: 90
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
warrenthewindmill
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...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 06-25-2006, 03:23 AM
neil's Avatar
Active Member
 
Join Date: Nov 2002
Posts: 245
Thanks: 9
Thanked 7 Times in 6 Posts
Rep Power: 6
neil is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 06-25-2006, 03:38 AM
Member
 
Join Date: Sep 2003
Posts: 90
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
warrenthewindmill
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...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #10  
Old 06-25-2006, 03:46 AM
Member
 
Join Date: Sep 2003
Posts: 90
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
warrenthewindmill
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/');
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 08:20 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax