danpros / htmly

Simple and fast databaseless PHP blogging platform, and Flat-File CMS
https://www.htmly.com
GNU General Public License v2.0
1.1k stars 266 forks source link

[BUG REPORT]Admin Panel (maybe not a bug) #835

Closed Coeur2louve closed 1 week ago

Coeur2louve commented 1 week ago

Admin panel like a list

I am not a coder or informatician, so maybe it is not a bug. I upload le latest Htmly on my host with online-installer.php, it's ok. BUT The admin panel has no css form and I don't know how to fix it, maybe there is something not installed or I made wrong.

Screenshots/Errors

Capture d’écran 2024-11-09 à 11 28 02

HTMLy Version 3.0.1

Server Info (please complete the following information):

This panel is functional but not friendly to use. I hope you can help me. Thank you so much for this free blog engine

Regards

danpros commented 1 week ago

Hello,

If you visit the blog with an https address, make sure the blog address in the config uses the https format.

Try clicking view page source in your browser when on the admin page. You will find the following:

https://www.example.com/system/resources/css/adminlte.min.css

Try visiting the URL to see if the file exists or not. You can also view the error log to find out what the problem is.

Coeur2louve commented 1 week ago

Hello Dear, Thank you for help. The adress site was set to http, so I forced the https in cpanel, but still issue in source code because css file was http, so conflict with mixed content. I found the solution in some forum by adding in .httaccess file Header always set Content-Security-Policy: upgrade-insecure-requests That's it, it works. So glad if it can help some other noob like me Regards

danpros commented 1 week ago

Hello,

Glad you could find the solution. You can also to go to the admin/config page and update the blog address to use the https URL instead of http.

Regards,

Coeur2louve commented 1 week ago

Hi, Oh, your way is much more easy ! I didn't understood you mean to go in htmly admin panel in your first answer. Thank you again.