As the title states, I've encountered a weird problem with hook_entity_insert():
Array ( [:db_update_placeholder_0] => 1 [:db_update_placeholder_1] => 127.0.0.1 [:db_update_placeholder_2] =>
I get a error screen, and this is what's displayed when I attempt to use ksm($entity).
I also checked the logs:
Warning: Error while sending QUERY packet. PID=18801 in Drupal\Core\Database\Statement->execute()....
Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: CREATE TABLE {cache_config}....
This is troubling, as the custom module I'm developing heavily relies on nodes.
I thought maybe this was an issue with the DB, and so I used a new one, but the problem persist. I'll be attempting to create a new Drupal project using the same modules.
Therefore I'm asking if anyone else have encountered anything similar to this and found a solution?