Open gloobus opened 2 years ago
"MySQL server has gone away" is usually a connection error. Truthfully I don't remember the reason for this, I think it was to account for custom selects.
This code has been here for over 10 years though so my best guess is that it's a coincidence that this fixed it and there was a connection error. It is possible that a newer MySQL version is failing on this though.
CodeIgniter v3 + CodeIgniter-Ion-Auth PHP 7.4 MariaDB 5.5.68
CodeIgniter log:
The problem was solved in the following way, Ion_auth_model.php:
https://github.com/benedmunds/CodeIgniter-Ion-Auth/blob/dc05585bb35f636b2d7cdc1959fcf5193a509ac4/models/Ion_auth_model.php#L1400
Why is ID as ID displayed in this SELECT? ID from the user table is still returned through <*>. After I removed the $this->tables['users'].'.id as id' output, the errors stopped