Upgraded to 2.0 -- Admin without CSS

Having trouble installing serendipity?
Post Reply
Karotte
Regular
Posts: 8
Joined: Tue Jun 14, 2005 11:48 pm

Upgraded to 2.0 -- Admin without CSS

Post 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?
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Upgraded to 2.0 -- Admin without CSS

Post 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
Karotte
Regular
Posts: 8
Joined: Tue Jun 14, 2005 11:48 pm

Re: Upgraded to 2.0 -- Admin without CSS

Post 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.
Karotte
Regular
Posts: 8
Joined: Tue Jun 14, 2005 11:48 pm

Re: Upgraded to 2.0 -- Admin without CSS

Post by Karotte »

Okay now my frontend theme is broken... perhaps my Theme is just too old :/
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Upgraded to 2.0 -- Admin without CSS

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Upgraded to 2.0 -- Admin without CSS

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Karotte
Regular
Posts: 8
Joined: Tue Jun 14, 2005 11:48 pm

Re: Upgraded to 2.0 -- Admin without CSS

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Upgraded to 2.0 -- Admin without CSS

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply