voodooman Posted May 30, 2004 Share Posted May 30, 2004 Hope this isn't too stupid a question but i cant find an answer in the forum or the install pages. Thanks for the help. Ever seen this when logging into admin: Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /home/superc/public_html/catalog/admin/includes/application_top.php on line 130 Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /home/superc/public_html/catalog/admin/includes/application_top.php on line 130 Fatal error: main(): Failed opening required 'includes/languages/.php' (include_path='.:/usr/local/lib/php') in /home/superc/public_html/catalog/admin/includes/application_top.php on line 130 Link to comment Share on other sites More sharing options...
Guest Posted May 30, 2004 Share Posted May 30, 2004 I don't know if you have already checked it, but it seems there are some errors in the file /admin/includes/configure.php. It's a configuration file, similar to the catalog/includes/configure.php, and establish the urls and file directories for the admin. Good luck Link to comment Share on other sites More sharing options...
241 Posted May 30, 2004 Share Posted May 30, 2004 check all the paths for catalog/admin/includes/configure.php make sure that all paths are correct. post a url to the issue No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
voodooman Posted May 30, 2004 Author Share Posted May 30, 2004 admin configure.php says this: // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://host**.ipowerweb.com'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://host**.ipowerweb.com'); define('HTTPS_CATALOG_SERVER', 'https://host**.ipowerweb.com'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/home/superc/public_html/catalog/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/~superc/catalog/admin/'); // absolute path required define('DIR_FS_ADMIN', '/home/superc/public_html/catalog/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/~superc/catalog/'); // absolute path required define('DIR_FS_CATALOG', '/home/superc/public_html/catalog/'); // 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 I don't see the problem. ps. I changed the host to ** for security. Link to comment Share on other sites More sharing options...
Guest Posted May 31, 2004 Share Posted May 31, 2004 Sorry, because I think I gave the answer too quickly. Examining the errors in detail, it seems that there is a problem with the language variable. The instruction "require(DIR_WS_LANGUAGES . $language . '.php');" in application_top.php opens and includes the language file with the translations. For example, it opens the /includes/languages/english.php, espanol.php or german.php. In your case, it's trying to open the ".php" file. So, it seems that the "language" variable is empty. May be the database is no well imported. ?Can you see all the default products in the catalog? You could try to force the value of the variable, inserting: $language = 'english'; inmediately after: // include the language translations in catalog/admin/includes/application_top.php and try. Good luck Link to comment Share on other sites More sharing options...
xiaumiau Posted May 31, 2004 Share Posted May 31, 2004 I also have the same problem with admin and after I added $language = 'english'; I'm still getting the same warning. What should I do now? Link to comment Share on other sites More sharing options...
Guest Posted May 31, 2004 Share Posted May 31, 2004 I think the database is created but not completely populated. It happens sometimes when you use the default installation program. Try to execute oscommerce.sql from phpadmin. Good luck Link to comment Share on other sites More sharing options...
241 Posted May 31, 2004 Share Posted May 31, 2004 If it were the case of the sql and language then this would affect both catalog and admin as they both use language and the same database. No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
xiaumiau Posted May 31, 2004 Share Posted May 31, 2004 I'm totally lost now... I don't know how to execute oscommerce.sql from phpadmin. I sort of know phpMyadmin though.. How do I execute oscommerce.squl from phpMyadmin then? BTW, my warning message is a little different from voodooman's: Warning: main(includes/configure.php): failed to open stream: No such file or directory in /home/mypage/public_html/catalog/admin/includes/application_top.php on line 29 Fatal error: main(): Failed opening required 'includes/configure.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mypage/public_html/catalog/admin/includes/application_top.php on line 29 Thanks for all the help :) Link to comment Share on other sites More sharing options...
Guest Posted June 3, 2004 Share Posted June 3, 2004 I, too, see these errors int he admin section and not the catalog. It seems that there is a problem with the installation script, but I have no idea what. Also, I did successfully rerun the oscommerce.sql file from phpmyadmin with no change, so it appears the DB is OK. Warning: main(includes/application_top.php): failed to open stream: Permission denied in /hsphere/local/home/diskolog/diskology.com/silvertest/catalog/admin/index.php on line 13 Fatal error: main(): Failed opening required 'includes/application_top.php' (include_path='.:/usr/local/lib/php') in /hsphere/local/home/diskolog/diskology.com/silvertest/catalog/admin/index.php on line 13 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.