Announcement

#1 2018-11-09 19:50:03

elece
Member
2016-10-23
13

CDN and Piwigo API

Hello,

I just activated succesfully the Amazon CDN to manage the photos in my Piwigo installation (via CDNPlus plugin). All is working OK... except the front page carousel, it didn't load any images.

Examining the supposed URL of the images, it displays for example:

"background-image: url('https://cdn.elece.nethttps://elece.net/galeria/https://elece.net/galeria/i.php?/upload/2018/02/10/20180210182724-f3372fd2-la.jpg')"

So I checked the code for the beautiful 10-recent-images-carousel (by Thomas Kuther) that is my front page.
It looks the variable src (var src = image.derivatives.large.url;) contains the long path. In some way, the CDN causes this (deactivating CDNPlus solves the error).
I don't know if the path comes from the parsed data of the ws.php. Is possible by any form to modify or extract the true url?
Or making the script search in a full URL path (as the photos are both in cde.elece.net and www.elece.net server)?

Thanks for your help!

Piwigo version: 2.9.4
PHP version: 7.1
MySQL version: 5.6.40
Piwigo URL: https://www.elece.net/galeria/

Offline

 

#2 2018-11-10 01:30:13

flop25
Piwigo Team
2006-07-06
7037

Re: CDN and Piwigo API

Hello
wow i never saw this plugin! SO amazing

For your issue i strongly recommend you post on https://github.com/xbgmsharp/piwigo-cdnplus/
and i'm moving your post in the rightforum


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#3 2018-11-10 09:34:32

elece
Member
2016-10-23
13

Re: CDN and Piwigo API

Thank you flop25! Yes, the plugin is awesome. Easy to configure (I remember THE MESS with Total Cache and CDN in Wordpress) and functional.

I see in the forum other report of the same issue, too

Offline

 

#4 2018-11-23 09:56:17

alpha232
Member
2018-11-23
7

Re: CDN and Piwigo API

elece wrote:

Thank you flop25! Yes, the plugin is awesome. Easy to configure (I remember THE MESS with Total Cache and CDN in Wordpress) and functional.

I see in the forum other report of the same issue, too

Yup, I'm hoping the issue gets some attention. I'm not familiar enough with the internals to even begin to try and fix it. I was able to at least document and post the issue. *crosses fingers*

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact