Note that there are some explanatory texts on larger screens.

plurals
  1. PONot working after going live
    primarykey
    data
    text
    <p>Hoping someone can help me out, I have a web system that was fully tested and worked perfectly, I moved it onto my hosting provider this morning and now I am having issue.</p> <p>My users login , then are directed to a second login page for 2 factor ... then are directed to the below which sets sessions and directs them to the index file. This is not working however, just a blank page is displayed.</p> <p>The code is as follows </p> <pre><code>&lt;?php //Start session session_start(); //Include database connection details require_once('db_connect.php'); $username = $_SESSION['SESS_USERNAME']; $stored_hash = $_SESSION['SESS_HASH']; $qry = "SELECT * FROM auth WHERE username=? AND password=?"; $stmt = $mysqli-&gt;prepare($qry); $stmt-&gt;bind_param('ss',$username, $stored_hash); $stmt-&gt;execute(); $result = $stmt-&gt;get_result() ; $member = $result-&gt;fetch_assoc(); //Login Successful session_regenerate_id(); //Set session variables $_SESSION['SESS_MEMBER_ID'] = $member['ID']; $_SESSION['SESS_FIRST_NAME'] = $member['fname']; $_SESSION['SESS_PASSWORD'] = $member['password']; $_SESSION['SESS_AUTH_LEVEL'] = $member['auth_level']; session_write_close(); header("location: index"); $stmt -&gt; close(); // Close statement // close connection $mysqli-&gt;close(); ?&gt; </code></pre> <p>If I remove the "$result = $stmt->get_result() ;" and replace it with a simple echo it works. I cannot figure out what is wrong, this all works on my local testing webserver. The php versions are the same in both setups.</p> <p>Can someone help me out ? Or show me how to display a useful error at least ?</p> <p>Many thanks</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload