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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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!
heze54Author Commented:
HI,

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


Regards
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.
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

heze54Author Commented:
HI,

Which file? php.ini?
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
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
Ray PaseurCommented:
Is this the product you're trying to install?
http://teampass.net/installation/installation-on-linux-server.html
heze54Author Commented:
Hi Ray,

Right!!

Regards
Ray PaseurCommented:
Great.  What step of the installation fails?
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
heze54Author Commented:
HI,

Any idea?

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

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++
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.