Post by ocusr » Tue Jan 15, 2019 1:52 am

Hi all, I am using Opencart 2.1.0.1 on my website.
Everything was working fine, but now when I try to login to admin it wont show the dashboard but the admin screen - a login loop.
I'm trying to solve this for the past 2 days looking at the forums etc but nothing seem to work. Kindly take a look and help me out if you can.. thanks a lot.

.htaccess file

Code: Select all

Options +FollowSymlinks

# Prevent Directoy listing
Options -Indexes

# Prevent Direct Access to files
#<FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))">
#Order deny,allow
#Deny from all
#</FilesMatch>

# SEO URL Settings
RewriteEngine On

RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^system/download/(.*) index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

RewriteCond %{HTTP_HOST} !^www\.mysite\.com
RewriteRule (.*) http://www.mysite.com/$1 [R=301,L]
Root config.php

Code: Select all

<?php
// HTTP
define('HTTP_SERVER', 'http://www.mysite.com/');

// HTTPS
define('HTTPS_SERVER', 'http://www.mysite.com/');

// DIR

define('DIR_APPLICATION', '/var/sites/l/mysite.com/public_html/catalog/');
define('DIR_SYSTEM', '/var/sites/l/mysite.com/public_html/system/');
define('DIR_LANGUAGE', '/var/sites/l/mysite.com/public_html/catalog/language/');
define('DIR_TEMPLATE', '/var/sites/l/mysite.com/public_html/catalog/view/theme/');
define('DIR_CONFIG', '/var/sites/l/mysite.com/public_html/system/config/');
define('DIR_IMAGE', '/var/sites/l/mysite.com/public_html/image/');
define('DIR_CACHE', '/var/sites/l/mysite.com/public_html/system/storage/cache/');
define('DIR_DOWNLOAD', '/var/sites/l/mysite.com/public_html/system/storage/download/');
define('DIR_LOGS', '/var/sites/l/mysite.com/public_html/system/storage/logs/');
define('DIR_MODIFICATION', '/var/sites/l/mysite.com/public_html/system/storage/modification/');
define('DIR_UPLOAD', '/var/sites/l/mysite.com/public_html/system/storage/upload/');

// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'xx.xxx.xx.xx');
define('DB_USERNAME', 'xxxxxxx');
define('DB_PASSWORD', 'xxxxxxx');
define('DB_DATABASE', 'xxxxxx');
define('DB_PORT', '3306');
define('DB_PREFIX', 'xx_');
Root php.ini[.b]

Code: Select all

magic_quotes_gpc = Off;
register_globals = Off;
default_charset	= UTF-8;
memory_limit = 64M;
max_execution_time = 36000;
upload_max_filesize = 999M;
safe_mode = Off;
mysql.connect_timeout = 20;
session.auto_start = Off;
session.use_only_cookies = On;
session.use_cookies = On;
session.use_trans_sid = Off;
session.cookie_httponly = On;
session.gc_maxlifetime = 3600;
allow_url_fopen = on;
extension=php_curl.dll;
extension=mcrypt.so;
Admin config.php[.b]

Code: Select all

<?php
// HTTP
define('HTTP_SERVER', 'http://www.mysite.com/admin/');
define('HTTP_CATALOG', 'http://www.mysite.com/');

// HTTPS
define('HTTPS_SERVER', 'http://www.mysite.com/admin/');
define('HTTPS_CATALOG', 'http://www.mysite.com');

// DIR
define('DIR_APPLICATION', '/var/sites/l/mysite.com/public_html/admin/');
define('DIR_SYSTEM', '/var/sites/l/mysite.com/public_html/system/');
define('DIR_LANGUAGE', '/var/sites/l/mysite.com/public_html/admin/language/');
define('DIR_TEMPLATE', '/var/sites/l/mysite.com/public_html/admin/view/template/');
define('DIR_CONFIG', '/var/sites/l/mysite.com/public_html/system/config/');
define('DIR_IMAGE', '/var/sites/l/mysite.com/public_html/image/');
define('DIR_CACHE', '/var/sites/l/mysite.com/public_html/system/storage/cache/');
define('DIR_DOWNLOAD', '/var/sites/l/mysite.com/public_html/system/storage/download/');
define('DIR_LOGS', '/var/sites/l/mysite.com/public_html/system/storage/logs/');
define('DIR_MODIFICATION', '/var/sites/l/mysite.com/public_html/system/storage/modification/');
define('DIR_UPLOAD', '/var/sites/l/mysite.com/public_html/system/storage/upload/');
define('DIR_CATALOG', '/var/sites/l/mysite.com/public_html/catalog/');

// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'xx.xxx.xx.xx');
define('DB_USERNAME', 'xxxxxxx');
define('DB_PASSWORD', 'xxxxxxx');
define('DB_DATABASE', 'xxxxxx');
define('DB_PORT', '3306');
define('DB_PREFIX', 'xx_');
Admin php.ini[.b]

Code: Select all

magic_quotes_gpc = Off;
register_globals = Off;
default_charset	= UTF-8;
memory_limit = 64M;
max_execution_time = 18000;
upload_max_filesize = 999M;
safe_mode = Off;
mysql.connect_timeout = 20;
session.auto_start = Off;
session.use_only_cookies = On;
session.use_cookies = On;
session.use_trans_sid = Off;
session.cookie_httponly = On;
session.gc_maxlifetime = 12000000;
allow_url_fopen = on;
Sincere apologies for the long post.. appreciate any help.

New member

Posts

Joined
Fri Jun 22, 2012 12:10 am

Post by ocusr » Tue Jan 15, 2019 9:53 pm

Anyone? please..
I would be grateful..

New member

Posts

Joined
Fri Jun 22, 2012 12:10 am

Post by johnp » Tue Jan 15, 2019 11:51 pm

I take it your domain is not "mysite.com"? Do you have SSL? Which version of PHP are you running?

Opencart 1.5.6.5/Default Theme/VQMOD 2.6.1 lover, user and geek.
Fast Service for Opencart Installs, Fixing, Development and Upgrades plus Ecommerce, Marketing and More
https://asandwhenbusinessservices.co.uk
https://asandwhenbusinessservices.co.uk ... e-services


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK

Post by ocusr » Wed Jan 16, 2019 12:28 am

No the domain is not mysite.com
There is no SSL at the moment and the PHP version is 5.4.45.
I haven't installed any extensions..
Admin login was working fine before.
Thanks..

New member

Posts

Joined
Fri Jun 22, 2012 12:10 am

Post by johnp » Wed Jan 16, 2019 4:10 am

Ok. So why do you have mysite.com in your config files?

Opencart 1.5.6.5/Default Theme/VQMOD 2.6.1 lover, user and geek.
Fast Service for Opencart Installs, Fixing, Development and Upgrades plus Ecommerce, Marketing and More
https://asandwhenbusinessservices.co.uk
https://asandwhenbusinessservices.co.uk ... e-services


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK

Post by ocusr » Wed Jan 16, 2019 1:05 pm

Oh.. sorry.. it is a friend's site and I just used a dummy name.
Thanks @johnp

New member

Posts

Joined
Fri Jun 22, 2012 12:10 am

Post by johnp » Wed Jan 16, 2019 5:45 pm

Ok. I don't think I can offer much more without looking at the site via FTP.

Opencart 1.5.6.5/Default Theme/VQMOD 2.6.1 lover, user and geek.
Fast Service for Opencart Installs, Fixing, Development and Upgrades plus Ecommerce, Marketing and More
https://asandwhenbusinessservices.co.uk
https://asandwhenbusinessservices.co.uk ... e-services


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK

Post by ocusr » Wed Jan 16, 2019 6:24 pm

Oh.. thanks.. should I pm you the details?

New member

Posts

Joined
Fri Jun 22, 2012 12:10 am

Post by johnp » Wed Jan 16, 2019 7:03 pm

Feel free. :-)

Opencart 1.5.6.5/Default Theme/VQMOD 2.6.1 lover, user and geek.
Fast Service for Opencart Installs, Fixing, Development and Upgrades plus Ecommerce, Marketing and More
https://asandwhenbusinessservices.co.uk
https://asandwhenbusinessservices.co.uk ... e-services


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK
Who is online

Users browsing this forum: No registered users and 15 guests