Medium Vote css not found, losing path

laura s - May 24, 2006 - 06:32
Project:mediumvote
Version:HEAD
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:reviewed & tested by the community
Description

I am having problems getting medium vote to work. Typical errors in the watchdog:

playlist/user/modules/mediumvote/theme/mediumvote.css not found.
modules/mediumvote/modules/mediumvote/theme/mediumvote.css not found.

Since it is more recently updated, I tried the CVS version, but still get these errors.

I'm not able to get the module working -- it just comes up "(0)" -- but this not found error is the only kind of error I'm finding in watchdog.

#1

tom611 - August 22, 2006 - 04:11
Version:HEAD» 4.7.x-1.x-dev
Priority:normal» critical

I am having the same issue. Mediumvote.css not found...although it seems to be there. I just see (0). Please advise. Thanks.

#2

chrissearle - August 27, 2006 - 10:30
Version:4.7.x-1.x-dev» HEAD

Looking at the header generated:

<style type="text/css" media="all">@import "/misc/drupal.css";</style><script type="text/javascript" src="/misc/drupal.js"></script>
<script type="text/javascript" src="/modules/mediumvote/theme/ajax_mediumvote.js"></script>
<style type="text/css" media="all">@import "modules/mediumvote/theme/mediumvote.css";</style>

My drupal install is on the root of the domain - so / is correct.

The import for the medumvote.css file will only work when not using e.g. path aliases where you can set up pseudo-directories (for example - a list of games are under /game/game_name using path and pathauto

Interestingly - the line modules/mediumvote/theme/mediumvote.css now shows up in my "Recent Searches" block (from the Zeitgeist module)

#3

mikew - October 28, 2006 - 10:08

The css was generated with a relative path. Corrected function in the patch attached.

AttachmentSize
mediumvote_css_patch_fix.patch 731 bytes

#4

jmiccolis - April 19, 2007 - 19:14
Status:active» reviewed & tested by the community

I ran into this problem as well and did the same fix as mikew. HIs patch looks good to me - setting to RTBC.

 
 

Drupal is a registered trademark of Dries Buytaert.