A CI application was returning me the following error, after the PHP been updated to 7.3.
I had to change a few lines at config/config.php
if(strpos($class, 'CI_') !== 0)
@include_once( APPPATH . 'core/'. $class . EXT );
@include_once ( APPPATH . 'core/'. $class . EXT );
Try to load the database library!
On your application/config/autoload.php
$autoload[‘libraries’] = array(‘database’,’session’);
This is how…
On mysql set your table(s)’s filed(s) to
$db['default']['char_set'] = 'utf8mb4';
$db['default']['dbcollat'] = 'utf8mb4_general_ci';
This is kinda it!
$this->db->or_like(array('sender' => $k, 'msg' => $k));
As seen on http://stackoverflow.com/questions/23254305/multiple-like-clause-codeigniter
I was having a 500 Internal Server Error…
nginx logs were showing me the following
2016/03/17 12:09:32 [crit] 31488#0: *11192 open() "/var/lib/nginx/tmp/client_body/0000000005" failed (13: Permission denied), client: 84.91.XXX.XXX, server: host.com, request: "POST /trades_edit/edit_trade HTTP/1.1", host: "host.com", referrer: "https://host.com/trades_edit/125"
chown -R www-data:www-data /var/lib/nginx
On a new deployment of a Codeigniter tool that I’v made, I got the following error, after installed it in more than 10 different servers… my own servers and clients…
Message: Only variable references should be returned by reference
Line Number: 257
This only happens with PHP >= 5.6….
We need to tweak /system/core/Common.php Line number 257
Change this line from
return $_config =& $config;
$_config =& $config;
I’v stopped using CodeIgniter for 7 months, but I maintaining a product that was developed under CI.
Today I’v got a error saying “MySQL server has gone away” after a long time PHP execution.
I’v managed to solve it by, on the model that was getting me the error, *reconnect* to the database .
Before the *command* i’v added $this->db->reconnect();
Hope it helps anyone out there.
Read all points at http://www.websanova.com/blog/laravel/10-reasons-why-laravel-is-better-than-codeigniter
We have to load the database library!
Open your application/config/autoload.php and on $autoload[‘libraries’] add database.