Welcome Guest, Not a member yet? Register   Sign In
CI3 and Mysqli
#1

Hi there,
i'm trying to install CI3 with sparks and php-activerecords.

I got an error about mysqli:

Code:
An uncaught Exception was encountered

Type: ActiveRecord\DatabaseException

Message: ActiveRecord\MysqliAdapter not found!


Filename: C:\wamp\www\ci3\sparks\php-activerecord\0.0.3\vendor\php-activerecord\lib\Connection.php


Line Number: 127


Backtrace:

            File: C:\wamp\www\ci3\sparks\php-activerecord\0.0.3\vendor\php-activerecord\lib\Connection.php

            Line: 98

            Function: load_adapter_class            


        
    
        
            

            File: C:\wamp\www\ci3\sparks\php-activerecord\0.0.3\vendor\php-activerecord\lib\ConnectionManager.php

            Line: 33

            Function: instance            

            File: C:\wamp\www\ci3\sparks\php-activerecord\0.0.3\vendor\php-activerecord\lib\Table.php

            Line: 103

            Function: get_connection            

            File: C:\wamp\www\ci3\sparks\php-activerecord\0.0.3\vendor\php-activerecord\lib\Table.php

            Line: 80

            Function: reestablish_connection            


            File: C:\wamp\www\ci3\sparks\php-activerecord\0.0.3\vendor\php-activerecord\lib\Table.php

            Line: 61

            Function: __construct            

            File: C:\wamp\www\ci3\sparks\php-activerecord\0.0.3\vendor\php-activerecord\lib\Model.php

            Line: 744

            Function: load            

            File: C:\wamp\www\ci3\sparks\php-activerecord\0.0.3\vendor\php-activerecord\lib\Model.php

            Line: 1567

            Function: table            

            File: C:\wamp\www\ci3\sparks\php-activerecord\0.0.3\vendor\php-activerecord\lib\Model.php

            Line: 1395

            Function: call_user_func_array            

            File: C:\wamp\www\ci3\application\controllers\Users.php

            Line: 9

            Function: all            

            File: C:\wamp\www\ci3\index.php

            Line: 302

            Function: require_once
I have mysqli active on php.ini
Using Wamp with Php 5.5
Somewhere they says to use "error_reporting(E_ALL ^ E_DEPRECATED);" but if I put in the Controller I get same problem.

If I set just "mysql" in database.php it says that soon it will be deprecated... what to do?.

Thx
Reply
#2

It sounds like you are trying to install CI2 ... I strongly suggest starting with version 3.

CodeIgniter 2 is now a legacy version, and Sparks hasn't been updated or maintained for some time now.
Reply
#3

(02-06-2015, 10:43 AM)ciadmin Wrote: It sounds like you are trying to install CI2 ... I strongly suggest starting with version 3.

CodeIgniter 2 is now a legacy version, and Sparks hasn't been updated or maintained for some time now.

Hi there,
actually I guess I'm using CI3.

Is there a way to check which CI version is the one I'm using?
Reply
#4

PHP Code:
<?php echo CI_VERSION?>

It has always been like this.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB