Community @ The Turning Gate

Support community for TTG plugins and products.

You are not logged in.

#1 2017-10-24 04:41:10

gaul09
Member
Registered: 2016-06-12
Posts: 5

Error downloading image

It is not possible to download a picture from an album by clicking on download image in the image menu. An empty page with the text "file not found" opens instead of the image.
The generated URL looks like that:
http://www.xxxxx.de/galleries/slackline … C06316.jpg

The directory /photos exists under /slackline and contains the image DSC06316.jpg.

There is no problem when the following command line is entered manually in the browser:
http://www.xxxxx.de/galleries/slackline … C06316.jpg

It seems to be a very basic problem. What can I do?

Offline

#2 2017-10-24 05:02:48

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 14,232
Website

Re: Error downloading image

first, can you provide a working url to an album?
Second, see if this helps any: http://community.theturninggate.net/vie … hp?id=6287


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Pangolin test site, Backlight 1.1.1 test site

Offline

#3 2017-10-24 07:43:26

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 849
Website

Re: Error downloading image

This image shows the download error: http://bocage.de/galleries/slackline/DS … single.php


Daniel Leu | Photography   
DanielLeu.com

Offline

#4 2017-10-24 15:02:58

gaul09
Member
Registered: 2016-06-12
Posts: 5

Re: Error downloading image

Commenting the RewriteBase / line in .htaccess file, as suggested did not solve the problem.

The following line at the origin of the error is generated by clicking on download image in the image menu.
http://www.bocage.de/galleries/slacklin … C06327.jpg


The image source is there because it can be accessed directly here:
http://www.bocage.de/galleries/slacklin … C06327.jpg

Last edited by gaul09 (2017-10-25 03:22:45)

Offline

#5 2017-10-24 18:56:33

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 3,476

Re: Error downloading image

This may be related to your Album's htaccess setting.  Can you try the following:

1. Log into Backlight
2. Visit Backlight >  Settings
3. Scroll down and click on "Show Advanced Settings"
4. Under the setting for "Album .htaccess", look to see whether there is an entry for download.php with two lines that look like this:

RewriteCond %{QUERY_STRING} !mod_rewrite=on
RewriteRule ^(.*)download.php %{ENV:BASE}download.php?%{ENV:QS} [QSA,L]

5. If they are there, then click on "Edit Settings"
6. Edit that field, adding '#' to the start of those two lines so that they look like this:

#RewriteCond %{QUERY_STRING} !mod_rewrite=on
#RewriteRule ^(.*)download.php %{ENV:BASE}download.php?%{ENV:QS} [QSA,L]

7. Click "Save Settings"
8. Click on the Backlight > Publisher menu item
9. Click on "Update Album Files" under Special Links
10. Click "Update"

Offline

#6 2017-10-25 03:34:01

gaul09
Member
Registered: 2016-06-12
Posts: 5

Re: Error downloading image

My problem is solved. Commenting these two lines in the .htaccess file did the job.
Thank you for the assistance  smile

Offline

#7 2017-10-25 06:22:47

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 3,476

Re: Error downloading image

I'm glad to hear that solved it.  That particular line doesn't seem to serve any purpose in Backlight, other than to cause problems on some environments. I'll make a note to disable them by default in future releases.  You won't need to make that change again, even if the old setting remains in our releases.

Offline

Board footer

Powered by FluxBB