Even though the underlining components seem to function, the bottom line is the code isn't highlighted and that qualify as critical. I'm confused about the Component. I'd be happy to provide more details but I really don't know what would be useful for troubleshooting at this point.
I've installed the code highlighter GeSHi but it doesn't seem to functioning properly even though the HTML have added tags for it that you can see at http://dynv.qc.to/content/useful-codes. The GeSHi Filter settings ( /admin/settings/geshifilter ) Styling, layout and CSS option CSS mode for syntax highlighting was set to Use CSS classes and an automatically managed external CSS style sheet.
This is most likely due to missing style but they're included in the header as this : <link type="text/css" rel="stylesheet" media="all" href="<a href="view-source:http://dynv.qc.to/sites/default/files/geshifilter/geshifilter-languages-714a9c1a.css?v">/sites/default/files/geshifilter/geshifilter-languages-714a9c1a.css?v</a>" /> <link type="text/css" rel="stylesheet" media="all" href="<a href="view-source:http://dynv.qc.to/sites/default/modules/geshifilter/geshifilter.css?v">/sites/default/modules/geshifilter/geshifilter.css?v</a>" />
What could cause this ?
Thanks
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | geshifilter-settings.png | 88.04 KB | dynv |
| dynv.qc_.to-useful codes-missing_GeSHi_highlight.png | 35.84 KB | dynv |
Comments
Comment #1
dynv commentedOops ! The site doesn't take well entities, here's what the header included :
<link type="text/css" rel="stylesheet" media="all" href="/sites/default/files/geshifilter/geshifilter-languages-714a9c1a.css?v" /> <link type="text/css" rel="stylesheet" media="all" href="/sites/default/modules/geshifilter/geshifilter.css?v" />Comment #2
soxofaan commentedI guess the version of the GeSHi library you are using is 1.0.8 or later. In 1.0.8, there was a change in the CSS selectors that broke the highlighting of inline code fragments.
This was fixed (in a backward compatible way) in http://drupal.org/cvs?commit=252012
if you upgrade to 6.x-2.x-dev, it should work. If you don't want to use a dev snapshot, you could also use version 1.0.7 of GeSHi library for example.
(note to self: I should release a 6.x-1.3 version of GeSHi filter)
Comment #3
dynv commentedWhere do I get version 6.x-2.x-dev ? Thanks
Instead of a note, you can set yourself a task. ;)
Comment #4
soxofaan commentedI mean 6.x-1.x-dev (which is at http://drupal.org/node/96348)
PS: #682234: Time for a 6.x-1.3 release ;)
Comment #5
dynv commentedIn 6.x-1.x-dev
geshifilter.install, everything belowgeshifilter_update_1()(geshifilter_update_6001(),geshifilter_update_6002()and their helper functions) is missing from 6.x-1.2, is that an upgrade from it (6.x-1.2) though ?Thanks
Hmm ! How come all the issue settings are as I've last used them instead of being as they are ATM ? Anyway the bug still render 6.x-1.2 useless so it's critical unless I'm mistaken.
Comment #6
soxofaan commentedThose update functions were indeed added after 6.x-1.2, they implement the upgrade path for features that were added after 6.x-1.2.
I don't consider this a serious critical bug, as it only affects inline code snippets and there is a simple workaround (use a GeSHi library before 1.0.8). So the module is not useless. But I understand others could consider it critical. But as it is fixed now, there is not much point anymore in discussing if it's critical or normal.
Also, the problem is already fixed in CVS (and the fix is available through the development snapshot), so this issue is flagged as such, which is normal practice in the drupal.org bug tracker.
I hope this clarifies things.
Comment #7
dynv commentedAh ! Thank you kindly for the explanation, I though you were mentioning this module version 1.0.8, as in 6.x-1.0.8, so I understand the simple workaround being it's the GeSHi library version 1.0.8.
So my site had GeSHi Filter 6.x-1.2 with the (suggested version 1.0.x) GeSHi library version 1.0.8.6 then, as you suggested in this issue, replaced geshifilter with 6.x-1.x-dev (keeping the same GeSHi library), the update affected no row, but there's still no highlighting as you may see in my page useful codes ; am I bound to replace the GeSHi library ?
Comment #8
soxofaan commentedit appears that the CSS file "geshifilter-languages.css" is not included in the markup, what CSS mode (on the GeSHi filter admin page) are you using?
The markup for highlighting itself looks ok now.
Comment #9
dynv commentedOriginal Post
I thought that was sufficient but I attached the full settings (as my laptop height is small, it was laborious ! I'd sure like to have a program that print to an image file ...) to this comment, I hope that will be sufficient.
Comment #10
soxofaan commentedThere should be a CSS file at http://dynv.qc.to/sites/default/files/geshifilter-languages.css, but I get page not found.
Try flushing the "GeSHi language definition cache", there is a button for that in the collapsed fieldset titled "GeSHi library version 1.8.0.6 detected". This should refresh the geshifilter-languages.css file.
Also: you didn't switch to the private download method on the file system settings (admin/settings/file-system), did you?
Note that the option "Use CSS classes and an automatically managed external CSS style sheet" can only work with the public download method.
Comment #11
dynv commentedYes ! It now function. Many thanks. :)
Indeed it was public. ;)
Comment #12
dynv commentedForgot to change the Status (actually didn't notice it was switched to active). I wish there was a code you could add at the beginning of edits to change the issue settings, perhaps like
!settings status fixed. :\