Announcement

#1 2018-11-26 15:07:38

pjgaus
Member
Pittsburgh, PA
2015-12-23
16

Photo display and https

Hello/Hi/Greetings,

I have a new problem that I could not solve after searching the forum.  I have been using Piwigo now for about 4 years.  It works exceptionally well and does exactly what I need.

Like I said, I have been using it for 4 years with no issues.  I recently added SSL to my site.  All other applications on my site work now except for Piwigo.  When I add https:// to the address, the pictures no longer show.  I have attached a screenshot to illustrate what happens.

I have worked with my internet provider (HostGator) who concludes that there is something in Piwigo that is trying to force http vs https when the picture is being displayed.  They checked everything they could and naturally said it is not their problem.

All aspects of the program works error free.  I can add pictures (and see them when I revert to http).  I have tested all other options in the program, and they work.  I just can't see the pictures.

The Theme is a modified 'clear' theme.  I have tried disabling all plugins which does not help.

When I 'inspect the element' in Chrome I see errors for each picture that read "ajax_loader.gif:1 Failed to load resource: the server responded with a status of 403 (Forbidden)".  I don't know what that means or how to fix it.

Any help would be appreciated


Piwigo 2.9.4
Operating system: Linux
PHP: 5.6.30 (Show info) [2018-11-26 07:45:26]
MySQL: 5.6.41-84.1 [2018-11-26 07:45:26]
Graphics Library: ImageMagick 6.7.6-8

Last edited by pjgaus (2018-11-26 16:06:01)

Offline

 

#2 2018-11-26 20:13:27

pjgaus
Member
Pittsburgh, PA
2015-12-23
16

Re: Photo display and https

I am wondering if there is an outside package that should be on the server that is either not there or configured improperly.

I loaded the IOS Piwigo Mobile app 2.2.5 onto my iphone.  I get the same landscape icons instead of pictures.

Last edited by pjgaus (2018-11-26 20:20:19)

Offline

 

#3 2018-11-26 21:54:09

erAck
Only trying to help
2015-09-06
2023

Re: Photo display and https

Piwigo works perfectly well over https.

Seeing ajax_loader.gif mentioned in the status message and your screenshot is of thumbnails, do you by chance use [extension by Serge D] gdThumb where plugins/GDThumb/template/gdthumb_cat.tpl has

Code:

<div class="loader"><img src="{$ROOT_URL}{$themeconf.img_dir}/ajax_loader.gif" alt=""></div>

Then check the generated page source of the failing page what the src URL actually points to and whether that matches what you'd expect. If not, find out why. Expanded {$ROOT_URL} should result in your gallery's relative directory (as obtained via get_root_url()), specifically it should not include a http:// or https:// schema, and {$themeconf.img_dir} expand to (a|the) theme's directory, altogether for example result in src="themes/default/images/ajax_loader.gif".

Also check that .htaccess doesn't have unexpected rewrites that didn't matter in your http environment but do with https (i.e. are paths equal for both or does https for some reason end up in a different path than http; do some conditions depend on the protocol schema; ...)

However, it might as well be you just have to clear the cache(s) and delete/regenerate all thumbnails, see Tools -> Maintenance. Try.


Running Piwigo at https://erack.net/gallery/

Offline

 

#4 2018-11-26 22:26:18

pjgaus
Member
Pittsburgh, PA
2015-12-23
16

Re: Photo display and https

Bingo

Thank you for your help.  I fount a 'RewriteCond' in the .htaccess which referenced http that was the culprit.

I feel foolish that I did not see it earlier.  Sometimes it is the simplest thing, right in front of your face, that is the problem.

Thanks again

Offline

 

Board footer

Powered by FluxBB

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