Strange effect with migrated gallery

Phoca Gallery - image gallery extension
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Strange effect with migrated gallery

Post by Jan »

Hi, hmm, really no idea what happened there, because Phoca Gallery does not have any feature to download the images from Picasa - the main task of this feature is to same server place and display the picasa images directly from picasa (no thumbnails are made on server, no images downloaded) ... so there must be some other feature which downloads them, Phoca Gallery does not have any feature to download images ( :idea: )

Maybe some question on server operators, if they can detect which part of the system downloads them and stores them to server :idea:

Jan
If you find Phoca extensions useful, please support the project
User avatar
Jheroen
Phoca Member
Phoca Member
Posts: 36
Joined: 23 May 2011, 13:36

Re: Strange effect with migrated gallery

Post by Jheroen »

Where should we look? I guess it's some script that does this but only you as maker of PG can see if something in the sql db creates those images..

I just looked into the root and there are many many pics now in the root :oops:

also what Christine said that hovering over the images creates some google link, in the old website this wasn't the fact...

Should it be worth to take a look at the config of this website Jan?
User avatar
Jheroen
Phoca Member
Phoca Member
Posts: 36
Joined: 23 May 2011, 13:36

Re: Strange effect with migrated gallery

Post by Jheroen »

Well....

This is what it is then?

After years of good usage of PG and correct upgrade routine now run into troubles and nothing?

:idea:

I have hundreds of MB's on photo's stored in the root and every day the amount grows from itself :x What is this?
User avatar
Jheroen
Phoca Member
Phoca Member
Posts: 36
Joined: 23 May 2011, 13:36

Re: Strange effect with migrated gallery

Post by Jheroen »

From the logs, is this correct?

Code: Select all

151.80.31.124 - - [22/Aug/2015:09:56:45 +0200] "GET /u-als-ouder/foto-s/21-carnaval-2013/detail/1219-img-0297-jpg?tmpl=component&phocadownload=2 HTTP/1.1" 200 1 "-" "Mozilla/5.0 (compatible; AhrefsBot/5.0; +http://ahrefs.com/robot/)"
I think this may be the problem because every time this IP adress accessed the Photo album i can find the pic it downloaded...

question now is what causes this? Is it some setting?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Strange effect with migrated gallery

Post by Jan »

Hi, now I understand, sorry for the confusing in previous posts.

Yes, there was a change between the Phoca Gallery versions regarding Picasa. The problem of previous versions was, that if you have displayed picasa images on the site, they could not be downloaded for the user (user got image with 0 bytes size which meant no image) So there was added new feature - first to download to server and then from server to users.

But I see, it can cause problems when different bots try to download them, so I will add this feature to the parameters, so then depends on users if they will enable it or disable.

You can revert the changes back as quick fix on your server:

go to: administrator\components\com_phocagallery\libraries\phocagallery\file\filedownload.php

and change
FROM:

Code: Select all

public static function download($item, $backLink, $extLink = 0) {
TO:

Code: Select all

public static function download($item, $backLink, $extLink = 0) {
$extLink = 0
This will cause, the images will be not stored on the server but users will be not able to use download icon for them :-(

So, I apologize again, after the log post with Picasa entry, I found what you exactly mean.


Jan
If you find Phoca extensions useful, please support the project
User avatar
Jheroen
Phoca Member
Phoca Member
Posts: 36
Joined: 23 May 2011, 13:36

Re: Strange effect with migrated gallery

Post by Jheroen »

Hi Jan,

Thanks, it's not always easy to understand what's going on :)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Strange effect with migrated gallery

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply