Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Local install admin panel not working


fatmcgav

Recommended Posts

Hey there,

 

I've successfully installed a local version of Osc on my laptop using Apache2Triad.

The catalog itself works fine, with 1 catch - i am unable to access the admin panel.

 

It doesent give me an error or anything - it just shows a blank screen.

 

Heres my config files:

<?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://angelxt-cat.local.com'); // eg, http://localhost - should not be empty for productive servers

  define('HTTP_CATALOG_SERVER', 'http://angelxt-cat.local.com');

  define('HTTPS_CATALOG_SERVER', '');

  define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

  define('DIR_FS_DOCUMENT_ROOT', 'C:/apache2triad/htdocs/angelxtreme-catalog/'); // where the pages are located on the server

  define('DIR_WS_ADMIN', '/admin/'); // absolute path required

  define('DIR_FS_ADMIN', 'C:/apache2triad/htdocs/angelxtreme-catalog/admin/'); // absolute pate required

  define('DIR_WS_CATALOG', '/'); // absolute path required

  define('DIR_FS_CATALOG', 'C:/apache2triad/htdocs/angelxtreme-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 the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

  define('HTTP_SERVER', 'http://angelxt-cat.local.com'); // eg, http://localhost - should not be empty for productive servers

  define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers

  define('ENABLE_SSL', false); // secure webserver for checkout procedure?

  define('HTTP_COOKIE_DOMAIN', 'angelxt-cat.local.com');

  define('HTTPS_COOKIE_DOMAIN', '');

  define('HTTP_COOKIE_PATH', '/');

  define('HTTPS_COOKIE_PATH', '');

  define('DIR_WS_HTTP_CATALOG', '/');

  define('DIR_WS_HTTPS_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', 'C:/apache2triad/htdocs/angelxtreme-catalog/');

  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

  define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

I am running STS template - whether that should have an effect, i duno :S:S

 

Any ideas on what might be causing this?

 

Cheers

Fatmcgav

Link to comment
Share on other sites

Hey,

 

I just looked at me logs, and it displays the following:

 

127.0.0.1 - - [02/Feb/2005:09:40:04 +0000] "GET /admin HTTP/1.1" 301 314

127.0.0.1 - - [02/Feb/2005:09:40:04 +0000] "GET /admin/ HTTP/1.1" 200 -

127.0.0.1 - - [02/Feb/2005:09:40:05 +0000] "GET /favicon.ico HTTP/1.1" 404 1188

 

[Wed Feb 02 09:40:05 2005] [error] [client 127.0.0.1] File does not exist: C:/apache2triad/htdocs/angelxtreme-catalog/favicon.ico

 

Any ideas what these mean?

 

Cheers

Fatmcgav

Link to comment
Share on other sites

I just googled 301, and it's the following error:

301 Moved Permanently

 

The requested resource has been assigned a new permanent URI and any future references to this resource SHOULD use one of the returned URIs. Clients with link editing capabilities ought to automatically re-link references to the Request-URI to one or more of the new references returned by the server, where possible. This response is cacheable unless indicated otherwise.

 

The new permanent URI SHOULD be given by the Location field in the response. Unless the request method was HEAD, the entity of the response SHOULD contain a short hypertext note with a hyperlink to the new URI(s).

 

If the 301 status code is received in response to a request other than GET or HEAD, the user agent MUST NOT automatically redirect the request unless it can be confirmed by the user, since this might change the conditions under which the request was issued.

 

      Note: When automatically redirecting a POST request after

      receiving a 301 status code, some existing HTTP/1.0 user agents

      will erroneously change it into a GET request.

 

Any ideas?

I cant find anything on 314, and 200 is just an OK code.

 

 

Cheers

Fatmcgav

P.S. I know i shouldn't do another reply, but i was unable to edit the above post for some strange reason.

Link to comment
Share on other sites

Hi,

 

You stated that you had moved 'admin', hence the 301.

 

The value of 314 is the number of bytes, not a http code.

 

Peter

I havent moved the admin panel, it's still in the default locations.

 

Any ideas?

 

one thing i did wonder - in the admin config, the 'dir_ws_xxx' says it requires an 'absolute' path. Does this mean i should put the catalog path in as http://angelxt-cat.local.com/ and the admin panel in as http://angelxt-cat.local.com/admin/ ???

 

Cheers

Fatmcgav

Link to comment
Share on other sites

Hi,

 

I havent moved the admin panel, it's still in the default locations.

 

Sorry, I was getting you mixed up with another post about install/admin problems.

 

Notice the '200' was returned on this:

 

GET /admin/ HTTP/1.1" 200 -

 

and not ..................

 

GET /admin HTTP/1.1

 

I _think_ this should be .......

 

define('DIR_WS_ADMIN', 'admin/');

 

Peter

Link to comment
Share on other sites

i've just had a little play with the config - and from wat i see, having the '/' infront or not makes no difference - and the 301 codes are caused by me typing it in as http://angelxt-cat.local.com/admin not http://angelxt-cat.local.com/admin/ - forgettin the trailing slash.

 

What does concern me is the fact that when the 200 code is returned, there isn't a bytes value - suggesting that nothing is returned...

 

Any ideas ppl?

Link to comment
Share on other sites

Ah, now i've got somet that might be of use :D:D

 

I just enabled 'Display All Error messages' in my php.ini file, and on accessing the admin panel, it gives me this:

Fatal error: Cannot re-assign $this in C:\apache2triad\htdocs\angelxtreme-catalog\admin\includes\classes\upload.php on line 31

 

Any ideas how i can fix this?

 

Line 30-31 in \classes\upload.php reads as:

// self destruct
         $this = null;

 

Any ideas?

 

Cheers

Fatmcgav

Link to comment
Share on other sites

Hi,

 

You are using PHP 5 , osC is not yet PHP5 compatible.

 

I think there are only 2 choices, use PHP 4.3.10, or comment out that line of code, but do a search on "$this" and you will find the correct answer about what to do re code changes.

 

Peter

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...