• Skip to main content
  • Skip to after header navigation
  • Skip to site footer

Free-Mail

  • Events
  • Images
    • Instagram Goodness
  • Music
  • News
  • Software

Don’t Be Distracted by the Hyena With A Giraffe Leg

Don’t Be Distracted by the Hyena With A Giraffe Leg:

  • Piwigo – Ctrl Refresh Images Don’t Load Problem Solved
  • How Did We Get From’ “My Damn Pages Don’t Load” to “Look-  A Hyena With A Giraffe Leg”?

One of the most recommended open source Photo Imaging Content Management Systems is Piwigo.

Just what does a Hyena have to do with Piwigo? Apparently quite a lot! Hyena Carrying Giraffe Leg in Addo Elephant National Park. Photo: Alan Straton

On my Piwigo installation at Straton.org.za I kept experiencing a minor niggle which became a major niggle the more I hit Cmd R (Ctrl F5 for the peasants) to force the loading of images and thumbnails in my browser after uploading images to the Piwigo installation.

Anyway using Google to find a solution to “Piwigo: my images not loading” eventually led me to the solution which is all around SSL, Port 80 and Port 443. It would appear that this is a legacy issue from the days when one could choose to either use http or the more secure https protocol. A number of solutions were proposed in the Github forums.

The most elegant solution for me was proposed by user Pierrick Le Gall and involved the following steps:

  1. Open your Piwigi Public_html folder on your server
  2. Find the Include folder and open it
  3. Open the functions_url.inc.php file
  4. Find lines 64 to 72 and comment each one out (adding // before each line does so)
  5. Save
  6. Check

To re-iterate:

Find these lines in functions_url.inc.php:

if ( (!$ is_https && $ _SERVER[‘SERVER_PORT’] != 80)
||($ is_https && $ _SERVER[‘SERVER_PORT’] != 443))
{
$ url_port = ‘:’.$ _SERVER[‘SERVER_PORT’];
if (strrchr($ url, ‘:’) != $ url_port)
{
$ url .= $ url_port;
}
}

Comment the above lines out like so:

// if ( (!$ is_https && $ _SERVER[‘SERVER_PORT’] != 80)
// ||($ is_https && $ _SERVER[‘SERVER_PORT’] != 443))
// {
// $ url_port = ‘:’.$ _SERVER[‘SERVER_PORT’];
// if (strrchr($ url, ‘:’) != $ url_port)
// {
// $ url .= $ url_port;
// }
// }

You could also delete the lines – I prefer to comment out just in case I want to undo/change at a later stage after any updates.

See video below for visual representation of the process.

Boilerplate and Editor’s Notes.
More Info on Don’t Be Distracted by the Hyena With A Giraffe Leg here:
Twitter: https://twitter.com/MyPE

CLICK HERE to submit your press release to MyPR.co.za.

: MyPR Alan Straton

Submit your Press Release for free on MyPR.

Have you tried: Travelling to South Africa?

Share this:

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Pinterest (Opens in new window) Pinterest
  • Email a link to a friend (Opens in new window) Email
  • More
  • Share on Tumblr (Opens in new window) Tumblr
  • Print (Opens in new window) Print
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Reddit (Opens in new window) Reddit
Published on 26 September 2023 by Alan Category: NewsTag: distracted, Don't, Giraffe, Hyena

SA Property Market Bears Brunt of Covid-19

JLL  – SA Property Market Bears Brunt of Covid-19 Johannesburg, Tuesday April 05, …

Read moreSA Property Market Bears Brunt of Covid-19

March Editors’ photo challenge announced: Chasing Summer

For people in many western states, summer is synonymous with rodeo. Above, a rider sits on her horse …

Read moreMarch Editors’ photo challenge announced: Chasing Summer

Explore 3D scans with this open source tool

Explore 3D scans with this open source tool: Light detection and ranging, better known as LiDAR, is …

Read moreExplore 3D scans with this open source tool

About Alan

Previous Post:The UK just passed an online safety law that could make people less safe
Next Post:Décès de Salif Keïta : un pan de l’histoire du football africain s’en est allé

Reach Trust

Reach Trust is a holding trust for a number of companies within the Stratlec Group.

Copyright © 2026 · Free-Mail · All Rights Reserved · Powered by Straton Electrical

Back to top