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

Submit your local news to MyCapeTown HERE

  • WordPress
  • Facebook
  • Twitter
  • Instagram
  • LinkedIn
  • YouTube
  • Bluesky
My Cape Town

My Cape Town

Cape Town Community News and Events

  • Events
  • Daily News
  • Submit News
  • Dam Levels
  • Stratlec Shop
You are here: Home / MyPR / Don’t Be Distracted by the Hyena With A Giraffe Leg

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

26 September 2023 by Con Tributor
  • 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.

Pages: Page 1 Page 2

Visit MyPR.co.za

Category: MyPRTag: MyPR

you may also love

MyPR

Gong Hey Fat Choi – Celebrate Chinese New Year With Gold

The Chinese New Year falls on Wednesday, January 29th, 2025, ushering in the Year of the Snake, a time to celebrate …
News

Interview with Zando’s CEO on Navigating The Future of Online Shopping in South Africa

Interview with Zando’s CEO on Navigating The Future of Online Shopping in South Africa Cape Town (South Africa): 22 January …

Mama Grace celebrates the launch of her world-class Alexandra Hospice during Johannesburg and Cape Town Fundraising Roadshow

Global healthcare company, Organon, has partnered with the Reach for Dream Foundation to provide laptops to school going …

Acepak Sets Out Its End-Of-Line Machine Range for Fourth Quarter Planning

With South African food, beverage, dairy and pharmaceutical producers now shaping their fourth-quarter plans for 2026, Cape …

About Con Tributor

A catch all for the many contributors to My Cape Town – thank you for submitting your Cape Town news HERE.

Previous Post:NewsRecovery And Humanitarian Needs In Aftermath Of The Weekend’s Severe Weather
Next Post:“I saw my shoes float on water and heard my cat meow”News

Copyright © 2026 · My Cape Town · All Rights Reserved · Powered by Reach Trust