Page 1 of 1

Install Fail - could not find driver

Posted: Sun Oct 08, 2017 1:48 am
by engagelondon
Hi
Am attempting a 100% fresh install of ver 2.3.0.2

After uploading the files and starting the config - I get to page 3/4

the DB Driver dropdown offers me mPDO - and nothing else ( I was expecting to see MySQL or similar)

Using the mPDO option results in error message " Failed to connect to database. Reason: 'could not find driver' "

my ISP tells me I'm running MySQLi - so a bit stuck

Any suggestions gratefully received

Re: Install Fail - could not find driver

Posted: Sun Oct 08, 2017 1:51 am
by yodapt
Try creating a file like phpinfo.php in your root directory, and place this code inside :

Code: Select all

<?php phpinfo(); 
Then show the link here, so we can check what's going on.

Re: Install Fail - could not find driver

Posted: Sun Oct 08, 2017 1:54 am
by engagelondon

Re: Install Fail - could not find driver

Posted: Sun Oct 08, 2017 2:21 am
by yodapt
Seems like mysqli is installed, it's strange that it doesn show up.

Try this, inside that file you just created, replace the code with this one :

Code: Select all

<?php
print_r(get_loaded_extensions());
?>

Re: Install Fail - could not find driver

Posted: Sun Oct 08, 2017 2:26 am
by engagelondon
Indeed - I've wasted a day with this - last time I installed OC was around version 1.5 and it was really easy

file updated - thanks!

Re: Install Fail - could not find driver

Posted: Sun Oct 08, 2017 2:51 am
by yodapt
Looks like mysqlnd is installed instead of mysql, which is the same. For some reason mysqli isnt listed, but I assume it is there, so try this :

edit install/controller/install/step_3.php, line 230 :

Code: Select all

$data['mysqli'] = extension_loaded('mysqli');
to

Code: Select all

$data['mysqli'] = true;

Re: Install Fail - could not find driver

Posted: Sun Oct 08, 2017 2:57 am
by engagelondon
Now - thats better!

Before I go too far down this road - as its a fresh install - should i stay with this version or go to 3.0.2.0?

I tried installing ver 3 earlier but was having the same issue.

I ask as your obviously an expert - and I REALLY appreciate your help on this

Re: Install Fail - could not find driver

Posted: Sun Oct 08, 2017 3:14 am
by yodapt
Version 3.x is recent, there arent as much modules / extensions for it yet, and there are several bugs (too many) yet officially unsolved. I dont see any reason to recommend it, I guess it's a matter of choice, maybe it has a couple features out of the box that you really need, but probably you dont.

Re: Install Fail - could not find driver

Posted: Sun Oct 08, 2017 3:49 am
by engagelondon
I hear you

The install continues to fall over - I get to stage 3, give it my details and it then falls over to a white screen.

I may well suggest my client looks elsewhere, an installer that falls over hardly inspires confidence

Thanks for your help however.

Re: Install Fail - could not find driver

Posted: Sun Oct 08, 2017 5:14 am
by yodapt
I would suggest you talk with the hosting company about it, it's the first time I encounter such issue in 8 years.

Re: Install Fail - could not find driver

Posted: Sun Oct 08, 2017 5:46 am
by engagelondon
:) If i could describe the problem I would :)

Re: Install Fail - could not find driver

Posted: Sun Oct 08, 2017 6:35 am
by yodapt
The problem is that your PHP version doesnt show mysqli installed in it's environment, and thus you are unable to use it in your applications.

Alternatively, if you want I can assist you directly if you give me access, to see if I can work around the problem. Drop me an email if you want.

Re: Install Fail - could not find driver

Posted: Sun Oct 08, 2017 7:05 pm
by engagelondon
Hi - Thanks for the offer

I've had a moan with my server people - let them do some work!

Re: Install Fail - could not find driver

Posted: Mon Oct 09, 2017 12:47 pm
by tonkp
Thanks for the info



sbobet