Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
andreamarucci
Experienced
Topic Author
Posts: 312
Joined: 01 Mar 2011, 11:13

CDN not working

23 Nov 2015, 10:25

Hello Karl, just upgraded my gallery and almost everything went fine. I've input my CDN url in the specific field but all the images are taken from my server and not from the CDN. Any idea?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: CDN not working

23 Nov 2015, 13:28

link?
 
User avatar
andreamarucci
Experienced
Topic Author
Posts: 312
Joined: 01 Mar 2011, 11:13

Re: CDN not working

23 Nov 2015, 13:51

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

Re: CDN not working

23 Nov 2015, 13:57

It doesn't seem to be working. Please let me look into this issue tomorrow ...
 
User avatar
andreamarucci
Experienced
Topic Author
Posts: 312
Joined: 01 Mar 2011, 11:13

Re: CDN not working

23 Nov 2015, 15:50

I've sent you via PM my admin details if you want to look at the admin side...
 
User avatar
andreamarucci
Experienced
Topic Author
Posts: 312
Joined: 01 Mar 2011, 11:13

Re: CDN not working

24 Nov 2015, 09:54

Hello Karl, found something wrong?

In the page source I see this
Code
</a><a class='item img-link item-link x3-popup' data-options='w:800;h:531' data-image='http://1041320869.rsc.cdn77.org/content/4.20112015/3.2013/3.100313/DSC_3314.jpg' data-title='DSC 3314' data-description='' data-date='12 March 2013' href='/20112015/2013/100313/DSC_3314/' id='DSC-3314'  itemprop='associatedMedia' itemscope itemtype='http://schema.org/ImageObject'><figure><div class='image-container' style='padding-bottom:66.375%;'><img data-src='http://1041320869.rsc.cdn77.org/content/4.20112015/3.2013/3.100313/DSC_3314.jpg' alt='DSC 3314' itemprop='thumbnail'></div></figure></a>
this one
Code
data-image='http://1041320869.rsc.cdn77.org/content/4.20112015/3.2013/3.100313/DSC_3314.jpg'
is correct but the href is not pointing to the CDN as you may see
Code
href='/20112015/2013/100313/DSC_3314/'
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: CDN not working

24 Nov 2015, 11:17

andreamarucci wrote:Hello Karl, found something wrong?
Sorry, I have been so busy and did not get the opportunity to look into this issue yet ... It is clearly a BUG in X3, and I will look into it tomorrow. Nothing wrong from your side ...
 
User avatar
andreamarucci
Experienced
Topic Author
Posts: 312
Joined: 01 Mar 2011, 11:13

Re: CDN not working

24 Nov 2015, 11:59

No problems Karl...
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: CDN not working

25 Nov 2015, 22:41

Just for reference, this bug is currently in our task-list for an update that will likely be available before the weekend.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: CDN not working

26 Nov 2015, 02:28

Just checked in to your panel, saved a page without changing it, and CDN seems to work now:
Image

I am not quite sure why it required a page refresh, because it should have forced a page-refresh when saving settings ... but at least it works.
 
User avatar
andreamarucci
Experienced
Topic Author
Posts: 312
Joined: 01 Mar 2011, 11:13

Re: CDN not working

26 Nov 2015, 05:15

I don't know. If you browse the gallery and go in one of the galleries like here for example

http://gallery.kog.it/20112015/2012/140112/

you click on a photo, the photo appear and if you try to open the image in another windows, the URL is not the one of the CDN but the local one...
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: CDN not working

26 Nov 2015, 05:38

Definitely works here, for all image resources, also in popup window, and image-landing page:
Image

Loads this:
http://1041320869.rsc.cdn77.org/content ... G_9799.jpg

Wonder if you have some strange cache issue somehow. Everything is correct from here. Sample code from a link, where data-image (for popup) is set to CDN url, anchor tag HREF points to the image-page, and <img> data-src and src points to the CDN:
Code
<a class="item img-link item-link x3-popup" data-options="w:800;h:533" data-image="http://1041320869.rsc.cdn77.org/content/4.20112015/2.2012/2.140112/IMG_9803.jpg" data-title="IMG 9803" data-description="" data-date="14 April 2015" href="/20112015/2012/140112/IMG_9803/" id="IMG-9803" itemprop="associatedMedia" itemscope="" itemtype="http://schema.org/ImageObject" style="margin-bottom: 10px; margin-right: 10px; width: 365px; height: 247px;"><figure class="unveiled"><div class="image-container"><img data-src="http://1041320869.rsc.cdn77.org/render/w640-q90/4.20112015/2.2012/2.140112/IMG_9803.jpg" alt="IMG 9803" itemprop="thumbnail" src="http://1041320869.rsc.cdn77.org/render/w640-q90/4.20112015/2.2012/2.140112/IMG_9803.jpg" style="height: 235px;"></div></figure></a>
PS! The actual LINK in the <a> anchor tag should not go to CDN, because it points to the landing page:
Code
href="/20112015/2012/140112/IMG_9803/"
 
User avatar
andreamarucci
Experienced
Topic Author
Posts: 312
Joined: 01 Mar 2011, 11:13

Re: CDN not working

26 Nov 2015, 06:04

Perfect, maybe a cache problem here. Happy to hear that everything is working from there :-)

I really love X3 and I think it's one of the best galleries around :-)