xenocrat / chyrp-lite

An ultra-lightweight blogging engine, written in PHP.
https://chyrplite.net/
BSD 3-Clause "New" or "Revised" License
417 stars 44 forks source link

Unable to log in on homepage #180

Closed bart7782 closed 1 year ago

bart7782 commented 1 year ago

Hi again,

Since i setup url rewrite i am unable to login while on the homepage. The credentials match and it tries to log me in but it just redirects me to the homepage without being logged in. When i manually go to mywebsite/admin. It asks me to login, after which it correctly logs me in and sends me to the admin panel. When i then click on the homepage, i am logged out again.

I have tried disabling url rewrite and clearing the cache. But it's the same result.

xenocrat commented 1 year ago

That’s a weird one. The login code is the same for both admin and main site. It just redirects you to a different place after login. Have you entered a ”canonical” URL in Chyrp’s settings? What happens if you comment out or remove all the NGINX rewrite rules entirely from your config as well as disabling clean URLs?

Always worth enabling DEBUG mode if not done already - this logs more actions and also reports many more errors that might help pinpoint the cause.

bart7782 commented 1 year ago

I'll try this tomorrow and will share the log files. I didn't see anything in logs but forgot that i could just enable debug mode

inasis commented 1 year ago

not received detailed information but seems to be .htaccess problem on server, not code

bart7782 commented 1 year ago

Sorry that i never provided additional info. I was busy with some things and have not looked at my site since then.

A few days ago i actually bricked my website so i won't be able to provide the additional info anymore. I just started anew with a new container.

xenocrat commented 1 year ago

Thanks for the update. I'll close this issue for now, but we can reopen it if the problem occurs again.