Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Admin panel


Recommended Posts

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:




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. :)



Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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_WS_CATALOG', '/catalog/');


Link to comment
Share on other sites

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!



Link to comment
Share on other sites

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..

Link to comment
Share on other sites

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



Link to comment
Share on other sites

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.



Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...