PHP Classes

get_result error

Recommend this page to a friend!

      PHP OAuth Library  >  All threads  >  get_result error  >  (Un) Subscribe thread alerts  
Subject:get_result error
Summary:Getting an error in the new code
Messages:8
Author:John Rambelle
Date:2013-06-03 22:08:32
Update:2013-06-06 11:51:10
 

  1. get_result error   Reply   Report abuse  
Picture of John Rambelle John Rambelle - 2013-06-03 22:08:32
Can you help with why I am getting:

PHP Fatal error: Call to undefined method mysqli_stmt::get_result() in /home1/xxx/public_html/yyy/oauth/mysqli_oauth_client.php on line 85

I am running php 5.4 and have mysqli extension installed...

Thanks!
John

  2. Re: get_result error   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2013-06-03 23:41:38 - In reply to message 1 from John Rambelle
It seems you have not enabled mysqlnd extension in your php.ini . Can you update your php.ini file?

  3. Re: get_result error   Reply   Report abuse  
Picture of John Rambelle John Rambelle - 2013-06-04 11:21:47 - In reply to message 2 from Manuel Lemos
Yes, I've located the php.ini file on my virtual host. What should I add?

  4. Re: get_result error   Reply   Report abuse  
Picture of John Rambelle John Rambelle - 2013-06-04 13:45:31 - In reply to message 3 from John Rambelle
I have confirmed that I'm on php 5.4 and in 5.4.0 The MySQL Native Driver is now the default for all MySQL extensions (i.e., mysql, mysqli and PDO_MYSQL). Passing in mysqlnd to configure is now optional.

The only php.ini entries for mysqlnd I see are:

mysqlnd.collect_statistics
mysqlnd.collect_memory_statistics
mysqlnd.debug
mysqlnd.log_mask
mysqlnd.mempool_default_size
mysqlnd.net_read_timeout
mysqlnd.net_cmd_buffer_size
mysqlnd.net_read_buffer_size

  5. Re: get_result error   Reply   Report abuse  
Picture of John Rambelle John Rambelle - 2013-06-05 02:47:39 - In reply to message 4 from John Rambelle
fyi - I contacted my host and they are not able to enable mysqlnd without impacting the other users on my shared server. Boo.

Thanks for your help.

  6. Re: get_result error   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2013-06-05 11:57:40 - In reply to message 5 from John Rambelle
I have just updated the MySQLi class to avoid using the functions that rely on MySQLND. Just let me know if it works OK now.

  7. Re: get_result error   Reply   Report abuse  
Picture of John Rambelle John Rambelle - 2013-06-05 20:55:01 - In reply to message 6 from Manuel Lemos
Wow. Will try it out and let you know.
Thanks so much for modifying the code to try to get around this!

  8. Re: get_result error   Reply   Report abuse  
Picture of John Rambelle John Rambelle - 2013-06-06 11:51:10 - In reply to message 7 from John Rambelle
Works now for me. You are the best!
T h a n k Y o u ! !