Trying the module, I was able to select all options in the page /chords but, as I click "GO", the image of the chord is substituted by a graphical "?" (look at the attachment "chords".

I checked my GD Library and it's ok (phpinfo tells me I have the "bundled (2.0.34 compatible)" version, with everything enabled etc. - attachment "phpinfo")

CommentFileSizeAuthor
phpinfo45.86 KBSestuDeus
chords11 KBSestuDeus

Comments

SestuDeus’s picture

Title: Chords module can't draw chord image » found chords images in sites/default/files
Assigned: Unassigned » SestuDeus
Priority: Critical » Normal

Hi,
I've noticed just now that there are plenty of little nice png chords files in /sites/default/files evidently generated by the chords module.
The problem is the module don't put theese png in the result page.

How is that?

please help

SestuDeus’s picture

Title: found chords images in sites/default/files » one step to solve the mystery
Component: Miscellaneous » Code
Assigned: SestuDeus » Unassigned
Priority: Normal » Critical

Hello everybody (me),

the problem here is the chords module doesn't recognize subpaths installation, eg.: www.mysite.com/subpath as root drupal path site.

I found this by checking the address of the "?" linked to the chord finder page after the rendering.

Let me describe my specific case:

my root drupal site is: www.example.com/web/

then my "files" path is: www.example.com/web/sites/default/files/

the link provided by chords module is: www.example.com/sites/default/files/

and this is wrong.

I've noticed this discrepancy, but I cannot go far away cause I'm not a programmer, so please somebody helps me.

usonian’s picture

Assigned: Unassigned » usonian
usonian’s picture

Title: one step to solve the mystery » Doesn't support installations in sub-directories
usonian’s picture

Status: Active » Fixed

Good catch - the img tag path had been hard-coded assuming a root-relative directory. If you download the latest code from the DRUPAL-6--1 branch it will include the fix. (I'm looking into a couple of other improvements before doing another official release.)

Thanks!

-Andy

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.