Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have permission to ask a question, You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

Journal-Community

Journal-Community Logo Journal-Community Logo

Journal-Community Navigation

  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • About Us
  • Blog
  • Contact Us
Home/ Questions/Q 2940
Next
In Process
itlaboni
  • 0
itlaboniEnlightened
Asked: February 7, 20252025-02-07T14:22:10+00:00 2025-02-07T14:22:10+00:00In: Login Problems

OpenCart Admin Panel Stuck in Redirect Loop (Too Many Redirects)

  • 0

When trying to access the OpenCart admin panel (/admin), you get:

  • A browser error saying “ERR_TOO_MANY_REDIRECTS”.
  • The page keeps refreshing and never loads.
  • You cannot log in due to continuous redirects.

This issue often happens due to incorrect URL settings, session conflicts, or SSL misconfigurations.

admin panel redirectinglogin looptoo many redirects
  • 2 2 Answers
  • 41 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

2 Answers

  • Voted
  • Oldest
  • Recent
  • Random
  1. admin Enlightened
    2025-02-07T14:23:34+00:00Added an answer on February 7, 2025 at 2:23 pm

    1. Clear Browser Cookies & Cache

    • Open OpenCart admin in incognito mode.
    • Clear cookies & cache for your website.
    • If you have a Cloudflare proxy, disable it temporarily.

    2. Check config.php Files (Incorrect URLs)

    • Open /admin/config.php and /config.php.
    • Ensure the correct URLs are set:
      php
      CopyEdit
      define('HTTP_SERVER', 'https://yourdomain.com/admin/');
      define('HTTPS_SERVER', 'https://yourdomain.com/admin/');
    • If you recently enabled SSL, make sure HTTPS_SERVER is correct.

    3. Fix Cookie & Session Settings in config.php

    • Add or update this line in /admin/config.php:
      php
      CopyEdit
      ini_set('session.cookie_secure', 'On');
      ini_set('session.use_only_cookies', 'On');

    4. Manually Clear OpenCart Sessions

    • If session data is corrupt, delete OpenCart session files:
      sh
      CopyEdit
      rm -rf system/storage/session/*
    • You can also truncate the session table in MySQL:
      SQL
      CopyEdit
      TRUNCATE TABLE oc_session;

    5. Disable SSL Temporarily in the Database

    • If SSL was enabled incorrectly, disable it using SQL:
      SQL
      CopyEdit
      UPDATE oc_setting SET value = '0' WHERE key = 'config_secure';
    • Then, try logging in again.

    6. Check for .htaccess Redirect Issues

    • If .htaccess has incorrect rules, it can cause redirect loops.
    • Rename .htaccess temporarily and try again.

    7. Disable Admin Login Redirects via Database

    • If an extension is causing the issue, disable it:
      SQL
      CopyEdit
      UPDATE oc_setting SET value = '0' WHERE key = 'config_admin_language';

    8. Restart the Web Server & Try Again

    • If you recently changed settings, restart Apache/Nginx:
      sh
      service apache2 restart # For Apache
      service nginx restart # For Nginx

    9. Restore from a Working Backup

    • If the issue started after an update, restore a backup of config.php.
    • Try reverting recent changes and check logs.

    Comments:
    Incorrect settings or session conflicts usually cause this issue. If you’re still stuck, check the browser console for redirect errors. 🚀

    • 0
    • Share
      Share
      • Share onFacebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 320
  • Answers 320
  • Best Answer 1
  • Users 114
  • Popular
  • Answers
  • itlaboni

    OpenCart Admin Login Page Keeps Refreshing (Cannot Log In)

    • 2 Answers
  • itrashel

    Mobile Responsiveness Issue with OpenCart Journal Theme

    • 1 Answer
  • itrashel

    OpenCart Journal Theme Slideshow Not Working

    • 1 Answer
  • admin
    admin added an answer 1. Clear Browser Cache & Cookies Open OpenCart admin in… February 7, 2025 at 2:27 pm
  • admin
    admin added an answer 1. Clear Browser Cookies & Cache Open OpenCart admin in… February 7, 2025 at 2:23 pm
  • admin
    admin added an answer 1. Enable Error Reporting to See the Actual Issue Open… February 6, 2025 at 2:06 pm

Related Questions

  • OpenCart Admin Login Page Keeps Refreshing (Cannot Log In)

    • 2 Answers
  • OpenCart Journal Theme Admin Panel Login Issue

    • 1 Answer

Top Members

itlaboni

itlaboni

  • 284 Questions
  • 355 Points
Enlightened
admin

admin

  • 26 Questions
  • 320 Points
Enlightened
itrashel

itrashel

  • 8 Questions
  • 38 Points
Begginer

Trending Tags

checkout button issue checkout process issues e-commerce functionality issues front-end display issues frontend functionality frontend problems functionality problems mobile responsiveness issue mobile responsiveness issues navigation issues navigation problem navigation problems opencart journal theme performance issues product image display issue product image loading issue slider image display issue slow page loading user experience problems user interface problems

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • Buy Theme

Footer

Journal-Community

Journal Community: Empowering OpenCrt Users with Advanced Solutions. Join our vibrant community to unlock the full potential of the best-selling theme. Get expert guidance, personalized support, and collaborative problem-solving for elevated OpenCrt experts.

About Us

  • About Us
  • Contact Us
  • Meet The Team

Legal Stuff

  • Privacy Policy
  • Terms & Condition
  • FAQs

Help

  • Knowledge Base
  • Support

Follow