“MySQL server has gone away” with CodeIgniter and MySQL
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...
View ArticleCodeigniter – Message: Only variable references should be returned by reference
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… Severity: Notice Message: Only...
View Article500 Internal Server Error while uploading files
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...
View Articlecodeigniter – sql with multiple like’s with OR
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
View Articlecodeigniter + php + mysql – emojis 😉
This is how… On mysql set your table(s)’s filed(s) to utf8mb4_general_ci. codeigniter config/database.php $db['default']['char_set'] = 'utf8mb4'; $db['default']['dbcollat'] = 'utf8mb4_general_ci';...
View ArticleSeverity: Notice Message: Undefined property: Welcome::$db
Try to load the database library! On your application/config/autoload.php$autoload[‘libraries’] = array(‘database’,’session’);
View Articlecodeigniter Message: __autoload() is deprecated, use spl_autoload_register()...
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 function __autoload($class) { if(strpos($class, 'CI_') !== 0)...
View ArticleYour server does not support the GD function required to process this type of...
This is how I’v solved this issue, in a loop…. FROM $this->load->library('image_lib', $resize_config); if ( ! $this->image_lib->resize() ) { echo $this->image_lib->display_errors();...
View Articlecodeigniter – weird Message: syntax error, unexpected end of file
An uncaught Exception was encountered Type: ParseError Message: syntax error, unexpected end of file I had a closing condition with <?}?> had to change to <?php }?>
View ArticleCodeigniter – The each() function is deprecated. This message will be...
This is in fact an PHP 7.3 upgrade compatibility with older PHP scripts.This is a quick fix for CodeIgniter. Message: The each() function is deprecated. This message will be suppressed on further...
View Article