Hal ini terjadi ketika saya mengganti versi PHP dalam xampp saya. Pada awalnya saya menggunakan xampp 1.70 dan codeigniter 1.7 Namun ketika saya mengganti xampp menjadi versi 1.73 timbul beberapa error. Hal ini terjadi karena ada bebrapa perubahan di PHP 5.3 dan framework belum bisa mengatasi perubahan itu. Untuk mengatasi hal itu kita harus melakukan beberapa perubahan diantaranya
Deprecated: Assigning the return value of new by reference is deprecated in system\codeigniter\Common.php on line 130ubah
1
| $objects [ $class ] =& new $name (); |
1
| $objects [ $class ] = new $name (); |
Deprecated: Assigning the return value of new by reference is deprecated in \system\codeigniter\Common.php on line 136Ubah
1
| $objects [ $class ] =& new $name (); |
1
| $objects [ $class ] = new $name (); |
Message: Function set_magic_quotes_runtime() is deprecatedubah
1
| set_magic_quotes_runtime(0); |
1
| @set_magic_quotes_runtime(0); |
A PHP Error was encountered Severity: 8192 Message: Assigning the return value of new by reference is deprecated Filename: libraries/Loader.php Line Number: 255ubah
1
| $CI ->dbutil =& new $class (); |
1
| $CI ->dbutil = new $class (); |
A PHP Error was encountered Severity: 8192 Message: Assigning the return value of new by reference is deprecated Filename: database/DB.php Line Number: 133Ubah
1
| $DB =& new $driver ( $params ); |
1
| $DB = new $driver ( $params ); |
The url has disallowed CharacterUbah system/libraries open URI.php line 189
if ( ! preg_match("|^[".preg_quote($this->config->item('permitted_uri_chars'))."]+$|i", rawurlencode($str)))Menjadi
if ( ! preg_match("|^[".($this->config->item('permitted_uri_chars'))."]+$|i", rawurlencode($str)))untuk error fungsi date time anda harus set tanggal di php.ini dengan cara mengaktifkan
date.timezone =’Asia/Krasnoyarsk’;
0 comments:
Post a Comment