• Skip to main content
  • Skip to footer
  • Home
  • About
    • MyPE Copyright Terms
    • Authors
    • Deals
  • Info
    • Accommodation
    • Classified Adverts
    • Directory
    • Essential PE Numbers
    • Flight Schedules
    • Forex Converter
    • PE’s Online Radio Stations
      • Algoa FM
      • Bay FM
      • iFM
      • Kingfisher FM
      • MannMade Radio
      • Madibaz Radio
      • Umhlobo Wenene
    • Podcasts
    • Shipping
    • Street Map
    • Tides
    • Ward Details
    • Ward News
    • Weather
  • Contact
    • Advertising on MyPE
  • Submit
    • Blogger
    • 5 Quick PE Questions
    • Entertainment
    • Events
      • Add your Port Elizabeth event
    • Letter to the Editor
    • Lost and Found
    • Movers and Shakers
    • News Article
    • PE Videos
    • Photographs
    • Recipes
    • Traffic Hooligan
    • Say NO
  • Dam Levels
  • Advertorial
  • Business
  • NMBRA
  • NMB Rates
MyPE

MyPE

Community Business Directory, Event Listings, News and Views from Gqeberha, Nelson Mandela Bay

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

26 September 2023 By Alan Straton

  • 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

Read More on MyPR.co.za

The following two tabs change content below.
  • Bio
  • Latest Posts
My Twitter profileMy Facebook profileMy Google+ profileMy LinkedIn profileMy Flickr profileMy Pinterest profile

Alan Straton

Chief Cook, Bottle Washer and Broom Mechanic at MyPE
Passionate about Port Elizabeth and definitely NOT packing for Perth. Alan's ethos is epitomised in the words of Nelson Mandela; "I have fought against white domination and I have fought against black domination. I have cherished the idea of a democratic and free society. If need be, it is an ideal for which I am prepared to die." See more articles by Alan.
My Twitter profileMy Facebook profileMy Google+ profileMy LinkedIn profileMy Flickr profileMy Pinterest profile

Latest posts by Alan Straton (see all)

  • Chocolate, Banana and Bubblegum Milkshake Syrups for the School Holidays - 19 November 2026
  • Trusting Trusts Offers Plain-Language Reviews of Older Trusts - 19 November 2026
  • B2B Expos Hands Buyers One Indexed Supplier Pack After Each Supplier Day - 18 November 2026
  • Haemodialysis Technical Services Explains Its Loan Units for Renal Units - 18 November 2026
  • Psycho Bunny South Africa Puts Polo Shirts and Tees on the Festive Gift List - 18 November 2026

Filed Under: Business Tagged With: mypr

Footer

RSS Straton Electrical

  • Open Cycle Gas Turbine Usage
  • Flattening the curve – What Every Solar Installer Needs to Know
  • Why you shouldn’t leave a charger plugged in when not in use
  • How do I check if an Electrician is properly registered in South Africa?
  • Easy Electrical Troubleshooting for Humans
  • Water – If You Cannot Measure It Then You Cannot Manage It
  • Tips To Survive Loadshedding
  • Eskom’s Top 50 Electricity Saving Tips

RSS MyPE Business News

  • NMBBC On Budget 2025
  • Leading Business Minds Set to Headline Chambers Annual General Meeting
  • Bay of Opportunity Portal
  • Bay of Opportunity Ambassadors Programme to Promote the Bay and Attract Investment
  • 6 Decades of Trucking
  • Thermal Camera Installed at Redhouse Substation
  • Finalist in the 2025 South African Car of the Year
  • Joining hands to create a lasting impact to St Albans Primary School

RSS MyPR Press Releases

  • Chilla açaí by Polpanorte Brings Brazil’s Original açaí to South Africa
  • From Bottle to Business – The Entrepreneurial Value of Glass Recycling
  • Trusting Trusts Offers Plain-Language Reviews of Older Trusts
  • Sticker Papers Pro Sets Out When Outdoor Print Needs Polymeric Film
  • Kidney Clinic in Ballito Gives Holiday Dialysis Visitors a Heat Guide

How you may use MyPE content © 2026 MyPE · Gqeberha, South Africa | Privacy Policy | MyPE Ads and Media Kit