Page 1 of 1

Upgraded to 2.0 -- Admin without CSS

Posted: Fri May 09, 2014 9:02 pm
by Karotte
I just upgraded to 2.0-beta2 directly from the git repository.

Now my admin page has no css and looks awful. Looking in the source I see:

Code: Select all

<!-- ADMIN-ENTRY TEMPLATE: index.tpl START -->
        <title>Plugins verwalten - Serendipity Verwaltungsoberfläche</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link rel="stylesheet" type="text/css" href="" />
        <link rel="stylesheet" type="text/css" href="" />
        <script src="/templates/default/admin/header_spawn.js"></script>
                <script src="/templates/jquery.js"></script>
So the css links are empty. Looking in the source I see that these CSS should be filled with admin_vars variables:

Code: Select all

        <link rel="stylesheet" type="text/css" href="{$admin_vars.css_file}" />
        <link rel="stylesheet" type="text/css" href="{$admin_vars.admin_css_file}" />

But I can't find any reference to css_file or admin_css_file anywhere else in the code. Where should these come from?

Re: Upgraded to 2.0 -- Admin without CSS

Posted: Sat May 10, 2014 1:25 pm
by yellowled
Karotte wrote:Now my admin page has no css and looks awful.
Which (frontend) theme are you using? Does it change to the 2.0 backend if you switch to 2k11 as the (frontend) theme?

Do you know the date/time or even sha5 hash of the github checkout you used?

YL

Re: Upgraded to 2.0 -- Admin without CSS

Posted: Sun May 11, 2014 9:54 pm
by Karotte
I use my own frontend, since... well. 6+ years. ;) I switched to 2k11 and the backend worked as it should. I then switched back to my theme and it is still working.. so this fixed my problem. Still not sure why, what happened?

My previous version was: commit 5fbe6850f4fae059f1df95838e7aaabe0481b18f
and my 2.0 version is now: commit 08f9580b54e9a2657c849c5b8b9dd1184246052e

Quite a big jump.

Re: Upgraded to 2.0 -- Admin without CSS

Posted: Sun May 11, 2014 9:57 pm
by Karotte
Okay now my frontend theme is broken... perhaps my Theme is just too old :/

Re: Upgraded to 2.0 -- Admin without CSS

Posted: Sun May 11, 2014 10:02 pm
by yellowled
Karotte wrote:I switched to 2k11 and the backend worked as it should. I then switched back to my theme and it is still working.. so this fixed my problem. Still not sure why, what happened?
Well, the backend in the 2.0 beta currently does not fall back gracefully. It's not easy to explain (for me), but it's on our list of issues and I think we found a good solution this afternoon. Will need some changes, though. Garvin's gonna announce those later.

Let's just say, if the 2.0 beta backend doesn't work well, it's pretty likely you were using a frontend theme which has its own admin theme, and that doesn't work well yet. It's most likely not an issue with your theme, though, just with the core's fallback mechanism.

YL

Re: Upgraded to 2.0 -- Admin without CSS

Posted: Mon May 12, 2014 5:07 pm
by garvinhicking
Hi!

Basically, frontend themes should still work, but like yellowled noted, the backend part of things could be the issue here. Does your theme come with a "admin" subdirectory? you could try, if that's the case, to simply rename that file to "_admin" and see if then the backend works properly?

If not, we'd be happy to investigate if you could maybe share your custom theme? Then we could try to reproduce it on our installations.

Regards,
Garvin

Re: Upgraded to 2.0 -- Admin without CSS

Posted: Wed Jun 18, 2014 4:44 pm
by Karotte
Sorry for my late reply. No I have no "admin" subdir in my template. I'll have a look at the template myself and when I can't find the issue I can put it up somewhere for you to have a look at.

Re: Upgraded to 2.0 -- Admin without CSS

Posted: Wed Jun 18, 2014 4:55 pm
by garvinhicking
Karotte wrote:Sorry for my late reply. No I have no "admin" subdir in my template. I'll have a look at the template myself and when I can't find the issue I can put it up somewhere for you to have a look at.
Also maybe upgrade to a recent github snapshot, we have improved those parts in the past few weeks.

Regards,
Garvin