enigmaverse Posted July 23, 2005 Share Posted July 23, 2005 Getting the following error (along with numerous other ones) PHP Warning: main(includes/languages/english/): failed to open stream: No such file or directory in /Applications/4DWebSTAR/WebServer/DefaultSite/catalog/admin/includes/application_top.php on line 133 PHP Warning: main(): Failed opening 'includes/languages/english/' for inclusion (include_path='.:/usr/phpstar/lib/php') in /Applications/4DWebSTAR/WebServer/DefaultSite/catalog/admin/includes/application_top.php on line 133 Tried changing permissions to no avail. It seems that the program is trying to look one level to high for the file.. instead of looking for 'includes/languages/english/' it should be looking for 'languages/english/' I'm very new to php and this project, any idea on how to solve this problem? thx. Link to comment Share on other sites More sharing options...
Guest Posted July 23, 2005 Share Posted July 23, 2005 Is this a new installation? Where do you see these errors? What are the other errors? When did the errors start to happen? Was this a working osC shop once upon a time? (FWIW, the language files *are* in includes/languagues/english.) -jared Link to comment Share on other sites More sharing options...
enigmaverse Posted July 23, 2005 Author Share Posted July 23, 2005 Is this a new installation? Where do you see these errors? What are the other errors? When did the errors start to happen? Was this a working osC shop once upon a time? This is a brand new install, php4.3.1, mysql4.1.9. the errors are generated into my servers log window. The other errors were included in another post I made yesterday but include: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'MAX_ROW_LISTS_OPTIONS' at line 1 select * from products_options where language_id = '1' order by products_options_id LIMIT 0, MAX_ROW_LISTS_OPTIONS I get this in the products attributes page, I also have a number of php tag names, like "CATALOG_CONTENTS" in place of the actual name. I get: Error! Unable to determine the page link! At the bottom of the catalog index, and throughout all cart pages (FWIW, the language files *are* in includes/languagues/english.) I realize that is where it supposed to be but if you read the error message it appear to be looking for "includes/languages/english/" inside "/Applications/4DWebSTAR/WebServer/DefaultSite/catalog/admin/includes/" since thats where application_top.php lives. to properly be looking in the includes folder, it should be looking for either "../includes/languages/english/" as a relative path or "/catalog/admin/includes/languages/english/" as an absolute path refering all the way back to the root site folder, in this case"DefaultSite". Link to comment Share on other sites More sharing options...
enigmaverse Posted July 23, 2005 Author Share Posted July 23, 2005 Also- if you wish, you can view the installation at http://www.etofnj.com/catalog and see the errors for yourself. Link to comment Share on other sites More sharing options...
mi_jaiten Posted July 23, 2005 Share Posted July 23, 2005 This is a brand new install, php4.3.1, mysql4.1.9. the errors are generated into my servers log window. The other errors were included in another post I made yesterday but include:1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'MAX_ROW_LISTS_OPTIONS' at line 1 select * from products_options where language_id = '1' order by products_options_id LIMIT 0, MAX_ROW_LISTS_OPTIONS I get this in the products attributes page, I also have a number of php tag names, like "CATALOG_CONTENTS" in place of the actual name. I get: Error! Unable to determine the page link! At the bottom of the catalog index, and throughout all cart pages I realize that is where it supposed to be but if you read the error message it appear to be looking for "includes/languages/english/" inside "/Applications/4DWebSTAR/WebServer/DefaultSite/catalog/admin/includes/" since thats where application_top.php lives. to properly be looking in the includes folder, it should be looking for either "../includes/languages/english/" as a relative path or "/catalog/admin/includes/languages/english/" as an absolute path refering all the way back to the root site folder, in this case"DefaultSite". <{POST_SNAPBACK}> The error at the bottom might be because you've removed the footer.php did you mean to remove it or has it not loaded look in your catalog/includes directory for it if it's not there then I can send you another if you dont have a copy or if you did mean to remove it then you've left something behind which is creating the error. Link to comment Share on other sites More sharing options...
MarcoZorro Posted July 23, 2005 Share Posted July 23, 2005 The problem is your configure.php file You need to correct the following to read define('DIR_FS_DOCUMENT_ROOT', '/Applications/4DWebSTAR/WebServer/pub/ElephantsTrunk/'); define('DIR_WS_ADMIN', '/catalog/admin/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); define('DIR_WS_CATALOG', '/catalog/'); define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required Most likely a similar problem also exists for the catalog configure.php Link to comment Share on other sites More sharing options...
enigmaverse Posted July 24, 2005 Author Share Posted July 24, 2005 Added the above as you said and now i get: 1046 - No database selected select configuration_key as cfgKey, configuration_value as cfgValue from configuration [TEP STOP] I tried restoring a backup, and still got the same. The database is selected and running, the catalog still works(havent changed it yet), but the admin is flamed. Here's what I have in my configure now: define('HTTP_SERVER', 'http://www.etofnj.com'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://www.etofnj.com'); define('HTTPS_CATALOG_SERVER', 'https://www.etofnj.com'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/Applications/4DWebSTAR/WebServer/pub/ElephantsTrunk/'); define('DIR_WS_ADMIN', '/catalog/admin/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); define('DIR_WS_CATALOG', '/catalog/'); define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); 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 define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'etofnj'); define('DB_SERVER_PASSWORD', '********); define('DB_DATABASE', 'etofnj_db'); define('USE_PCONNECT', 'false'); // use persisstent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' I tried looking for the error message and its line 64 in application_top.php. Chaekced the permissions on the file, as well as ownership, 755 and 777 made no difference tried changing the path you provided to : define('DIR_FS_DOCUMENT_ROOT', '/Applications/4DWebSTAR/WebServer/pub/ElephantsTrunk/catalog/'); so it matched the content of the catalog folder. no luck. Is there anything I should restart or check? thanks for your help. /joe Link to comment Share on other sites More sharing options...
enigmaverse Posted July 24, 2005 Author Share Posted July 24, 2005 The error at the bottom might be because you've removed the footer.php did you mean to remove it or has it not loaded look in your catalog/includes directory for it if it's not there then I can send you another if you dont have a copy or if you did mean to remove it then you've left something behind which is creating the error. <{POST_SNAPBACK}> footer.php is in place and has not been edited, nor have any other pages.. I want to get it functioning properly before I start my custimization thanks for the shot though... one of the first things I checked was to make sure the file existed. /joe Link to comment Share on other sites More sharing options...
WiseWombat Posted July 24, 2005 Share Posted July 24, 2005 Here's what I have in my configure now: ?define('HTTP_SERVER', 'http://www.etofnj.com'); // eg, http://localhost - should not be empty for productive servers ?define('HTTP_CATALOG_SERVER', 'http://www.etofnj.com'); ?define('HTTPS_CATALOG_SERVER', 'https://www.etofnj.com'); ?define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/Applications/4DWebSTAR/WebServer/pub/ElephantsTrunk/'); ?define('DIR_WS_ADMIN', '/catalog/admin/'); ?define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); ?define('DIR_WS_CATALOG', '/catalog/'); ?define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); ?define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required ? ?define('DIR_WS_IMAGES', 'images/'); ?define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); ?define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); ?define('DIR_WS_INCLUDES', 'includes/'); ?define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); ?define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); ?define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); ?define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); ?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 ?define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers ?define('DB_SERVER_USERNAME', 'etofnj'); ?define('DB_SERVER_PASSWORD', '********); ?define('DB_DATABASE', 'etofnj_db'); ?define('USE_PCONNECT', 'false'); // use persisstent connections? ?define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' have you tried changing this from the above to include your catalog. ('DIR_FS_DOCUMENT_ROOT', '/Applications/4DWebSTAR/WebServer/pub/ElephantsTrunk/'); to this. ('DIR_FS_DOCUMENT_ROOT', '/Applications/4DWebSTAR/WebServer/pub/ElephantsTrunk/catalog/'); <{POST_SNAPBACK}> ( WARNING ) I think I know what Im talking about. BACK UP BACK UP BACK UP BACK UP Link to comment Share on other sites More sharing options...
enigmaverse Posted July 24, 2005 Author Share Posted July 24, 2005 have you tried changing this from the above to include your catalog. ('DIR_FS_DOCUMENT_ROOT', '/Applications/4DWebSTAR/WebServer/pub/ElephantsTrunk/'); to this. ('DIR_FS_DOCUMENT_ROOT', '/Applications/4DWebSTAR/WebServer/pub/ElephantsTrunk/catalog/'); yes. one of the first changes I tried when the original didnt work... what bothers me more is that by putting the original back, I still get the error, which leads me to believe that there is something else causing the issue.. but I have yet to figuew out what it is. Link to comment Share on other sites More sharing options...
mi_jaiten Posted July 24, 2005 Share Posted July 24, 2005 yes. one of the first changes I tried when the original didnt work... what bothers me more is that by putting the original back, I still get the error, which leads me to believe that there is something else causing the issue.. but I have yet to figuew out what it is. <{POST_SNAPBACK}> Actually you've removed somethings or the files you are using are corrupt I looked at the source code for your page and I compared it with osCommerce dummy shop source code you have a lot of code missing so if you didn't remove or make any edits I would suggest downloading a new set of files from here save them to your harddrive and ftp re-upload to your host server overwritting the files you have now. http://www.oscommerce.com/solutions/downloads This is a copy of source codes. =====================================================Below is osCommerce dummy store source code from <!-- reviews_eof //--> ===================================================== <!-- reviews_eof //--> <!-- languages //--> <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt="" width="11" height="14"></td> <td width="100%" height="14" class="infoBoxHeading">Languages</td> <td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> <tr> <td align="center" class="boxText"> <a href="http://www.oscommerce.com/osCommerce22ms2/index.php?language=en&osCsid=96a6162d6763fdfc29f61ca4d1e1950a"><img src="includes/languages/english/images/icon.gif" border="0" alt="English" title=" English " width="24" height="15"></a> <a href="http://www.oscommerce.com/osCommerce22ms2/index.php?language=de&osCsid=96a6162d6763fdfc29f61ca4d1e1950a"><img src="includes/languages/german/images/icon.gif" border="0" alt="Deutsch" title=" Deutsch " width="24" height="15"></a> <a href="http://www.oscommerce.com/osCommerce22ms2/index.php?language=es&osCsid=96a6162d6763fdfc29f61ca4d1e1950a"><img src="includes/languages/espanol/images/icon.gif" border="0" alt="Espa?ol" title=" Espa?ol " width="24" height="15"></a> </td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> </table> </td> </tr> </table> </td> </tr> <!-- languages_eof //--> <!-- currencies //--> <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt="" width="11" height="14"></td> <td width="100%" height="14" class="infoBoxHeading">Currencies</td> <td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> <tr> <td align="center" class="boxText"><form name="currencies" action="http://www.oscommerce.com/osCommerce22ms2/index.php" method="get"><select name="currency" onChange="this.form.submit();" style="width: 100%"><option value="USD" SELECTED>US Dollar</option><option value="EUR">Euro</option></select><input type="hidden" name="osCsid" value="96a6162d6763fdfc29f61ca4d1e1950a"></form></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> </table> </td> </tr> </table> </td> </tr> <!-- currencies_eof //--> <!-- right_navigation_eof //--> </table></td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr class="footer"> <td class="footer"> Sunday 24 July, 2005 </td> <td align="right" class="footer"> 7527622 requests since Saturday 12 July, 2003 </td> </tr> </table> <br> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td align="center" class="smallText"> Copyright © 2003 <a href="http://www.oscommerce.com" target="_blank">osCommerce</a><br>Powered by <a href="http://www.oscommerce.com" target="_blank">osCommerce</a> </td> </tr> </table> <br> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td align="center"><a href="http://www.oscommerce.com/osCommerce22ms2/redirect.php?action=banner&goto=1&osCsid=96a6162d6763fdfc29f61ca4d1e1950a" target="_blank"><img src="images/banners/oscommerce.gif" border="0" alt="osCommerce" title=" osCommerce " width="468" height="50"></a></td> </tr> </table> <!-- footer_eof //--> <br> </body> </html> ===================================================== This is yours from the same place ===================================================== <!-- reviews_eof //--> <!-- languages //--> <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt="" width="11" height="14"></td> <td width="100%" height="14" class="infoBoxHeading">Languages</td> <td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td> </tr> </table> ===================================================== from here end is missing so that's why you get an error ===================================================== </td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br> ===================================================== Even if you take the rest out You've got this missing at the bottom so the code is not closed <!-- footer_eof //--> <br> </body> </html> Hope this helps. Kind Regards, Michelle. Link to comment Share on other sites More sharing options...
enigmaverse Posted July 24, 2005 Author Share Posted July 24, 2005 Actually you've removed somethings or the files you are using are corrupt I looked at the source code for your page and I compared it with osCommerce dummy shop source code you have a lot of code missing so if you didn't remove or make any edits I would suggest downloading a new set of files from here save them to your harddrive and ftp re-upload to your host server overwritting the files you have now. Actually, just viewing the source doesnt give an accurate picture of what going on. The reason so much code appears to be missing is the page is not loading all the include files and thats the proble I need to get fixed. Maybe the issue is in the include thats not loading.... more stuff to look at. and I was hoping I would be able to install and go.... Researching this board, there seems to be issues between OsCommerce and MySQL 4.1+ but I have not been able to get anyone to confirm this. I at one point (when using a lower version of MySQL) had this running (maybe a year or so ago) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.