Doesn't support installations in sub-directories

SestuDeus - August 23, 2009 - 10:32
Project:Chords
Version:6.x-1.0-unstable1
Component:Code
Category:bug report
Priority:critical
Assigned:usonian
Status:closed
Description

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")

AttachmentSize
chords11 KB
phpinfo45.86 KB

#1

SestuDeus - August 23, 2009 - 10:43
Title:Chords module can't draw chord image» found chords images in sites/default/files
Priority:critical» normal
Assigned to:Anonymous» SestuDeus

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

#2

SestuDeus - October 13, 2009 - 21:43
Title:found chords images in sites/default/files» one step to solve the mystery
Component:Miscellaneous» Code
Priority:normal» critical
Assigned to:SestuDeus» Anonymous

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.

#3

usonian - November 5, 2009 - 17:36
Assigned to:Anonymous» usonian

#4

usonian - November 5, 2009 - 20:27
Title:one step to solve the mystery» Doesn't support installations in sub-directories

#5

usonian - November 5, 2009 - 20:34
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

#6

System Message - November 19, 2009 - 20:40
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.