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

My Durban

Durban News, Business, Accommodation, Directory

  • Accommodation
    • Showcase your accommodation
    • Beachfront
    • Glenwood
    • Yacht
  • Events
  • Submit News FREE
  • News

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

26 September 2023 by My Durban
  • 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.

[embedded content]

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: durban

About My Durban

Durban is a major coastal city and the economic hub of the KwaZulu-Natal (KZN) province in eastern South Africa. Governed by the eThekwini Municipality, it is renowned for its busy seaport, tropical climate, diverse cultural influences (African, Indian, and colonial), and the popular “Golden Mile” beachfront promenade, serving as a premier tourism and industrial center.
This author is a catch-all for contributions from individuals and press releases submitted to our MyPR Free Press Release Self Submission Service.

Previous Post:Experience It Durbs
Next Post:Fun Fact: 083_12

Building Automation, Prepaid Meters and Home Automation Products.

Stratlec offers everything you need to MEASURE, MANAGE and SAVE Electricity

Shop Online

MyZA News

  • How FNB enabled people to join the SGK pyramid scheme
  • Residents lay criminal charges against Theewaterskloof over illegal waste dump
  • Dr Ellis announces Sasol Banyana squad for WAFCON 2026 – South African Football Association
  • State spent R600m to contain 30 June xenophobic action – law enforcement could have prevented it
  • Banyana settled in Morocco with full complement of players ahead of WAFON 2026 – South African Football Association

MyPR News

  • Ster-Kinekor Brings Three Iconic Classics Back to the Big Screen This August
  • Ster-Kinekor Celebrates South African Storytelling With Exclusive Local Film Releases
  • ICASA License Amendment Unlocks HOT 102.7FM’S Next Growth Chapter
  • “The Steel Almost Never Fails First”: SA Manufacturer Reveals Why Spring Mattresses Actually Wear Out – And Publishes Endurance Test Results
  • Everything You Need to Know about the OMODA C9

Cape Town News

  • Preventable blindness remains a major public health challenge in Africa
  • Four killed in mass shooting on the Cape Flats
  • Cape Town female bus driver sharing MyCiTi job tips in TikTok video
  • Another South African hotel has just been ranked as one of the best in the world
  • US visas become harder to get for some South Africans

NMB News

  • Top Honours for NMU Students
  • WC – GQ Are You Ready?
  • Compliance Is Profitable: Why Labour Management Compliance Is Good Business in South Africa’s Construction Industry
  • NMBM Looks to TrackAdapt Project
  • R2 Billion Investment: Babalwa is on it

Copyright © 2026 · All Rights Reserved · Powered by Straton Solar