*

oscInstaller

  • *
  • 3 posts
Admin can't login in New Install
« on: June 25, 2022, 09:57:52 AM »
Hi,

I install the latest 8.0.2 in my VPS hosting, but can't login as admin right after install. I have got the same condition on v8.0.1.
What could possible go wrong?
v8.0.2, v8.0.1
successfully completed installation.
checked in myadmin, It had created tables in the DB.
received installation email with admin password.
When try to login as admin with the password, the "oc-admin/index.php?page=login" just reloads and nothing happens.
When using the forget password function, entered admin email, clicked "Get New Password", page reloads.

please help!

*

MB Themes

Re: Admin can't login in New Install
« Reply #1 on: June 25, 2022, 10:17:45 AM »
Several similar topics were discussed recently, where browser blocks login form submission because site does not use SSL.

Solution: Add SSL certificate and in config.php uodate web link to have https:// instead of http://
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

oscInstaller

  • *
  • 3 posts
Re: Admin can't login in New Install
« Reply #2 on: June 27, 2022, 04:12:57 AM »
Several similar topics were discussed recently, where browser blocks login form submission because site does not use SSL.

Solution: Add SSL certificate and in config.php uodate web link to have https:// instead of http://

https is working all the time. (the lock icon is always on the address bar of the browser.) :'(

*

MB Themes

Re: Admin can't login in New Install
« Reply #3 on: June 27, 2022, 10:26:13 AM »
What you describe is browser action and block. Osclass woukd show foash message on incorrect login.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

oscInstaller

  • *
  • 3 posts
Re: Admin can't login in New Install
« Reply #4 on: June 28, 2022, 03:34:00 AM »
What you describe is browser action and block. Osclass woukd show foash message on incorrect login.

After I submit my admin password and click "Log in", the page refresh. and just reloads the same page.

*

MB Themes

Re: Admin can't login in New Install
« Reply #5 on: June 29, 2022, 04:34:22 PM »
@oscInstaller
I still believe it is browser related. Check console, different browsers etc. Osclass would return flash message.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

ionuts71

  • *
  • 3 posts
Re: Admin can't login in New Install
« Reply #6 on: October 22, 2023, 01:34:40 PM »
@oscInstaller
I still believe it is browser related. Check console, different browsers etc. Osclass would return flash message.

Same problem with a clean install of OsClass version 8.1.2, using Softaculous / Plesk, PHP 8.0.
Also from clean install from zip file.
I've tested using Chrome and Edge.
SSL certificate is OK.
« Last Edit: October 22, 2023, 03:42:13 PM by ionuts71 »

*

MB Themes

Re: Admin can't login in New Install
« Reply #7 on: October 22, 2023, 04:03:10 PM »
If you get no error at all, its blocked by browser
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

ionuts71

  • *
  • 3 posts
Re: Admin can't login in New Install
« Reply #8 on: October 22, 2023, 05:45:32 PM »
Also tested in Firefox. Same results.
I've set in security: Website protection to standard, Turned off protection to website (added the website exceptions) etc. No results.

Uncommented in config.php all Enable debugging and created debug.log, queries.log and explain_queries.log files. The debug.log file remain empty.
Also nothing in error.log

If I put a wrong password, there is no error message like "Sorry, incorrect password.

With the same browser settings I can login as admin on: osclasspoint demo website.

Anyone who had the same problem? How do you solve it?
« Last Edit: October 22, 2023, 06:01:25 PM by ionuts71 »

Re: Admin can't login in New Install
« Reply #9 on: October 23, 2023, 04:07:37 PM »
Just my two cents but had a similar behaviour, long time ago, so can't recall exactly what was the issue.
Try to check:
* https ssl certificate is presented and working properly
* check config url on osclass files - i suspect i have configured redirect to https on cpanel but had http:// on the config files
* in cpanel you have some security options - to test if they're impacting your website disble them for the domain you are having problems, and reenable them after testing.

If i find a mail or note about what was my issue i'll post here, however these are just my two cents.

*

MB Themes

Re: Admin can't login in New Install
« Reply #10 on: October 27, 2023, 07:22:48 AM »
Well if you do not see any flash message its site issue. Ie some browsers will not allow to submit form on side without ssl.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

MB Themes

Re: Admin can't login in New Install
« Reply #11 on: January 22, 2024, 10:23:40 PM »
Adding some news on this.
Did investigation for one of customers and there was problem with PHP sessions - sessions were always cleaned on each reload.
For some reason session was not persist over page reloads. This ideally required hosting to review server settings.

However, for client it worked to add:
Code: [Select]
session_start();
at very beginning of files:
/index.php
/oc-admin/index.php

Maybe it will work for others ;)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots