methonis Posted November 12, 2002 Posted November 12, 2002 Oks, told you all I'd be back soon! :) Here's my problem, when I load up http://localhost/admin/admin it opens up that nice looking administration panel. However when I click any of the options (config, modules, ect) it brings to the 404 file not found. What it was doing was trying to go to http://localhost/admin/admin/admin//config...ation.php?(some php crap) So I went into configure.php in the admin folder, and changed this line: define('DIR_WS_ADMIN', '/admin/'); to this: define('DIR_WS_ADMIN', '/'); Then I saved and refreshed. I was again brought to a 404 file not found page. This time it tried to access http://localhost/admin/admin//blah blah blah. So I went back again to define('DIR_WS_ADMIN', '/'); and took out the / so it looked like this: define('DIR_WS_ADMIN', ''); Then after saving/refreshing, it instead brought me to This page cannot be displayed, and the addy in the bar was this: http://localhostconfiguration.php/?selecte...iguration&gID=1 I have no idea of that works, but if someone has an idea of what is screwed up in which file, I would most appreciate you sending a reply. :) Meth
dahammer2 Posted November 12, 2002 Posted November 12, 2002 mine looks like this on my windows machine. define('HTTP_SERVER', 'http://localhost') define('DIR_WS_ADMIN', '/admin/'); at a guess your http_server says "http://localhost/admin/admin"? you could show us the first 10 lines of defines in the configure.php file so we cna see what the real problem is.
methonis Posted November 12, 2002 Author Posted November 12, 2002 Ok, here are the first ten define lines of the admin configure.php file: define('HTTP_SERVER', 'http://localhost'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://localhost'); define('HTTPS_CATALOG_SERVER', 'https://localhost'); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs) define('DIR_WS_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);
methonis Posted November 12, 2002 Author Posted November 12, 2002 Aha! I had to set http server to http://localhost/admin and then set define('DIR_WS_ADMIN', '/admin/'); like that. Thanks for the quick response. :) I do have one more question. Everything seems to work great now with the exception of that in the catalog pages the "utility" picture links (cart, quick find, language, ect.) don't work. All of the other pictures are loading fine, it's just those few. Any ideas there? Thanks again for the help! Meth
dahammer2 Posted November 12, 2002 Posted November 12, 2002 ok make 'DIR_WS_ADMIN' the relative directory from your web root eg on a windows system it might be '/admin/' for c:/inetpub/wwwroot/admin/ linux '/admin/' for /path/to/www/admin/
methonis Posted November 12, 2002 Author Posted November 12, 2002 Sorry, is that in response to my previous query or my most recent? I have worked out the previous question, if you could offer any help on my current one I would most appreciate it. :) Meth
dahammer2 Posted November 12, 2002 Posted November 12, 2002 hmm are the buttons working? and are product images working? I'd obviously first check catalog/configure.php for paths again. Might be worth even viewing the source for one of those images that dont' work and pasting it here.. i,e, just the <img src=/im....> part. I normally find these by searching for the ALT text (hold mouse on the dead image and it'll show up after 2 seconds). My link to my server just went down so I can't check the exact config options..
methonis Posted November 12, 2002 Author Posted November 12, 2002 Ok, here's an example of one of the pics that doesn't load. All the product pictures load fine. <input type="image" src="includes/languages/english/images/buttons/button_quick_find.gif" border="0" alt="Quick Find" title=" Quick Find "><br>Use keywords to find the product you are looking for.<br><a href="http://localhost/catalog/catalog/advanced_search.php"><b>Advanced Search</b></a></form> I checked the image path, and it seems correct. Here are the define paths for the catalog config define('HTTP_SERVER', 'http://localhost'); // eg, http://localhost - should not be NULL for productive servers define('HTTPS_SERVER', 'https://localhost'); // eg, https://localhost - should not be NULL for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('DIR_WS_CATALOG', '/catalog/catalog/'); // absolute path required define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); // If "URL fopen wrappers" are enabled in PHP (which they are in the default configuration), this can be a URL instead of a local pathname 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/'); Hope this helps you decipher what may be wrong Thanks again Meth
dahammer2 Posted November 12, 2002 Posted November 12, 2002 well thats where mine are too and it works :) wanna quickly check they ARE there? you never know :)
methonis Posted November 12, 2002 Author Posted November 12, 2002 Yes, I confirmed that the images actually do exist. (Opened them up in image viewer) I am rather confused on this one since the product pictures, osCommerce banner all load up, it's just those cart/find/checkout icons that don't... Well, if you think of something else please post. Meth
methonis Posted November 12, 2002 Author Posted November 12, 2002 Have a question though. That gif in the example resides in catalogcatalogincludeslanguagesenglishicons. Should it just be in catalogcatalogimages??? Meth
dahammer2 Posted November 12, 2002 Posted November 12, 2002 no the image is in this directory: includes/languages/english/images/buttons/ thats what your code and mine points to. Not in the english/icons directory as u just suggested so double check.
methonis Posted November 12, 2002 Author Posted November 12, 2002 Gah, you're right, that's where it is. And that is where it is supposed to be. I'm a bit tired. :P Meth
Recommended Posts
Archived
This topic is now archived and is closed to further replies.