error |
See the User Guide: https://codeigniter.com/user_guide/insta...e_300.html
CI2 reached its End of Life. It is not maintained. Bug fix including security fix is not available. So if you use it, you must maintain by yourself. http://forum.codeigniter.com/thread-61357.html If you just want to try to work your application, it is probably enough to change database driver config (`dbdriver`) from `mysql` to `mysqli`. See https://codeigniter.com/userguide2/datab...ation.html
Okay, I'll try using CI2 first. How to change the database driver?
I'll try this: database.php $db['default']['hostname'] = 'localhost'; $db['default']['username'] = 'gsaconst_admin'; $db['default']['password'] = '*********'; $db['default']['database'] = 'gsaconst_database'; $db['default']['dbdriver'] = 'mysqli'; $db['default']['dbprefix'] = 'pix_'; $db['default']['pconnect'] = TRUE; $db['default']['db_debug'] = TRUE; $db['default']['cache_on'] = FALSE; $db['default']['cachedir'] = ''; $db['default']['char_set'] = 'utf8'; $db['default']['dbcollat'] = 'utf8_general_ci'; $db['default']['swap_pre'] = ''; $db['default']['autoinit'] = TRUE; $db['default']['stricton'] = FALSE; error: A PHP Error was encountered Severity: Notice Message: Only variable references should be returned by reference Filename: core/Common.php Line Number: 257 A PHP Error was encountered Severity: Warning Message: require_once(C:/xampp/htdocs/gsa/system/database/drivers/mysqli_connect/mysqli_connect_driver.php): failed to open stream: No such file or directory Filename: database/DB.php Line Number: 140 Fatal error: require_once(): Failed opening required 'C:/xampp/htdocs/gsa/system/database/drivers/mysqli_connect/mysqli_connect_driver.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\gsa\system\database\DB.php on line 140 I wonder how to fix this error?
" If I looks more intelligence please increase my reputation."
You probably can't use PHP7. You should use PHP version which your application works.
And what version of CI do you use? You can find the version in `system/core/CodeIgniter.php`: https://github.com/bcit-ci/CodeIgniter/b...er.php#L37
My CI version is: 2.1.3
" If I looks more intelligence please increase my reputation."
You should start by upgrading to 2.2.6: https://codeigniter.com/userguide2/insta...ading.html
Once you've done that, you should go through the process to upgrade to 3.0.4: https://codeigniter.com/user_guide/insta...ading.html Most of the errors you've posted so far should be fixed by the combination of changing the driver to mysqli and upgrading to 2.2.6. In the long term, though, 2.x is no longer supported, so you would be better off continuing the upgrade path to 3.0.4. The main reason you should start by upgrading to 2.2.6, though, is that you may have an easier time getting your application to work in 2.2.6 than in 3.0.4, so you could at least get a large number of security fixes in place and make some progress. You can probably go straight from 2.1.3 to 2.2.6 following these instructions: https://codeigniter.com/userguide2/insta...e_226.html Note that the step to upgrade from 2.2.x to 3.0.0 is especially important when moving your application to 3.0.4: https://codeigniter.com/user_guide/insta...e_300.html (02-12-2016, 08:55 PM)davy_yg Wrote: Can anyone help me figure out This just experience, try change config file. change $db['default']['dbdriver'] = 'mysql'; to $db['default']['dbdriver'] = 'mysqli'; It's work for me (XAMPP with PHP 7 and CI old version)
LOL nothing new
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |