CPanel server : Call to undefined method mysqli_stmt::get_result

You will get this error due to missing mysqlnd driver on server : Call to undefined method mysqli_stmt::get_result() , However there isn’t an option to enable mysqlnd with the PHP build via Easy Apache . This can be resolved following below steps .

edit the following file:

/var/cpanel/easy/apache/rawopts/all_php5

Add the following line to that file:

–with-mysqli=mysqlnd

Save the file, launch EasyApache and recompile as normal. I’m assuming you’re using mysqli, else I think you’ll need to use “–with-mysql=mysqlnd” instead.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s