Hi

i've some issue with webfm who add // (double slash) in image path like : http://www.provence-formation.fr/site/sites/all/media//webfm/fiches/pas-...
i ve think that transliteration module fix it but not...mu system files is defined on sites/all/media...

whats wrong ? if i change the base_url, issue still there...

thanks for helping

Comments

nhck’s picture

Title: Add double slash in path » Double slashes appear in my path
Category: bug » support

Thank you for reporting this :-)

From the path I take it that you are using pathauto? If so, please check and post the scheme you provided there, also check if you can fix this problem by removing a starting slash to your webfm path in admin/settings/webfm or removing a tailing slash in admin/settings/file-system

Until you report back I am going to set this as a support request, if thats okay with you?

Thanks again.

aiphes’s picture

i'm using pathauto...
i've no slash in system files and webfm directory path :
Chemin du dossier de stockage : sites/all/media (drupal disallow addition of trailing slash) + public download
for webfm my folder is webfm

ok for support request

nhck’s picture

How did you configure pathauto? You can see this at admin/build/path/pathauto in the "Web File Manager path settings" section. I'd imagine that a starting slash in that field might cause the problem?

aiphes’s picture

i've this in my setting of pathauto for webfm :

Pattern for webfm files paths : webfm_send/[webfmid]

nhck’s picture

Thats indeed strange, because then you should get a path like http://www.provence-formation.fr/webfm_send/42 for your image. Where do you get this path from? http://www.provence-formation.fr/site/sites/all/media//webfm/fiches/pas-...

aiphes’s picture

http://www.provence-formation.fr/webfm_send/42 ==> error 404
http://www.provence-formation.fr/site/sites/all/media//webfm/fiches/pas-... ==> work instead of the double slash, double slash is an issue in fckeditor pre-visualisation after select image with webFM

all settings are by defaults...on my dev wwebsite issue disappear after installing transliteration, this issue cause trouble with image cache too.i think its a general wrong setting or a parasiting module setting...hard to know which one...

nhck’s picture

I am sorry for the misunderstanding, 42 was just an example. If there are no webfm_send paths created for your images then there there something has gone wrong completely. Paths like the one you provided shouldn't be available to the end user. You can check if your aliases were created via visiting admin/build/path/list/webfm_send .

aiphes’s picture

all is by default in the path you tell...admin/build/path/list/webfm_send

aiphes’s picture

i just localize the error : its in the variable table, i must find it now to solve this...
it appear only on one line :
('xmlsitemap_cache_directory', 's:27:"sites/all/media//xmlsitemap";'),

is this module the origin of the issue ?

EDIT: issue FIXED by changing file_directory_path in variable table, because Drupal has added a / in sites/all/media/ , slash who desappearred when i typed it , so i believed Drupal delete it automatically, but not, in the db the / was right here !! i've just an issue with image cache which doesnt want to create folder but it a usual issue..

aiphes’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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