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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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 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 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
| ||||
| ||||
| Are your language directories on the server? includes/languages/english/ includes/languages/english.php |
|
#3
| |||
| |||
| Yes they are, but the error messages are telling me they can't be found? Why I wonder? |
|
#4
| |||
| |||
| Back to basics: Line 43 in htdocs/index.php contains the following: Code: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT); Code: includes/languages/english/index.php |
|
#5
| |||
| |||
| 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
| |||
| |||
| 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
| |||
| |||
| 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
| ||||
| ||||
| 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
|
|
#9
| |||
| |||
| 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
| |||
| |||
| 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/');
|
| Thread Tools | |
| |
| ||||
| 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 |