Page 1 of 1

Cannot select category icon

Posted: Fri Feb 16, 2007 8:47 pm
by Don Chambers
s9y 1.1. Placed 2 images in the media library. Created 2 categories. Try to assign either image to either category and nothing happens when selecting the "done" button. Firebug reports 27 errors on the page "Select file to insert".

Re: Cannot select category icon

Posted: Tue Feb 20, 2007 11:58 am
by garvinhicking
Hi!

Maybe it would help if you tell us those 27 errors? *g*

Best regards,
Garvin

Posted: Tue Feb 20, 2007 4:57 pm
by Don Chambers
The stylesheet http://localhost/serendipity/serendipit ... only]=true was loaded as CSS even though its MIME type, "text/html", is not "text/css".
Selector expected. Ruleset ignored due to bad selector.
serendipity_admin... (line 1)
Expected ',' or '{' but found 'SetCookie'. Ruleset ignored due to bad selector.
serendipity_admin... (line 27)
Expected ',' or '{' but found 'rememberOptions'. Ruleset ignored due to bad selector.
serendipity_admin... (line 34)
Selector expected. Ruleset ignored due to bad selector.
serendipity_admin... (line 53)
Unexpected end of file while searching for closing } of invalid rule set.
serendipity_admin... (line 60)
The stylesheet http://localhost/serendipity/serendipit ... only]=true was loaded as CSS even though its MIME type, "text/html", is not "text/css".
Selector expected. Ruleset ignored due to bad selector.
serendipity_admin... (line 1)
Expected ',' or '{' but found 'SetCookie'. Ruleset ignored due to bad selector.
serendipity_admin... (line 27)
Expected ',' or '{' but found 'rememberOptions'. Ruleset ignored due to bad selector.
serendipity_admin... (line 34)
Selector expected. Ruleset ignored due to bad selector.
serendipity_admin... (line 53)
Unexpected end of file while searching for closing } of invalid rule set.
serendipity_admin... (line 60)
Unknown property 'behavior'. Declaration dropped.
serendipity_admin... (line 2)
Unknown property 'behavior'. Declaration dropped.
serendipity_admin... (line 2)
The stylesheet http://localhost/serendipity/serendipit ... step]=tree was loaded as CSS even though its MIME type, "text/html", is not "text/css".
Selector expected. Ruleset ignored due to bad selector.
serendipity_admin... (line 1)
Expected ',' or '{' but found 'SetCookie'. Ruleset ignored due to bad selector.
serendipity_admin... (line 27)
Expected ',' or '{' but found 'rememberOptions'. Ruleset ignored due to bad selector.
serendipity_admin... (line 34)
Expected ',' or '{' but found '='. Ruleset ignored due to bad selector.
serendipity_admin... (line 53)
Selector expected. Ruleset ignored due to bad selector.
serendipity_admin... (line 64)
Selector expected. Ruleset ignored due to bad selector.
serendipity_admin... (line 110)
Unexpected end of file while searching for closing } of invalid rule set.
serendipity_admin... (line 115)
The stylesheet http://localhost/serendipity/serendipit ... p]=default was loaded as CSS even though its MIME type, "text/html", is not "text/css".
Selector expected. Ruleset ignored due to bad selector.
serendipity_admin... (line 1)
Expected ',' or '{' but found 'SetCookie'. Ruleset ignored due to bad selector.
serendipity_admin... (line 27)
Expected ',' or '{' but found 'rememberOptions'. Ruleset ignored due to bad selector.
serendipity_admin... (line 34)
Expected ',' or '{' but found 'rename'. Ruleset ignored due to bad selector.
serendipity_admin... (line 52)
Selector expected. Ruleset ignored due to bad selector.
serendipity_admin... (line 59)
Expected ',' or '{' but found 'AddKeyword'. Ruleset ignored due to bad selector.
serendipity_admin... (line 85)
Selector expected. Ruleset ignored due to bad selector.
serendipity_admin... (line 89)
Unexpected end of file while searching for closing } of invalid rule set.

Posted: Tue Feb 20, 2007 8:40 pm
by Don Chambers
I just logged into YL's sandbox and it is producing the same errors, with the exception of the two "Unknown property 'behavior'. Declaration dropped.
serendipity_admin... (line 2)" - which I believe comes from the browser compatability plugin.

Posted: Wed Feb 21, 2007 11:55 am
by garvinhicking
Hi!

That's strange, why is that URL even loadde as a stylesheet? Can you look at the HTML source of the error producing page and look how the HEAD refers to stylesheets?

The file should not be interpreted as CSS...

Best regards,
Garvin

Posted: Wed Feb 21, 2007 3:41 pm
by Don Chambers
It is clear that the problem exists in the current downloadable release of 1.1... both YL and I are using it. WHen I select "view page source, I see the code below. When I view the frame source, the 3 blank style sheet links are replaced by these:

<link href="http://localhost/serendipity/index.php? ... _admin.css" type="text/css" rel="stylesheet">
<link href="/serendipity/templates/default/treeview/tree.css" type="text/css" rel="stylesheet">
<link href="" type="text/css" rel="stylesheet">

<html>
<head>
<title>Serendipity Administration Suite: Select file to insert</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="" />
<link rel="stylesheet" type="text/css" href="" />


<script type="text/javascript" src="bundled-libs/YahooUI/treeview/YAHOO.js"></script>

<script type="text/javascript" src="bundled-libs/YahooUI/treeview/treeview.js" ></script>
</head>

<script type="text/javascript">
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
oldonload();
func();
}
}
}

function SetCookie(name, value) {
var today = new Date();
var expire = new Date();
expire.setTime(today.getTime() + (60*60*24*30));
document.cookie = 'serendipity[' + name + ']='+escape(value) + ';expires=' + expire.toGMTString();
}

function rememberOptions() {
el = document.getElementById('imageForm');
for (i = 0; i < el.elements.length; i++) {
elname = new String(el.elements.name);
elname = elname.replace(/\[/g, '_');
elname = elname.replace(/\]/g, '');

if (el.elements.type == 'radio') {
if (el.elements.checked) {
SetCookie(elname, el.elements.value);
}
} else if (typeof(el.elements.options) == 'object') {
SetCookie(elname, el.elements.options[el.elements.selectedIndex].value);
}
}
}



</script>

<frameset id="media_frame" cols="20%,*">
<frame id="media_frame_tree" frameborder="0" name="tree" scrolling="auto" src="/serendipity/serendipity_admin_image_selector.php?serendipity[htmltarget]=img_icon&serendipity[filename_only]=true&serendipity[action]=&serendipity[adminAction]=&serendipity[adminModule]=&serendipity[step]=&serendipity[step]=tree" />
<frame id="media_frame_main" frameborder="0" name="media" src="/serendipity/serendipity_admin_image_selector.php?serendipity[htmltarget]=img_icon&serendipity[filename_only]=true&serendipity[action]=&serendipity[adminAction]=&serendipity[adminModule]=&serendipity[step]=&serendipity[step]=default" />
</frameset>

</html>

Posted: Wed Feb 21, 2007 4:34 pm
by garvinhicking
Hi!

Where do you get the 3 style sheet URLs, and where do you get the 3 empty URLs exactly?

If you call the 3 style sheets manually in your browser, do you get a style sheet or do you get a HTML page?

Regards,
Garvin

Posted: Wed Feb 21, 2007 5:20 pm
by Don Chambers
garvinhicking wrote:Hi!

Where do you get the 3 style sheet URLs, and where do you get the 3 empty URLs exactly?
If I use FF's "view page source", I see the emptys. If I use "view frame source", I see the style sheets. NOTE: The 3rd is empty for both.

If you call the 3 style sheets manually in your browser, do you get a style sheet or do you get a HTML page?

Regards,
Garvin
Style sheet.

Surely you have access to a 1.1 install?? You should be able to verify. The theme site? YL's sandbox?

Posted: Thu Feb 22, 2007 10:15 am
by garvinhicking
Hi!
Surely you have access to a 1.1 install?? You should be able to verify. The
theme site? YL's sandbox?
Yes, I have a 1.0, a 1.1 and a 1.2 install here. Neither of them shows your problems!

Can I have access to your install to try and see to check it? It should not be that FF shows no stylesheet in the one and 3 stylesheets in the other view method. Did you try to use a different browser? Maybe your firefox is broken due to some extensions?

Best regards,
Garvin

Posted: Thu Feb 22, 2007 6:17 pm
by Don Chambers
I just upgraded the firebug and web developer extensions, and that removed 5 of the errors.

I'll uninstall & reinstall FF and see if that makes a difference. I'm still using FF 1.5. Is v2 worth the upgrade? Last I heard, many extensions were not compatible. Only other extensions I have are "view formatted source" and EditCSS (now part of web developer, so not sure why I never removed it).

Posted: Fri Feb 23, 2007 9:38 am
by garvinhicking
Hi!

I'm also only using FF1.5 right now, because of extension compatibility. Some have not yet upgraded to be compatible with FF2, and until then I see no advantage in using FF2.

Best regards,
Garvin