Post by Joe1234 » Thu Sep 12, 2024 2:40 am

I was in the admin this morning. I made absolutely no edits to any files, no changes, no saves. Three hours later I come back and I am unable to login to my admin. The login goes through, but it's a blank page. Nothing on the source of the admin login. Same results on different browsers and phone. Any idea where to look to resolve this quickly?

v3.0.3.9 php 8.1
I'm here for a reason, if your response is contact a/the developer, just don't reply.


Active Member

Posts

Joined
Sat Jan 01, 2022 5:47 am

Post by scottyboyyy » Thu Sep 12, 2024 3:11 am

Joe1234 wrote:
Thu Sep 12, 2024 2:40 am
I was in the admin this morning. I made absolutely no edits to any files, no changes, no saves. Three hours later I come back and I am unable to login to my admin. The login goes through, but it's a blank page. Nothing on the source of the admin login. Same results on different browsers and phone. Any idea where to look to resolve this quickly?
Try and add this code to index.php in admin folder:

Code: Select all

ini_set('display_errors', 1);
error_reporting(E_ALL);
Then try logging in again and see if any error messages are displayed. This might help find the issue / error, and then can be removed.

If there are error logs paste them here and I can try and help you.

If it's to do with config.php, it could be the database credentials - although I doubt this as you had it working before and not made any changes. But just be careful ever pasting those errors as config.php errors can sometimes display the database password, etc.

Active Member

Posts

Joined
Fri Apr 07, 2017 2:36 am

Post by Joe1234 » Thu Sep 12, 2024 5:38 am

Found the issue. I coded something last night that I didn't realize I coded it on the admin login, I thought I only did it on the front end login. Either way, it was working, I guess the cache didn't reset when I was testing it out so it worked fine up until now. I also forgot I could just go looking for the raw log file instead of looking for the log in the admin. It's a good thing I wrote logging into the code or I wouldn't have found it so easily. Thanks.

v3.0.3.9 php 8.1
I'm here for a reason, if your response is contact a/the developer, just don't reply.


Active Member

Posts

Joined
Sat Jan 01, 2022 5:47 am

Post by paulfeakins » Thu Sep 12, 2024 9:31 pm

Joe1234 wrote:
Thu Sep 12, 2024 5:38 am
Found the issue. I coded something last night that I didn't realize I coded
Ah yes, sleep coding is a real problem. Anyway please add [SOLVED] to the start of this topic title.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: Gpli, Majestic-12 [Bot] and 15 guests