ScottCC Posted August 30, 2006 Share Posted August 30, 2006 I tried searching but i could find anything I've just installed oscommerce and get this following error after i click administration tool when installation is finished. Fatal error: Cannot instantiate non-existent class: language in /home/site/public_html/shop/admin/includes/application_top.php on line 117 i've tried to reinstall it but i get the same error. anyone help is appreciated. Link to comment Share on other sites More sharing options...
ScottCC Posted August 30, 2006 Author Share Posted August 30, 2006 more information on this, i've continued my search of the forums and came up short for the correct way to fix this problem. I dont want to give it a constant value "english.php" because the admin panel ends up functioning incorrectly anyway. i've seen about clearing cookies and cache, but this didnt work for me. also i've tried to reinstall four times already and uploaded all the files twice. i guess that the code isnt getting the language from the browser so $language ends up being empty thus there will be // for instances of /$language/ and '/.php/' for instances of /$language.php if anyone knows how to fix this i'm all ears, as always thanks for taking any time to try and solve the issue. Link to comment Share on other sites More sharing options...
ScottCC Posted August 30, 2006 Author Share Posted August 30, 2006 i uploaded the oscommerce from another network and it worked fine after install. i assume either some files were bad when i uploaded from home or my luck ran out that day. either way the new upload worked. Link to comment Share on other sites More sharing options...
usernamenone Posted August 31, 2006 Share Posted August 31, 2006 i uploaded the oscommerce from another network and it worked fine after install. i assume either some files were bad when i uploaded from home or my luck ran out that day. either way the new upload worked. What does it say on line 117 of application_top? Did you change you application_top? Have you tried to upload a new application_top.php? shop/admin/includes/application_top.php on line 117 This is what my application_top says around line 117 include(DIR_WS_CLASSES . 'language.php'); $lng = new language(); Next question is have you done something to your language.php? If you don't have a php editor you may want to. There are some free ones out there just do a search on Yahoo. Your errors point the way to the solution most of the time. Link to comment Share on other sites More sharing options...
ScottCC Posted August 31, 2006 Author Share Posted August 31, 2006 Line 117 of shop/admin/includes/application_top.php is: include(DIR_WS_CLASSES . 'language.php'); $lng = new language(); I tried uploading just this file first, then uploading the admin folder, and then tried reinstalling a few times before i gave up. when i was able to get to another computer the next day and ftp the oscommerce directories and install, it worked perfectly. i can only assume that a file was uploaded from my home with corrupt information in it. all of these errors came immediately after an installation. some answers to the question i found on the forums were bad session languages (remove cache, cookies) this didnt work. another response was that the installation went bad but i never pinpointed the exact problem, luckily i had just installed oscommerce. this error would be a nightmare if the shopping cart was production. i either use frontpage, macromedia, or wordpad to edit my code (.php, or any other). Link to comment Share on other sites More sharing options...
usernamenone Posted August 31, 2006 Share Posted August 31, 2006 i either use frontpage, macromedia, or wordpad to edit my code (.php, or any other). Your problem could be frontpage. It is not a php editor and will sometimes add it own codes at will, and you should never upload with it. Php Designer is free but asks for a donation. I am sure there are others out there as well. Glad you got it fixed. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.