I have problems with PHP in Ubuntu 10.04. When I try use mysqli_result::fetch_all this error appears:
Call to undefined method mysqli_result::fetch_all()
mysqli_result::fetch_all() requires MySQL Native Driver (mysqlnd).
chances are you might be missing it.
have a look at this posts, that might help you.
mysqli fetch_all() not a valid function?