SSEP error undefined method mysqli_stmt::get_result

Place for comments, problems, questions, or any issue related to the JavaScript / PHP scripts from this site.
rcull
Posts: 5

SSEP error undefined method mysqli_stmt::get_result

I just installed SSEP from: https://coursesweb.net/php-mysql/ssep-si ... hp-ajax_s2 , and tried a log in. I got a blank page after submitting my username and password.
I found this error:

Code: Select all

[17-Feb-2017 02:05:45 UTC] PHP Fatal error:  Call to undefined method mysqli_stmt::get_result() in /home/teambuic/public_html/ssep/php/mysqli_pdo.php on line 201
Thanks

Admin Posts: 805
Hello,
The mysqli_stmt::get_result() method requires the mysqlnd driver, if it isn't installed on your php server, the ssep can not work with MySQLi. In this case try use the script with pdo.
- Open the mysqli_pdo.php file and set the CONN_MOD constant with "pdo" value (on line 2):

Code: Select all

define('CONN_MOD', 'pdo');
Just for test, to check if mysqlnd driver is installed, run this code in a php file on your server:

Code: Select all

$mysqlnd = function_exists('mysqli_fetch_all');

if($mysqlnd) {
  echo 'mysqlnd enabled!';
}
else {
  echo 'mysqlnd not enabled!';
}

rcull Posts: 5
That was it! I ran the script, it show mysqlnd not installed, I changed the line as suggested and have now run my first crawl!

Thanks