Post by shenkwen » Fri Jul 14, 2017 12:45 am

website: newyorkliquorgiftshop.com

My version is 1.5.4, the site has been working for several years, hosted with godaddy php 5.3. Recently all of a sudden this problem shows up: On login page, after I put in the correct username/password, instead of showing the dashboard page, it stays at login page without any error message..
I suppose the login is successful because if I put in wrong password an error message will show.

Some say this is possibly because the www/non-www redirect setting in config file, here are both of my config files, I've tried putting in "www" or not for the URLs, but none worked.

Part of config.php under "admin" folder:

Code: Select all

define('HTTP_SERVER', 'http://newyorkliquorgiftshop.com/admin/');
define('HTTP_CATALOG', 'http://newyorkliquorgiftshop.com/');

// HTTPS
define('HTTPS_SERVER', 'https://newyorkliquorgiftshop.com/admin/');
define('HTTPS_CATALOG', 'https://newyorkliquorgiftshop.com/');

// DIR
define('DIR_APPLICATION', '/home/content/55/5307955/html/admin/');
define('DIR_SYSTEM', '/home/content/55/5307955/html/system/');
define('DIR_DATABASE', '/home/content/55/5307955/html/system/database/');
define('DIR_LANGUAGE', '/home/content/55/5307955/html/admin/language/');
define('DIR_TEMPLATE', '/home/content/55/5307955/html/admin/view/template/');
define('DIR_CONFIG', '/home/content/55/5307955/html/system/config/');
define('DIR_IMAGE', '/home/content/55/5307955/html/image/');
define('DIR_CACHE', '/home/content/55/5307955/html/system/cache/');
define('DIR_DOWNLOAD', '/home/content/55/5307955/html/download/');
define('DIR_LOGS', '/home/content/55/5307955/html/system/logs/');
define('DIR_CATALOG', '/home/content/55/5307955/html/catalog/');
Part of config.php under document root:

Code: Select all

// HTTP
define('HTTP_SERVER', 'http://newyorkliquorgiftshop.com/');

// HTTPS
define('HTTPS_SERVER', 'https://newyorkliquorgiftshop.com/');

// DIR
define('DIR_APPLICATION', '/home/content/55/5307955/html/catalog/');
define('DIR_SYSTEM', '/home/content/55/5307955/html/system/');
define('DIR_DATABASE', '/home/content/55/5307955/html/system/database/');
define('DIR_LANGUAGE', '/home/content/55/5307955/html/catalog/language/');
define('DIR_TEMPLATE', '/home/content/55/5307955/html/catalog/view/theme/');
define('DIR_CONFIG', '/home/content/55/5307955/html/system/config/');
define('DIR_IMAGE', '/home/content/55/5307955/html/image/');
define('DIR_CACHE', '/home/content/55/5307955/html/system/cache/');
define('DIR_DOWNLOAD', '/home/content/55/5307955/html/download/');
define('DIR_LOGS', '/home/content/55/5307955/html/system/logs/');

Newbie

Posts

Joined
Wed Dec 21, 2016 10:28 pm

Post by inactiveaccount9912 » Fri Jul 14, 2017 4:07 pm

I think you have a sessions problem, and because the session doesnt save you are beeing redirected back to login.

Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am

Post by IP_CAM » Sat Jul 15, 2017 12:44 am

in later 1.5.x Versions at least, and depending using http or https,
config.php linking usually either looks like this in HTTP-Mode:

Code: Select all

define('HTTP_SERVER', 'http://...../);
define('HTTP_CATALOG', 'http://...../);
// HTTPS
define('HTTPS_SERVER',  'http://...../);
define('HTTPS_CATALOG', 'http://...../);
or then like this in HTTPS-Mode:

Code: Select all

define('HTTP_SERVER', 'https://...../);
define('HTTP_CATALOG', 'https://...../);
// HTTPS
define('HTTPS_SERVER',  'https://...../);
define('HTTPS_CATALOG', 'https://...../);
Just to mention it! ;)
Ernie

My Github OC Site: https://github.com/IP-CAM
5'600 + 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 13 guests