Backoffice Login Troubleshooting

Osclass oc-admin login issues can occur due to incorrect credentials, security restrictions, email server problems, or session-related issues. This guide covers the most common problems and their solutions to help you regain access to your Osclass admin panel.

Incorrect Password Issues

If you enter an incorrect password, you will see the following error message:

"Sorry, incorrect password."

Double-check your credentials and try again. If you are unsure about your password, proceed with the password recovery process.

Incorrect password
Incorrect password

Forgot Password / Password Recovery

If you forgot your password, Osclass provides a built-in recovery system. Click on the “Have you lost your password?” link on the login page. Enter your email address, and Osclass will send a password reset link. Follow the instructions in the email to create a new password.

Too Many Failed Login Attempts

Osclass temporarily blocks login attempts if too many incorrect passwords are entered. The following message will be displayed:

"Sorry, you have entered incorrect password more than 5 times. You will be able to login again in 5 minutes."

The lockout period increases with repeated failed attempts as follows:

  • 5 failed attempts → Locked for 5 minutes
  • 10 failed attempts → Locked for 30 minutes
  • 15 failed attempts → Locked for 60 minutes
  • 20+ failed attempts → Locked for 360 minutes (6 hours)

This mechanism is designed to protect your backoffice from brute-force attacks.

Solution for Locked Accounts

  • Wait until the suspension period expires.
  • If you have immediate access to the database, reset the password using phpMyAdmin (see the "Email Server Issues" section below).

Email Server Issues – Password Reset Not Working

If the email server is not properly configured, Osclass may not be able to send password reset emails. In such cases, you will not receive the password recovery link, making it difficult to restore access.

Manual Password Reset via phpMyAdmin

If you cannot reset your password due to email server issues, follow these steps to manually update your admin password:

Step 1: Create a Temporary Osclass Installation

  1. Install Osclass on a subdomain or a test folder on the same domain.
  2. During installation, create an admin account with a password you will remember.
  3. Log in to the new test installation using the password you just set.

Step 2: Copy the Hashed Password from the Test Database

  1. Open phpMyAdmin or any database manager.
  2. Navigate to the database of the test installation.
  3. Locate the oc_t_admin table.
  4. Open the only admin record present.
    Admin record
    Admin record
  5. Copy the hashed password stored in the s_password column.

Step 3: Update the Password in the Original Database

  1. Open phpMyAdmin for your original Osclass website.
  2. Navigate to the oc_t_admin table in the database.
  3. Edit the s_password field for the affected admin user.
  4. Paste the copied hashed password into this field and save changes.

Now, you should be able to log in using the new password.

Login Issues Without Error Messages

No Message After Clicking Login, but Not Logged In

If you enter valid credentials but remain stuck on the login page without any error messages or changes, this is likely a server session issue.

Possible Causes

  • PHP sessions are not working properly on your server.
  • The session lifetime is too short, causing login data to expire immediately.
  • Server misconfiguration or incorrect session storage path.

Solution

  1. Check if sessions are working:
    <?php
    session_start();
    $_SESSION['test'] = "Session is working";
    echo $_SESSION['test'];
    ?>

    If this script does not display "Session is working," your server has session issues.

  2. Contact your hosting provider:
    • Ask them to check PHP session settings and session storage path.
    • If using shared hosting, try migrating to a different server.
  3. Verify session lifetime settings:

    Open your server’s php.ini file and check:

    session.gc_maxlifetime = 1440

    Increase this value if it’s too low.

Final Notes

  • Always use strong passwords to enhance security.
  • Regularly backup your database to prevent lockouts.
  • Enable two-factor authentication for additional security if possible.

By following these troubleshooting steps, you should be able to resolve common Osclass backoffice login issues effectively.