Guest Posted January 17, 2005 Share Posted January 17, 2005 After installing oscommerce for the first time I recieve the following error when I go to the catalog directory in I-Explorer Parse error: parse error in /home/iele1233/i-toys.nl/www/catalog/includes/configure.php on line 14 Fatal error: Failed opening required 'DIR_WS_INCLUDESfilenames.php' (include_path='.:/usr/share/pear') in /home/iele1233/i-toys.nl/www/catalog/includes/application_top.php on line 53 Can somebody tell me what went wrong and, most important, how to fix this. I'm a newbie at this, please try to keep it simple. Thanks in advance. Martin Link to comment Share on other sites More sharing options...
KennethS Posted January 17, 2005 Share Posted January 17, 2005 It seems you have an error in your configure.php file. Kenneth S -------------- Customer "Are you a real programmer?" Me "No, but I did stay at a Holiday Inn Express last night" Link to comment Share on other sites More sharing options...
Guest Posted January 17, 2005 Share Posted January 17, 2005 It seems you have an error in your configure.php file. <{POST_SNAPBACK}> It seems to be on line 14... define(HTTP_SERVER, http://www.i-toys.nl); // eg, http://localhost - should not be empty for productive servers Rather impressive to get this wrong, right? Any suggestions B) Link to comment Share on other sites More sharing options...
OceanRanch Posted January 17, 2005 Share Posted January 17, 2005 Try define(HTTP_SERVER, 'http://www.i-toys.nl'); // eg, http://localhost - should not be empty for productive servers and if that doesn't work post your configure.php without user/password info. Tom Link to comment Share on other sites More sharing options...
Guest Posted January 17, 2005 Share Posted January 17, 2005 Try define(HTTP_SERVER, 'http://www.i-toys.nl'); // eg, http://localhost - should not be empty for productive servers and if that doesn't work post your configure.php without user/password info. Tom <{POST_SNAPBACK}> Thanks Tom, I managed to move the error along to the last line: define(STORE_SESSIONS, mysql); // leave empty ' for default handler or set to mysql Is there something wrong with the declaration mysql? Thanks much Martin Link to comment Share on other sites More sharing options...
OceanRanch Posted January 17, 2005 Share Posted January 17, 2005 Make it define(STORE_SESSIONS, 'mysql'); // leave empty '' for default handler or set to mysql Tom Check both configure.php files (catalog/includes and catalog/admin/includes) Link to comment Share on other sites More sharing options...
Guest Posted January 18, 2005 Share Posted January 18, 2005 Make it define(STORE_SESSIONS, 'mysql'); // leave empty '' for default handler or set to mysql Tom Check both configure.php files (catalog/includes and catalog/admin/includes) <{POST_SNAPBACK}> This is what it is now: define(STORE_SESSIONS, 'mysql'); // leave empty '' for default handler or set to mysql Still a parse error on line 43. Do I have to place the username, password, database name and Pconnect, false in ' ' as well? Any ideas regarding this fatal error: Fatal error: Failed opening required 'DIR_WS_INCLUDESfilenames.php' (include_path='.:/usr/share/pear') in /home/iele1233/i-toys.nl/www/catalog/includes/application_top.php on line 53 line 53: require(DIR_WS_INCLUDES . 'filenames.php'); Thanks a lot Martin Link to comment Share on other sites More sharing options...
OceanRanch Posted January 18, 2005 Share Posted January 18, 2005 Take the big leap as I mentioned in my first post and POST both of your configure.php files (minus passwords). Your killing us with one error at a time. Both catalog/includes/configure.php and catalog/admin/includes/configure.php I may not be able to respond on this today, but the fine folks here on the forum will pitch in and review them for you. Tom Link to comment Share on other sites More sharing options...
Guest Posted January 18, 2005 Share Posted January 18, 2005 Here we go: catalog includes: configure.php: <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define(HTTP_SERVER, 'http://www.i-toys.nl'); // eg, http://localhost - should not be empty for productive servers define(HTTPS_SERVER, 'https://www.i-toys.nl'); // eg, https://localhost - should not be empty for productive servers define(ENABLE_SSL, false); // secure webserver for checkout procedure? define(HTTP_COOKIE_DOMAIN, www.i-toys.nl); define(HTTPS_COOKIE_DOMAIN, '); define(HTTP_COOKIE_PATH, /catalog/); define(HTTPS_COOKIE_PATH, /catalog/); define(DIR_WS_HTTP_CATALOG, /catalog/); define(DIR_WS_HTTPS_CATALOG, /catalog); define(DIR_WS_IMAGES, images/); define(DIR_WS_ICONS, DIR_WS_IMAGES . icons/); 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_DOWNLOAD_PUBLIC, pub/); define(DIR_FS_CATALOG, /home/iele1233/i-toys.nl/www/catalog/); define(DIR_FS_DOWNLOAD, DIR_FS_CATALOG . download/); define(DIR_FS_DOWNLOAD_PUBLIC, DIR_FS_CATALOG . pub/); // define our database connection define(DB_SERVER, 127.0.0.1); // eg, localhost - should not be empty for productive servers define(DB_SERVER_USERNAME, ); define(DB_SERVER_PASSWORD, ); define(DB_DATABASE, ); define(USE_PCONNECT, false); // use persistent connections? define(STORE_SESSIONS, 'mysql'); // leave empty '' for default handler or set to mysql ?> catalog admin includes: configure.php: <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define(HTTP_SERVER, 'http://www.i-toys.nl'); // eg, http://localhost - should not be empty for productive servers define(HTTP_CATALOG_SERVER, 'http://www.i-toys.nl'); define(HTTPS_CATALOG_SERVER, '); define(ENABLE_SSL_CATALOG, false); // secure webserver for catalog module define(DIR_FS_DOCUMENT_ROOT, /home/iele1233/i-toys.nl/www/catalog/); // where the pages are located on the server define(DIR_WS_ADMIN, /catalog/admin/); // absolute path required define(DIR_FS_ADMIN, /home/iele1233/i-toys.nl/www/catalog/admin/); // absolute pate required define(DIR_WS_CATALOG, /catalog/); // absolute path required define(DIR_FS_CATALOG, /home/iele1233/i-toys.nl/www/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, 127.0.0.1); // eg, localhost - should not be empty for productive servers define(DB_SERVER_USERNAME, ); define(DB_SERVER_PASSWORD, ); define(DB_DATABASE, ); define(USE_PCONNECT, false); // use persisstent connections? define(STORE_SESSIONS, 'mysql'); // leave empty '' for default handler or set to mysql ?> Thanks a lot for your input, it is greatly appreciated! Martin :'( Link to comment Share on other sites More sharing options...
OceanRanch Posted January 18, 2005 Share Posted January 18, 2005 YIKES!!!!! Most all of the defines that you have should be like the following define(DIR_WS_INCLUDES, 'includes/'); not define(DIR_WS_INCLUDES, includes/); also define(HTTPS_COOKIE_DOMAIN, '); should not be single quoted..... probably should be define(HTTPS_COOKIE_DOMAIN, ''); since you have SSL turned off. Try editing both of your files with values in ' then see what we have and re-post with any errors you get. HTH Tom Link to comment Share on other sites More sharing options...
Guest Posted January 18, 2005 Share Posted January 18, 2005 YIKES!!!!! Most all of the defines that you have should be like the following define(DIR_WS_INCLUDES, 'includes/'); not == == Try editing both of your files with values in ' then see what we have and re-post with any errors you get. HTH Tom <{POST_SNAPBACK}> Changed all the values, end then some This leads to: 1146 - Table 'Fiele12330.banners' doesn't exist select banners_id, date_scheduled from banners where date_scheduled != '' [TEP STOP] Is it possible I did something wrong during installation or .. since there seem to be a lot of bugs. Or is this a normal, walk in the park, configuration? Do I have to make the table with phpmyadmin? What should be in the table? Thanks, Martin >_< Link to comment Share on other sites More sharing options...
OceanRanch Posted January 18, 2005 Share Posted January 18, 2005 All of the bugs so far appear to have been when you (or someone) edited the configure.php files. The good news is that it appears that you have successfully connected to the database. The installation SQL scripts should have built the banners table. Double check your user name/password and "database" entry ('Fiele12330'). I see that from SQL code above. Then I recommend that you begin a new thread/post on the banner table issue. HTH Tom Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.