Post by jasiv3 » Wed May 24, 2017 4:16 pm

Hi, recently installed opencart version 2.X. After installation, i couldn't login to the admin page, web page just refreshes when i hit log in. And weird thing is that the username box was automatically input with my DB user name, but that's not my user name for the admin page.
Does anyone know what might be the problem?
many thanks!

this is what my config.php shows:
<?php
// HTTP
define('HTTP_SERVER', 'https://routerbits.000webhostapp.com/admin/');
define('HTTP_CATALOG', 'https://routerbits.000webhostapp.com/');

// HTTPS
define('HTTPS_SERVER', 'https://routerbits.000webhostapp.com/admin/');
define('HTTPS_CATALOG', 'https://routerbits.000webhostapp.com/');

// DIR
define('DIR_APPLICATION', '/storage/h7/917/1348917/public_html/admin/');
define('DIR_SYSTEM', '/storage/h7/917/1348917/public_html/system/');
define('DIR_IMAGE', '/storage/h7/917/1348917/public_html/image/');
define('DIR_LANGUAGE', '/storage/h7/917/1348917/public_html/admin/language/');
define('DIR_TEMPLATE', '/storage/h7/917/1348917/public_html/admin/view/template/');
define('DIR_CONFIG', '/storage/h7/917/1348917/public_html/system/config/');
define('DIR_CACHE', '/storage/h7/917/1348917/public_html/system/storage/cache/');
define('DIR_DOWNLOAD', '/storage/h7/917/1348917/public_html/system/storage/download/');
define('DIR_LOGS', '/storage/h7/917/1348917/public_html/system/storage/logs/');
define('DIR_MODIFICATION', '/storage/h7/917/1348917/public_html/system/storage/modification/');
define('DIR_UPLOAD', '/storage/h7/917/1348917/public_html/system/storage/upload/');
define('DIR_CATALOG', '/storage/h7/917/1348917/public_html/catalog/');

// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'id1348917_jasiv3');
define('DB_PASSWORD', 'xxxxxxxx');
define('DB_DATABASE', 'id1348917_jason');
define('DB_PORT', '3306');
define('DB_PREFIX', 'oc_');

Newbie

Posts

Joined
Fri Apr 07, 2017 7:35 pm

Post by IP_CAM » Fri May 26, 2017 5:49 am

And weird thing is that the username box was automatically input with my DB user name, but that's not my user name for the admin page.
Does anyone know what might be the problem?


well, that's not a weird thing, it's just the same Browser-Cookie, as used before, when installing a Shop the first time.
And by nature of things, the Admin Credentials have to be entered manually, the first time, to get a separate
cookie for those values as well.

Ernie

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 36 guests