Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problems accessing Administration


mobilitytrader

Recommended Posts

Posted

first of all, sorry if this is a double or triple post, searched the forum but wasn't able to find anything (maybe my fault), so don't shoot me :)

 

anywayz, i had a lot of testing on a Nix maschine and everything went fine, no probs at all.

now i installed osC 2.2 on my Windows Box

 

OS: Windows 2003 Server

Server: Apache2Triad

DNS: enabled

 

everything works fine, installation was successful unless im trying to connect to the administation, im getting a white page and nothing else

 

i copied the configure.php into /admin/includes/local/ with these settings

 

<?php

/*

$Id: configure.php,v 1.2 2001/12/03 15:31:05 dgw_ Exp $

 

The Exchange Project - Community Made Shopping!

http://www.theexchangeproject.org

 

Copyright © 2000,2001 The Exchange Project

 

Released under the GNU General Public License

*/

 

define('HTTP_SERVER', 'http://dev-store.development.home');

define('HTTPS_SERVER', '');

define('ENABLE_SSL', 0); // ssl server enable(1)/disable(0)

 

define('DIR_FS_DOCUMENT_ROOT', 'D:/apache2triad/htdocs/www/dev-store/');

 

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', 'root');

define('DB_SERVER_PASSWORD', 'password');

define('DB_DATABASE', 'dev_store');

 

define('CONFIGURE_STATUS_COMPLETED', 1);

?>

 

seems fine 2 me, but... it doesn't work, so i can't access the panel anyway, please if somebody has any suggestion.

 

PS: all other stuff im running on my Win Box (with MySQL, php etc) works fine, no errors at all, but that doesn't mean that the other stuff is better that osC, would say that osC is the best shop i have ever installed :)

Posted

Well, could the problem be that you are running a version of osCommerce that is years out of date? Try installing the latest version from downloads at www.oscommerce.com

 

Vger

Posted

I am no expert in these matters, but a couple of things different to my install are:

 

1, My configure.php is in catalog/admin/includes Not includes/local as you have it. Presumably, you have re-named catalog to dev-store.

 

2, HTTP_SERVER I have set to 127.0.0.1 (localhost)

 

I don't know if your problem lies within that, but a process of elimination maybe.

 

Good luck!

Posted

this configure.php is in a folder called extras/win32/ and the readme said that

 

This is an example of how to update the configuration parameters

for a win32 (Microsoft Windows) environment.

 

You can either edit catalog/includes/application_top.php directly

with these changes, or you can add configure.php to

catalog/includes/local/ which will overwrite the settings in

application_top.php.

 

also, it doesn't matter if you rename catalog to something else or if you install it to a root of a webserver.

 

thanx anyway :)

Posted

I know you can rename catalog, was just asking. Didn't know about overiding application_top, but I do now.

 

What about the HTTP_SERVER part?

Posted

so, i finally figured it out (but not all by my self)

i just remembered, that a few months ago, i tried to do that again on a local development server, and had the same problems, somehow i found on this fine forum the solution !!!

 

I remembered something about a $this value in a file called upload.php located under /admin/includes/classes/

 

not here is what you have to do:

 

find in the beginning of the script (/admin/includes/classes/upload.php) the lines:

 

// self destruct

$this = null;

 

and change it to:

 

// self destruct

// $this = null;

 

and... voila, i can access my administration without a problem !!!!!!

 

dunno what it does, would actually know what it does :blush:

 

thanx anyway ppl, for your help , i really appreciated that :)

  • 1 month later...
Posted

Cool - that was easy !!!

 

the // $this=null worked beautifully (one time an' all!!).

 

I'm running IIS, PHP and MYSQL - so I think this fix will work for anyone setting up a local development server, i.e. it's purely an OSCommerce thing that should be standard procedure.

 

Wow - there is nothing like a local server. No more frustrating FTP'ing up and down to test simple fixes and debugs, tiptoeing around a live site. Fearless experimentation is now possible.

:thumbsup: :thumbsup:

Never underestimate the power of stupid people, especially in groups.

Archived

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

×
×
  • Create New...