*

Cephas

  • ***
  • 54 posts
My osclass website login is not workin
« on: February 07, 2024, 01:26:13 PM »
Hello,

I cannot login to my admin panel and user registration/login also not working. When I try to login: after entering the credentials and press login, the blank login page appears again with no error message. It just resets the login page. The same for user registration. Please help.


*

MB Themes

Re: My osclass website login is not workin
« Reply #1 on: February 07, 2024, 01:27:52 PM »
Yet U was able to see 2 reasons for this:
1) not using SSL/https
2) PHP sessions not enabled or sessions not working properly on server, that cause security token to be always refreshed, making login to fail.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Cephas

  • ***
  • 54 posts
Re: My osclass website login is not workin
« Reply #2 on: February 07, 2024, 01:34:33 PM »
My website is using SSL.
How do I address the second problem with the PhP session?

*

MB Themes

Re: My osclass website login is not workin
« Reply #3 on: February 07, 2024, 01:50:32 PM »
@Cephas
If you go to oc-admin login and look into source code, login form will have first input token. Looks like this:
Code: [Select]
<input type="hidden" name="octoken" value="8xudir6gn3cl">
If this value change on each reload, it means session does not persist and are created on each page load.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Cephas

  • ***
  • 54 posts
Re: My osclass website login is not workin
« Reply #4 on: February 07, 2024, 02:05:48 PM »
So I checked in my cpanel file manger. Went to oc-admin>login.php. But I did not see that code "<input type="hidden" name="octoken" value .... " at all. Am I looking at the wrong place or is there a problem with my script?

Also, quick question did you guys do an update? Because I have another osclass website that has the same problem too.
« Last Edit: February 07, 2024, 02:21:00 PM by Cephas »

*

MB Themes

Re: My osclass website login is not workin
« Reply #5 on: February 07, 2024, 03:13:58 PM »
Who mentioned to go to file manager?
Go to your login page and check source code.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Cephas

  • ***
  • 54 posts
Re: My osclass website login is not workin
« Reply #6 on: February 07, 2024, 03:24:23 PM »
ok, thank you. Will do. Sorry I didn't get it the first time.

*

Cephas

  • ***
  • 54 posts
Re: My osclass website login is not workin
« Reply #7 on: February 09, 2024, 12:22:46 AM »
I checked and the value changes on each reload. How can I solve that problem? Thanks in advance for your help.

*

MB Themes

Re: My osclass website login is not workin
« Reply #8 on: February 09, 2024, 03:24:43 PM »
@Cephas
Contact hosting.
If no  help, change hosting.


Once customer was lucky and adding session_start(); a start of /index.php and /oc-admin/index.php files helped
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Cephas

  • ***
  • 54 posts
Re: My osclass website login is not workin
« Reply #9 on: February 09, 2024, 06:47:19 PM »
I just contacted them. They want to know what php they need to update it to. Here is their response below. What should I tell them?

“When we checked with the error log it shows the php error so please contact the developer and get to know which php needs to be updated to that site so we can update the php.”

*

MB Themes

Re: My osclass website login is not workin
« Reply #10 on: February 09, 2024, 07:29:10 PM »
Its completely out of tooic.
Anyway you know now reason, solution is not Osclass related.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Cephas

  • ***
  • 54 posts
Re: My osclass website login is not workin
« Reply #11 on: February 09, 2024, 08:31:34 PM »
What php version does osclass use? I will ask them to update for me. May be that’s the problem.

*

MB Themes

Re: My osclass website login is not workin
« Reply #12 on: February 10, 2024, 12:21:06 PM »
Not related to php version.
Osclass works on 7.2 to  8.2
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Cephas

  • ***
  • 54 posts
Re: My osclass website login is not workin
« Reply #13 on: February 13, 2024, 02:52:56 AM »
ok thank you. The problem was the php version. It is working now after they changed the php version.

*

MB Themes

Re: My osclass website login is not workin
« Reply #14 on: February 13, 2024, 08:15:29 AM »
Very strange   ::)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots