Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Grav Admin Log In CSS not Loading using localhost

admin

Started by * 6 years ago · 4 replies · 855 views
6 years ago

Hey @all,

(this is my first post here, so pls be kind if i missed something or if my english isnt perfect since i'm not a native speaker/writer ;)

I'm now using grav for some weeks, since I reworked a website using grav and stuck to it.

For development I'm running the website in a local environment using xampp.
For small changes on the live website I use atom with an ftp plugin.

To get to my Problem:
two days ago I took a complete-backup from the live website to continue working/testing on it in the local environment. I changed some htacess entries (rewrite) as usual.

Since then the Admin-LogIn Page and Admin-Page(after LogIn) are apparently loaded without css (see attached Screenshot)

image|690x316

The Live Website Admin Page is still fine. So is the localhost Admin Page of an old Verson of that Website.

I checked:

  • admin plugin css files --> still there
  • sourcecode of the admin page --> everything normal/fine
  • overwrote the admin plugin with an old plugin version --> still not loaded
  • an old backup version of that website at localhost with old grav an admin plugin version --> working fine

I dont get it why this is happening. Did the new Grav Version change something that effects the localhost copy?

Looking forward to your answers!

David

6 years ago

have you already tried to find out what is going on behind the scene by looking into your browsers dev tools ?
usually, invoked by hitting F12, then look for error messages in console for something like css not found...
this should give you a clue what is going wrong.
and, btw., you could also try docker as a local development environment, much faster and reliable than xampp 😃

6 years ago

thank your for answer, there is actually an error while loading the css:

ERR_SSL_SERVER_CERT_BAD_FORMAT

Seems like the page tries to load the css through ssl/https and obviously its failing course its not enabled on localhost. That's apparently also the reason why its working on the live website.

I checked the system.yaml and htacess but found no forced ssl. Do you have any idea?

setting the custom_base_url manualy didnt work.

6 years ago

no, sorry, I have no idea, never came across such a behaviour :frowning_face:

6 years ago

@Ph1l3mon Never seen something like this before.

You said:

I took a complete-backup from the live website

Did you try emptying the cache folder.

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 64 17 hours ago
Support · by Anna, 3 days ago
2 68 20 hours ago
Support · by Justin Young, 21 hours ago
1 35 21 hours ago
Support · by Duc , 1 week ago
2 71 6 days ago
Support · by Colin Hume, 1 week ago
2 63 6 days ago