Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2017-01-28 10:02:41

Mediahype
Member
Registered: 2017-01-18
Posts: 42

Unable to download images

Issue - Unable to download image from a customer gallery with a "file not found" error.   (Site not yet hosted)

When selecting the download, backlights opens the following url and says the file cannot be found
http://**********/Backlight/Customer/cust1/assignment2/download.php?file=photos/DSC_4856.jpg

I have verified that the jpg is in the photos folder under the customer folder so at first I thought it was the htaccess file.  The urls are set to about/                  (As per http://backlight.theturninggate.net/doc … ess_files)

I tried changing the customer response template from "Use photos rendition" to "Create custom download rendition via Publisher" but this has now made things worse as Lightroom now will not publish any album.  (I have checked the Lightroom and it is not set to Push metadata without updating existing photos)

If I try download the image from the gallery with the response template set to "Create custom download rendition via Publisher" the url has changed (this I expect but it still doesn't download):
http://**********/Backlight/Customer/cust1/assignment2//download.php?file=photos-for-download/DSC_4856.jpg 

I tried changing the customer response template back to "Use photos rendition" but Lightroom still refuses to republish the gallery with a "Can't update this collection.  The rendition could not be created.  Please ensure that the original file name is accessible, especially when stored on external or network storage"

I have also run the "Update Album Files" from within publisher but that isn't working.

I also manually created a folder photos-for-download and and copied the files there but it still says file not found.

So I have 2 issues:
file not found so cannot download and now trying to fix that Lightroom is now not publishing.

Can you please help as I'm running out of hair to pull out.

Regards

Offline

#2 2017-01-28 10:21:18

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Unable to download images

Is this not on the web?  It's hard to advise without being able to see the site.

What is the URL of your site?  Does it reside at http://***********/Backlight/, meaning that you would have a directory also at /Backlight/backlight/?
What operating system are you running?  Is your web server configured to support .htaccess files?

If your PHP is running via FastCGI, then applying the fix under "You see a message 'No input file specified'" here may help: 
http://backlight.theturninggate.net/doc … cess_files

Offline

#3 2017-01-28 11:21:55

Mediahype
Member
Registered: 2017-01-18
Posts: 42

Re: Unable to download images

Thanks Ben.

My site isn't up on the web yet as I'm still developing it.  It is running on a QNAP fileserver with my desktop being a Win10.  The error is "File not found" not "No input file specified".  (Lightroom has sorted itself out.  Must take some time to sort itself out after making changes lin Backlight for them to propergate through to Lightroom.)

The files are there so yes I am suspecting the issue is in the way it sees the link -  download.php?file=photos-for-download/

I have no idea how to check if the QNAP is running Fastcgi however if I make the mod to htaccess as explained in the file ther is no difference in what happens:

I have changed the 3 lines as explained in the file.  Neither the original or when I change it has made any difference, both give me File not found.

.htaccess file
<IfModule mod_rewrite.c>
    RewriteEngine On

    ############################################################################
    # Edit this section for servers using FastCGI

    # For FastCGI (or seeing the error message 'No input file specified.':
    # add # to the start of the next line
  Red text   #RewriteBase /

    RewriteCond $0#%{REQUEST_URI} ([^#]*)#(.*)\1$

    # For FastCGI (or seeing the error message 'No input file specified.':
    # add # to the start of the next line and remove # from the line after)
Red text     #RewriteRule ^.*$ - [E=BASE:%2]
  Red text    RewriteRule ^(.*)$ - [E=BASE:]

    ############################################################################

Offline

#4 2017-01-28 12:30:29

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Unable to download images

I realise that the error message is different. 

You can check for the PHP handler by logging into Backlight and clicking on View PHP Info on the Backlight landing page.  What is the value for the entry titled 'Server API'?

Does your site reside at http://***********/Backlight/, meaning that you would have a directory also at /Backlight/backlight/?

It's not easy to advise while you are running this on a QNAP server that is not on the Internet.  Let us know if this also doesn't work once you have moved to your live site.

Offline

#5 2017-01-28 13:56:44

Mediahype
Member
Registered: 2017-01-18
Posts: 42

Re: Unable to download images

The Server API shows     FPM/FastCGI

I assume then that it is running FastCGI? 
http://192.168.178.32/OvertheTop_Backli … ?a=phpinfo

When I try download from a gallery this is the link it uses when I get the error:
http://192.168.178.32/OvertheTop_Backli … C_2960.jpg

If I cut  'download.php?file=' out of the url and use

http://192.168.178.32/OvertheTop_Backli … C_2960.jpg

then the file opens ok in the browser.

My site is still very much in development and not ready for hosting yet.

Cheers

Offline

#6 2017-01-29 02:28:28

Mediahype
Member
Registered: 2017-01-18
Posts: 42

Re: Unable to download images

Hi Ben,

Problem resolved.  I reinstalled my webserver and Backlight and it's all working fine now.  Thanks for your help!

Cheers!

Offline

#7 2017-01-29 07:10:08

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Unable to download images

I'm glad that's solved.  Any idea what is different with your new install?  Has the Server API value changed?

Offline

#8 2017-01-29 09:56:53

Mediahype
Member
Registered: 2017-01-18
Posts: 42

Re: Unable to download images

Hi,

Not sure exactly,  In designing my website I had tried lots of different website creation platforms before I came across Backlight.  Maybe something left over from them had impacted it.  I uninstalled Wordpress, phpAdmin and the SQL Server from the QNAP and then reinstalled from scratch.  Now when I change .htaccess as per the clean url doco, it has the desired affect and with the change photo's now download perfectly.  Server API still says FPM/FastCGI in the new install.

I still have to work out how to download all photos at once and saw some doco in the forum on using select all and a zip file.  I'll try that and if I have issues I'll post a new support query.

Thanks again for your help, really appreciated!  A bit of water and fertiliser, hopefully my hair will grow back. wink

Regards

Offline

Board footer

Powered by FluxBB