Guest timecrisis Posted September 30, 2005 Share Posted September 30, 2005 Hi All, I have been having errors relating to line 2442 in language/en/lang.inc.php The errors I recieved said that it was unable to find config.inc.php Line 2442 reads include("config.inc.php"); I have changed this to include("/home/sites/web/cubecart/language/en/config.inc.php"); I am not sure if this is a bug in Cubecart or just relates to my server set up? The comments say that line 2442 was added in V3.0.3 Is there anyway to make my edited code more dynamic? Is this code change going to cause other problems? Quote Link to comment Share on other sites More sharing options...
Guest sunshine Posted September 30, 2005 Share Posted September 30, 2005 Hi Timecrisis, I have been having errors relating to line 2442 in language/en/lang.inc.php The errors I recieved said that it was unable to find config.inc.php. Line 2442 reads include("config.inc.php"); Line 2442 is looking for the config.inc.php file located in the language folder /en/config.inc.php. Do you have language/en/lang.inc.php wherever you are trying to install CC? I have changed this to include("/home/sites/web/cubecart/language/en/config.inc.php"); I'm not sure what you did here or why. If this is webhosting site, that does not look right either. It need to be in the public directory so the public can see your shop. Upload the config.inc.php file again. It may not be there or is corrupted. It resides in language/eng/ Quote Link to comment Share on other sites More sharing options...
Guest tbladecki Posted September 30, 2005 Share Posted September 30, 2005 Did you happen to open the file in "notepad"??? If so that is where the error came from, you have to replace the file via ftp with a "clean" copy. For some reason, notepad liles to change thinks once in awhile... I have had this same error a number of times and what happens is that it removes a closing statment on a line, but you have to look at EVERY line in order to find it as it changes each time..... I would also suggest using PHPDesigner or BBEdit or anything similar to modify files, just dont use notepad.... Hope it helps :) Quote Link to comment Share on other sites More sharing options...
markscarts Posted September 30, 2005 Share Posted September 30, 2005 Has anyone else had this problem with Notepad? I have used Notepad exclusively to write HTML and CSS for over six years with no problem, and for the past year or so have edited many PHP files with no problem. I can't stand WYSIWIG programs, and do not know which fancy text editor I should use in place of Notepad. It might be good to read about other's experiences here . . . Quote Link to comment Share on other sites More sharing options...
Guest sunshine Posted October 1, 2005 Share Posted October 1, 2005 Topsite is a pretty good CSS editor. it has split screen so you can view your changes/results. I've heard people mention Crimson Editor as a free one. You can download that fron cnet downloads. For PHP, I luv luv love my Dreamweaver!! :D Quote Link to comment Share on other sites More sharing options...
Guest theorbo Posted October 1, 2005 Share Posted October 1, 2005 Full-featured (and not too expensive): TopStyle Pro (less than $100 US) from http://bradsoft.com Easy, free notepad replacement: Notepad2 from http://www.flos-freeware.ch I too had used notepad for years, but became aware sometime last year that it was not doing "clean" all the time. Quote Link to comment Share on other sites More sharing options...
Guest Posted October 1, 2005 Share Posted October 1, 2005 notepad for spme reason has started putting some white space in code which cc3 not to keen on <<<<<<<<<<<<<<<dreamweaver all the way if it wasnt for dreamweaver i wouldnt be here now :D Quote Link to comment Share on other sites More sharing options...
Guest vrakas Posted October 1, 2005 Share Posted October 1, 2005 Someone in this forum introduced Crimson Editor it is simply excelent. Opens all kind of files and has lines, columns numbers and the most important a undo button Crimson Editor is a professional source code editor for Windows. This program is not only fast in loading time, but also small in size (so small that it can be copied in one floppy disk). While it can serve as a good replacement for Notepad, it also offers many powerful features for programming languages such as HTML, C/C++, Perl and Java. The Homepage Preview Photo PS:Crimson Editor is FREEWARE . You are free to download and use it. If you find it useful, please distribute it to your friends without any modification. I thank the person that introduced this to me Let me know if you like it :D Quote Link to comment Share on other sites More sharing options...
Guest timecrisis Posted October 1, 2005 Share Posted October 1, 2005 Hi All, wow I should have started a topic about text editors! Basically on line 2442 of the language/en/lang.inc.php It calls the config file that is the same folder. For some reason it wasn't finding it...even though it is there, I haven't edited any of these files before I got the error. I have changed the path to the path from the root of my server space and the errors have gone... I am no PHP wiz so I am not sure why this is...I just thought I would post it incase anyone else recieves this error... Thanks for the tips on better software than note pad =) Quote Link to comment Share on other sites More sharing options...
Guest vrakas Posted October 1, 2005 Share Posted October 1, 2005 You are welcome :D Quote Link to comment Share on other sites More sharing options...
markscarts Posted October 1, 2005 Share Posted October 1, 2005 Sorry about the hi-jack, timecrisis But thanks for all the info, guys. I have a rough idea of which two I'm going to try out first :D Quote Link to comment Share on other sites More sharing options...
convict Posted October 4, 2005 Share Posted October 4, 2005 But thanks for all the info, guys. I have a rough idea of which two I'm going to try out first Try to use Zend Studio But, Notepad is my favotite editor for everything since 1992 :) Quote Link to comment Share on other sites More sharing options...
Guest sunshine Posted October 4, 2005 Share Posted October 4, 2005 Hi Convict, Notepad seems to randomly add spaces which screw up the code. Not everytime but it happens. Quote Link to comment Share on other sites More sharing options...
markscarts Posted October 5, 2005 Share Posted October 5, 2005 And, the big PITA for me, when others edit files with certain programs, they don't display correctly in Notepad afterwards :o Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.