• 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

  • 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.

Submit your Press Release for free to MyPR here: MyPR Free Press Release Submission.

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: News, TechnologyTag: MyPR

Canon RF 14mm F1.4 L VCM initial sample gallery

When you use DPReview links to buy products, the site may earn a commission. Sample gallery This …

Read moreCanon RF 14mm F1.4 L VCM initial sample gallery

Fischerboot

Check out this Strand Beach image: Fischerboot Image by aj82 Fischerboot am Strand von Dar es …

Read moreFischerboot

HMS Defender: what this episode tells us about British naval power in the ‘Global Britain’ era

HMS Defender: what this episode tells us about British naval power in the ‘Global …

Read moreHMS Defender: what this episode tells us about British naval power in the ‘Global Britain’ era

About Alan

Previous Post:Trending Now: Stanford Western Cape
Next Post:Why an entry fee may not be enough to save Venice from 20 million tourists

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