some notes on some fixes needed after becoming a https after getting a ssl certificate and changes that needed to be made for scripts, folders and links previously linked to some of our other non certified http websites
the one i was stuck on was a rotate image script which basically chooses a random image from a folder for our home page
what happened before the certificate was added was that the script called for a ***.php page and a folder of images from another domain i look after.
now i understand that i cannot now call from a secured https domain to unsecured stuff in a http domain (because of encryption headers), so i copied the whole folder of images and the php call file (***.php) to our soul-trade.com site
and adjusted the calling script to read
<img class="logo-image"> <a><img title="A Random Image for your delight, click for another" src="https://www.soul-trade.com/**/**.php" alt="A Random Image for your delight" align="top"> </a>
but it didn’t work
e tried http:// instead of https
but no joy or change (it should be https)
so i checked permissions which, in the working site, are image folder 755 (group=0) and the folder’s files are 704 (group =0) as is the calling script **.php
i now have soul-trade’s image folder as 755 but the group is 500
and the folder’s photo files are 644 (group=500) — so needed to change the >4k images to 704
so batch changed the permissions in soul-trade.com using “fetch” over ftp by selecting all, then choosing get info — took ages but worked (without me needing to do individually)
still the script failed
so i changed the <img src= to “https://www.soul-trade.com”
got a picture hooray but no change of pic on mousedown
so i changed the <a href="javascript:this.location.reload();">
to simply location reload
<a href="javascript:location.reload();">
success!
_____________________
note
to upgrade database to mysql 8
best to create new version 8 database after backing up old one (export) in phpmyadmin and then importing into new one!!
(host auto upgrade failed with errors!!)
That is to say, “Good stuff, Jol, good stuff…”
Darned javascript…d’you know Nunjucks?
Think that might be what LIQUID is about…
Tsk