[image processing] Generating thumbnails in Batch Manager not working on HTTPS ONLY setup #220

Open
opened 2026-10-04 23:47:51 +02:00 by adam · 7 comments
Owner

Reported by slima on 23 Mar 2013 14:23

Version: 2.5.0

I have nginx server configured to serve content only via https.

Piwigo 2.5 Batch Manager dont generate thumbnails via "generate multiple size images" command.
No error in log, but I do research and it's HTTPS problem related.

When I configure server to serve content via http generate working.

When I go to url:

https://myhost/g/i.php?/upload/2013/03/23/20130323121131-f50e5c66xx.jpg&b=1364037169&ajaxload=true

I see :

{"url":"http://myhost:443/g/_data/i/upload/2013/03/23/20130323121131-f50e5c66-xx.jpg"}

I think problem is "http" in url variable.

Steps to reproduce: 1) Go to https://galleryhost/admin.php?page=batch_manager
2) Select some image, and select in Action menu "generate multiple size images"
3) Select All
4) Click Apply Action button

Error: 7 photos can not be regenerated

Piwigo Bugtracker #2879

**Reported by slima on 23 Mar 2013 14:23** **Version:** 2.5.0 I have nginx server configured to serve content only via https. Piwigo 2.5 Batch Manager dont generate thumbnails via &quot;generate multiple size images&quot; command. No error in log, but I do research and it&#039;s HTTPS problem related. When I configure server to serve content via http generate working. When I go to url: https://myhost/g/i.php?/upload/2013/03/23/20130323121131-f50e5c66xx.jpg&amp;b=1364037169&amp;ajaxload=true I see : {&quot;url&quot;:&quot;http:\/\/myhost:443\/g\/_data\/i\/upload\/2013\/03\/23\/20130323121131-f50e5c66-xx.jpg&quot;} I think problem is &quot;http&quot; in url variable. **Steps to reproduce:** 1) Go to https://galleryhost/admin.php?page=batch_manager 2) Select some image, and select in Action menu &quot;generate multiple size images&quot; 3) Select All 4) Click Apply Action button Error: 7 photos can not be regenerated [Piwigo Bugtracker #2879](http://piwigo.org/bugs/view.php?id=2879) <!-- github-sync-id:97226543 -->
Author
Owner

I face the same issue after a Piwigo upgrade.
I also see that some URLs point to http://mydomain/... instead of https://mydomain/...
I found this thread that seems related : http://piwigo.org/forum/viewtopic.php?id=25782 but I did not manage to make it work so far

I face the same issue after a Piwigo upgrade. I also see that some URLs point to http://mydomain/... instead of https://mydomain/... I found this thread that seems related : http://piwigo.org/forum/viewtopic.php?id=25782 but I did not manage to make it work so far <!-- github-comment-id:134983534 -->
Author
Owner

I will soon work on implementing HTTPS with Nginx. I will have to fix that problem, for sure!

I will soon work on implementing HTTPS with Nginx. I will have to fix that problem, for sure! <!-- github-comment-id:134984103 -->
Author
Owner

Great!
In my case, it's an Apache reverse-proxy (on another server, which handles SSL encryption), but I suppose the fix would be the same for both HTTP servers.
I'm using Piwigo 2.7.4 on Linux (Debian Wheezy)
PHP: 5.4.41-0+deb7u1
MySQL: 5.5.44-0+deb7u1
Bibliothèque graphique: ImageMagick 6.7.7-10

Great! In my case, it's an Apache reverse-proxy (on another server, which handles SSL encryption), but I suppose the fix would be the same for both HTTP servers. I'm using Piwigo 2.7.4 on Linux (Debian Wheezy) PHP: 5.4.41-0+deb7u1 MySQL: 5.5.44-0+deb7u1 Bibliothèque graphique: ImageMagick 6.7.7-10 <!-- github-comment-id:134991291 -->
Author
Owner

+1

+1 <!-- github-comment-id:168430032 -->
Author
Owner

Same problem. NGINX + HTTPs, and started to have problems with Piwigo, thumbnails that fail to get generated at random, it's weird. Clearly related to https. My site supports both HTTP and HTTPs access.

Same problem. NGINX + HTTPs, and started to have problems with Piwigo, thumbnails that fail to get generated at random, it's weird. Clearly related to https. My site supports both HTTP and HTTPs access. <!-- github-comment-id:286013485 -->
Author
Owner

facing the same (with https).
I noticed that the files do get generated on the cache folder on the disk.

facing the same (with https). I noticed that the files do get generated on the cache folder on the disk. <!-- github-comment-id:310887174 -->
Author
Owner

As a workaround I added

$_SERVER['HTTPS']='on';
$_SERVER['SERVER_PORT']=443;

to my local config. But it would be better adding the code where it belongs(See referenced PR).

As a workaround I added ``` $_SERVER['HTTPS']='on'; $_SERVER['SERVER_PORT']=443; ``` to my local config. But it would be better adding the code where it belongs(See referenced PR). <!-- github-comment-id:321991422 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#220