Ubuntu 14 Teampass install mysqi_fecth_all error

Hi,

I´m installing TeamPass last version under ubuntu 14 LTS and, when checking PHP functions, there is an error about mysqi_fecth_all.. not avaliable

Why?

How to repare this error?

Regards
heze54Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Martin FernandezCommented:
As your PHP installation was not compiled with mysqlnd you can use these two options:
Use a loop:
$data = [];
while ($row = $result->fetch_assoc()) {
    $data[] = $row;
}

Open in new window


Good luck!
1
heze54Author Commented:
HI,

If I choose the 2nd choice, how to do this?


Regards
0
Martin FernandezCommented:
Instead using mysql_fetch_all() to get the data, use the second one:

Instead:

$data = mysqi_fecth_all($result, MYSQL_ASSOC);

Open in new window


Do:

$data = [];
while ($row = $result->fetch_assoc()) {
    $data[] = $row;
}

Open in new window


And you will get the same result.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

heze54Author Commented:
HI,

Which file? php.ini?
0
Ray PaseurCommented:
Just to be clear, you're not having trouble with mysqi_fecth_all() but are really having trouble with mysqi_fetch_all() ?  Because according to PHP it does not exist:
http://php.net/manual-lookup.php?pattern=mysqli_fetch_all&scope=quickref

MySQLi_fetch() used to exist, but has been removed.

Maybe the thing you want is this:
http://php.net/manual/en/mysqli-result.fetch-all.php
0
heze54Author Commented:
HI  Ray,

Resuming... I´m trying to install the latest version of TeamPass under Ubuntu 14.

What should I change?

The more I read forums, The less I understand
0
Ray PaseurCommented:
Is this the product you're trying to install?
http://teampass.net/installation/installation-on-linux-server.html
0
heze54Author Commented:
Hi Ray,

Right!!

Regards
0
Ray PaseurCommented:
Great.  What step of the installation fails?
0
heze54Author Commented:
HI,

1st one

PHP function "mysqli_fetch_all" is available   Function mysqli_fetch_all is not available!

I also tried to update from 5.3 php to 5.6, but no changes made
0
heze54Author Commented:
HI,

Any idea?

Regards
0
Sergey TruhanIT Infrastructure Support Engineer Commented:
Hi.
You should removed php5-mysql and install php5-mysqlnd
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
heze54Author Commented:
A++
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.