LifePress
LifePress copied to clipboard
unserialize(): Error at offset
Hello! Yes. I still use Lifepress. I still keep my site updated and running. Currently getting this error message on pages of my admin containing twitter items:
A PHP Error was encountered Severity: Notice Message: unserialize(): Error at offset 19 of 37 bytes Filename: models/item_model.php Line Number: 77 Backtrace: File: /home/ME/MYSITE/stream/application/models/item_model.php Line: 77 Function: unserialize File: /home/ME/MYSITE/stream/application/models/item_model.php Line: 167 Function: _process File: /home/ME/MYSITE/stream/application/libraries/lifepress.php Line: 348 Function: get_all_items File: /home/ME/MYSITE/stream/application/controllers/admin/items.php Line: 52 Function: get_items_page File: /home/ME/MYSITE/stream/index.php Line: 251 Function: require_once
The offending line in item_model is: return $this->db->get_where('feeds', array('feed_status' => 'active'))->num_rows();
Problem solvers please help :-)
Does the tweets where you get this error have emoji's in them by any chance?
That's where I get errors like that, I'd been planning on converting the tables from utf8 to utf8mb4 so emoji's work on my site, it's kind of cumbersome, when I do I'll add it to a migration file.