P2GR / datamapper

CodeIgniter Datamapper
Other
35 stars 23 forks source link

Upgrading from CI2 -> CI3 with Datamapper, call to undefined method, sqlsrv error #20

Open ekrister opened 2 years ago

ekrister commented 2 years ago

Hello!

I'm in the process of upgrading an older Codeigniter project from v2 to v3. I've been using Datamapper and noticed that this repository apparently contains a functioning version of DM for CI3. However, when replacing all the files and double checking everything, I still end up with this error that I am unable to solve:

Type: Error
Message: Call to undefined method CI_DB_sqlsrv_driver::dm_call_method()
Filename: /var/www/xxxxxxx/application/libraries/Datamapper.php
Line Number: 1034

I should mention I'm using MS SQL server and also had to uppercase the first letter of Datamapper.php file in application/libraries for CI3. MS SQL drivers are properly installed as the CI2 version of the program is working fine on the same server.

I know Datamapper is old and should be replaced, but still wanted to try my luck here.