Hi Patrice,
Thank you so much for taking the time to reply to my problem. And thank you for the complement too! The website has been a labour of love for my business for over 15 years :-)
Yes you're correct, the PHP version is 7.3.33 but I felt sure this was previously 7.2 but I can't remember for certain. I upgraded from PHP 5 to 7 in 2021 and not made any changes since last February which I why I have been stumped with this unusual behaviour. My hosting provider won't commit to answering my question of a version change and so it looks like I am stuck with this issue, and need to work through it.
I have since managed to get the sign in page to work by uploading the newer local files I had of authentication.php, queryobj.php and rsobj.php
I have noticed that even the ones I have now uploaded are not the latest versions though from the PHP thread you sent me.
The versions I have just uploaded are:
authentication.php is v 2.20
queryobj.php is v 2.31
rsobj.php is v 2.48
However, once logged in, I have noticed further errors on other pages. Using your helpful error reporting code, I have discovered that session variables are now not getting passed from page to page. For example if I set the following:
<?php
if (!session_id()) session_start();
if("" == "") {
$_SESSION["selected_bookingID"] = "".$_GET['bookingID'] ."";
}
?>
I then put the following at the start of the page I wish to use the session variable:
<?php
if (!session_id()) session_start();
?>
However, the session variable is lost on navigating to another page. It is as if the session variable is unset somehow?? I just can't figure it out :-(
Do you have any ideas what is going on as many of my pages rely on session variables being stored.
Your help is greatly appreciated.