max_allowed_packet is set in mysql config (my.cnf), NOT ON php side (ie. php.ini)
log into your sql database and check your max allowed packet size:
sql> SHOW VARIABLES LIKE 'max_allowed_packet';
In your my.cnf file, increase the size of max_allowed_packet to say 32MB (or greater than waht your database's settings are)
[mysqld]
max_allowed_packet=32M
restart your mysql services and try again
PS. You don't really need 32M ... 16M should be fine too..