Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
pierangelobettoni
Topic Author
Posts: 7
Joined: 26 Oct 2016, 14:59

Thumbnail problems

13 Nov 2016, 03:17

Hi everyone, all the thumbnails in the control panel do not match the actual pictures and also in the public gallery when the website pictures do not correspond to the real one, the same thing happens to someone?
I tried to upload from the panel and via ftp
see below some screenshot
t.jpg
t.jpg (165.8 KiB) Viewed 13741 times
t.jpg
t.jpg (165.8 KiB) Viewed 13741 times
t.jpg
t.jpg (165.8 KiB) Viewed 13741 times
Attachments
Schermata-11-2457706-alle-09.08.48.jpg
Schermata-11-2457706-alle-09.08.48.jpg (154.3 KiB) Viewed 13745 times
Schermata 11-2457706 alle 09.13.53.png
Schermata 11-2457706 alle 09.13.53.png (110.67 KiB) Viewed 13745 times
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Thumbnail problems

13 Nov 2016, 05:54

Hosting is Aruba? This is a strange bug that ONLY occurs on Aruba hosting.

It's related to storing and output (headers) of resized images. You can find details about the issue here:
https://github.com/lencioni/SLIR/issues ... -198248979

Would be interesting to know what they say, but unlikely they will admit anything is wrong on their side.
 
User avatar
pierangelobettoni
Topic Author
Posts: 7
Joined: 26 Oct 2016, 14:59

Re: Thumbnail problems

13 Nov 2016, 10:37

ok, I'm on Aruba, I'll keep still imagrvuex 2.0, patience
thank you.

Pierangelo
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Thumbnail problems

13 Nov 2016, 13:04

Do you have FTP for me for your server? I would like to do some diagnostics if possible.
 
User avatar
pierangelobettoni
Topic Author
Posts: 7
Joined: 26 Oct 2016, 14:59

Re: Thumbnail problems

14 Nov 2016, 15:53

hello kark I sent ftp access email.
thank you

Pierangelo
 
failax
Experienced
Posts: 84
Joined: 24 Apr 2012, 03:38

Re: Thumbnail problems

18 Nov 2016, 06:57

I'm on Aruba too, and refreshing control panel page doesn't resolve this issue, that in my case occur only if I upload pictures with same name already present.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Thumbnail problems

18 Nov 2016, 09:08

Its not about "refreshing panel" ... It's about Aruba sending wrong images, until the IMAGE-request is FORCE-refreshed, for example by appending an ?flush mechanism to the URL, or using a PRIVATE browser (which forces new requests). This issue ONLY happens on ARUBA, and I have explained what happens in detail here: https://github.com/lencioni/SLIR/issues ... -198248979

As you can see in my explanation, Aruba is outputting random images on requests ... UNTIL the request is FORCE-refreshed, and the image loads correctly.

As noted previously, I will be looking into this, but I am not sure I will be able to solve it. I will post here soon ...
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Thumbnail problems

22 Nov 2016, 02:42

OK, I have a FIX for Aruba servers.

I did a few hours of testing (thanks to @pierangelobettoni), and although I still don't understand why it's not working correctly on Aruba, I have a perfectly working solution. In my new tests, all I can see is that Aruba for some reason is not forwarding URL parameters in mod_rewrite, likely related to an older Apache 2.2 version, AND it seems to be using some mod_rewrite request caching mechanism. My tests basically returned the same results as I reported some time ago in this github post.

Solution
Open the .htaccess file in your root X3 directory in any text editor, and locate the following code, approximately on line 38:
Code
RewriteRule ^render/. app/parsers/slir/ [L]
Comment out the line by adding a # character in front, and add the following line below so your code will look like this:
Code
# RewriteRule ^render/. app/parsers/slir/ [L]
RewriteRule ^(.*) app/parsers/slir/index.php?$1 [L]
Tests
1.Uploading a set of images:
Image

2. Images are uploaded, and showing correct resized image versions:
Image

3. Panel uploaded view mode, also works of course:
Image

4. The images display correctly in page also:
Image

For now, this is an Aruba-only fix that must be applied manually for Aruba hosted X3 websites.
 
User avatar
pierangelobettoni
Topic Author
Posts: 7
Joined: 26 Oct 2016, 14:59

Re: Thumbnail problems

22 Nov 2016, 11:25

Thank You Karl !