Page 1 of 1

Thumbnail problems

Posted: 13 Nov 2016, 03:17
by pierangelobettoni
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 16933 times
t.jpg
t.jpg (165.8 KiB) Viewed 16933 times
t.jpg
t.jpg (165.8 KiB) Viewed 16933 times

Re: Thumbnail problems

Posted: 13 Nov 2016, 05:54
by mjau-mjau
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.

Re: Thumbnail problems

Posted: 13 Nov 2016, 10:37
by pierangelobettoni
ok, I'm on Aruba, I'll keep still imagrvuex 2.0, patience
thank you.

Pierangelo

Re: Thumbnail problems

Posted: 13 Nov 2016, 13:04
by mjau-mjau
Do you have FTP for me for your server? I would like to do some diagnostics if possible.

Re: Thumbnail problems

Posted: 14 Nov 2016, 15:53
by pierangelobettoni
hello kark I sent ftp access email.
thank you

Pierangelo

Re: Thumbnail problems

Posted: 18 Nov 2016, 06:57
by failax
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.

Re: Thumbnail problems

Posted: 18 Nov 2016, 09:08
by mjau-mjau
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 ...

Re: Thumbnail problems

Posted: 22 Nov 2016, 02:42
by mjau-mjau
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.

Re: Thumbnail problems

Posted: 22 Nov 2016, 11:25
by pierangelobettoni
Thank You Karl !