mrpolka Posted September 12, 2010 Posted September 12, 2010 Hi all, I have close to nothing expirience with osCommerce so please help me. A former colleague changed the location of some files in the libery. Now I can't log in as admin. I'm trying to log in here: /admin/login.php but gets forwarded to this site when I try to log in: /dev/admin/login.php?action=process What can I do? best regards MrPolka
FIMBLE Posted September 12, 2010 Posted September 12, 2010 looks like your configure.php is either now wrong or you are trying to log into a store in the wrong location the admin is pointing to www.yoursite.com/dev/admin you are trying to access www.yoursite.com/admin IF you are using the correct url then log in via ftp of your web hosting control panel and go to admin / includes / configure.php there are two lines in there that point to your admin all you need do is remove the dev from the line Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
mrpolka Posted September 12, 2010 Author Posted September 12, 2010 Thanks for your fast reply. I have entered the ftp server, but when I go to admin / includes / configure.php I just gets a blank page. What to do?
FIMBLE Posted September 12, 2010 Posted September 12, 2010 You should not get a blank page via FTP, unless there is actually nothing in the file! Please define what you call FTP so i know if its correct or not. Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
mrpolka Posted September 12, 2010 Author Posted September 12, 2010 Okay, This is where I look: ftp://ftp.mysite.dk/httpdocs/admin/includes/configure.php
FIMBLE Posted September 12, 2010 Posted September 12, 2010 That looks ok, so when you open the file there is nothing there at all? There must be something or you would get more errors Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
FIMBLE Posted September 12, 2010 Posted September 12, 2010 is there a folder called dev on the server. nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
mrpolka Posted September 12, 2010 Author Posted September 12, 2010 There is a folder called dev here: ftp://ftp.mysite.dk/httpdocs/dev/ there is nothing in the folder.
FIMBLE Posted September 12, 2010 Posted September 12, 2010 OK what is your website url? Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
mrpolka Posted September 12, 2010 Author Posted September 12, 2010 why do you need that? helsegrossisten.dk
FIMBLE Posted September 12, 2010 Posted September 12, 2010 Yes thats correct, you do have a file in your admin / includes / configure.php with contents and this is the one you need to edit as it now points to as you say dev/admin. I cant say why you do not see it but its there and it has information in it otherwise you would get another cant connect error, what are you using for your FTP? Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
FIMBLE Posted September 12, 2010 Posted September 12, 2010 i see you got it fixed, well done Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
mrpolka Posted September 12, 2010 Author Posted September 12, 2010 What? I havn't done/changed anything. I'm using www.domaindirect.dk for my FTP.
FIMBLE Posted September 12, 2010 Posted September 12, 2010 thought you had as i managed to get to the login page, went to http://www.helsegrossisten.dk/admin/login.php and it sent me to http://www.helsegrossisten.dk/dev/admin/login.php i removed the dev from the url and got your admin. Is there anything in your htaccess about redirects either your catalog (root) or admin? Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
mrpolka Posted September 12, 2010 Author Posted September 12, 2010 ftp://ftp.helsegrossisten.dk/httpdocs/redirect.php this one is blank there is nothing about redirect in the admin folder.
FIMBLE Posted September 12, 2010 Posted September 12, 2010 I think that you ftp is not working, the file in admin is there but for some reason your ftp isn't showing you. Why not try FileZilla if you Google it you will find it, use that and try again. I'm sure the files contain info or you would have errors! Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
mrpolka Posted September 12, 2010 Author Posted September 12, 2010 Okay, I'm not using a FTP program atm. Now I have downloaded the FileZilla client. Should I use the Website Manager? I really appriciate your help Nic.
FIMBLE Posted September 12, 2010 Posted September 12, 2010 Okay, I'm not using a FTP program atm. Now I have downloaded the FileZilla client. Should I use the Website Manager? I really appriciate your help Nic. Oh you said earlier you were, i would use filezilla to connect to your web space, you will always have it ready then. Also im sure that once you have connected and opened the file you will see it right away and you are welcome Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
mrpolka Posted September 12, 2010 Author Posted September 12, 2010 I'm sorry about that. Now I'm trying to connect via FileZilla, it's a bit complicated.
FIMBLE Posted September 12, 2010 Posted September 12, 2010 I'm sorry about that. Now I'm trying to connect via FileZilla, it's a bit complicated. Ok for your FTP you enter ftp.helsegrossisten.dk then you enter your username and passwords, normally the ones you use to connect to your web space, Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
mrpolka Posted September 12, 2010 Author Posted September 12, 2010 Got it. This is what I get from the file: <?php define('HTTP_SERVER', 'http://www.helsegrossisten.dk/dev'); define('HTTP_CATALOG_SERVER', 'http://www.helsegrossisten.dk/dev'); define('HTTPS_CATALOG_SERVER', 'http://www.helsegrossisten.dk/dev'); define('ENABLE_SSL_CATALOG', 'false'); define('DIR_FS_DOCUMENT_ROOT', '/var/www/vhosts/helsegrossisten.dk/httpdocs/dev'); define('DIR_WS_ADMIN', '/admin/'); define('DIR_FS_ADMIN', '/var/www/vhosts/helsegrossisten.dk/httpdocs/devadmin/'); define('DIR_WS_CATALOG', '/'); define('DIR_FS_CATALOG', '/var/www/vhosts/helsegrossisten.dk/httpdocs/dev'); 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('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', 'XXXXXXX'); define('DB_SERVER_PASSWORD', 'XXXXXXXXX'); define('DB_DATABASE', 'helse'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?>
FIMBLE Posted September 12, 2010 Posted September 12, 2010 OK change it to <?php define('HTTP_SERVER', 'http://www.helsegrossisten.dk'); define('HTTP_CATALOG_SERVER', 'http://www.helsegrossisten.dk'); define('HTTPS_CATALOG_SERVER', 'http://www.helsegrossisten.dk'); define('ENABLE_SSL_CATALOG', 'false'); define('DIR_FS_DOCUMENT_ROOT', '/var/www/vhosts/helsegrossisten.dk/httpdocs/'); define('DIR_WS_ADMIN', '/admin/'); define('DIR_FS_ADMIN', '/var/www/vhosts/helsegrossisten.dk/httpdocs/admin/'); define('DIR_WS_CATALOG', '/'); define('DIR_FS_CATALOG', '/var/www/vhosts/helsegrossisten.dk/httpdocs/'); 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('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', 'XXXXXXX'); define('DB_SERVER_PASSWORD', 'XXXXXXXXX'); define('DB_DATABASE', 'helse'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?> Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
mrpolka Posted September 12, 2010 Author Posted September 12, 2010 It worked! Thanks a lot Nic. You have solved my problem. Do you know how, I can make the site inactive / or something different, so they can't access it. thanks again!
FIMBLE Posted September 12, 2010 Posted September 12, 2010 It worked! Thanks a lot Nic. You have solved my problem. Do you know how, I can make the site inactive / or something different, so they can't access it. thanks again! Good, glad we got there in the end. You can install this, it will do what you want it to http://addons.oscommerce.com/info/6332 Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
Recommended Posts
Archived
This topic is now archived and is closed to further replies.