-
|
I installed the program using the online installer in a subdir https://mysite/htmly/, installer worked well. the instructions say to get to login use https://mysite/htmly/login no Apache errors are showing in logs. it seems the /login is not being post methot in htmly.php I really would like to get it working, so any ideas would help. BTW I was impressed that download worked so well and config got the correct timezone. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Fixed: What a ride, good old claude AI assisted.The problem occurs because of installing it in a subdirectory So after hours working with claude we worked out: The fix is in site_path() — stop using the static cache when site.url is configured: ----------------------- Fix 1 --------------------- ------------------------fix 2 ----------------------------- this change may not be needed Line 38 becomes header('location: ' . site_url() . 'admin'); -------------------------------minor change - Minor other change is in system\htmly.php |
Beta Was this translation helpful? Give feedback.
Fixed: What a ride, good old claude AI assisted.
The problem occurs because of installing it in a subdirectory
the problem all stemmed from the install and I should have realised that /u in https://mysite/u/htmly/ in config.php was more important than just a local problem.
So after hours working with claude we worked out:
site_path() is returning /u/htmly instead of /htmly. When it tries to strip /u/htmly from /htmly/login — no match — so the path stays as /htmly/login, final_uri becomes htmly/login, and no route matches it. That's why nothing happens.
And the home page "working" is a fluke — /htmly/ with /u/htmly not matching leaves $uri = htmly, which hits /:static with $static=htmly, t…