WordPress -WordPress directing to Posts page (edit.php) instead of saving post

WordPress directing to Posts page (edit.php) instead of saving the post

Solution:

go to the following file:
/etc/mysql/my.cnf or /etc/my.cnf
add the following line under [mysqld] :

max_allowed_packet=32M

save the file and restart httpd & mariadb

systemctl restart mariadb
systemctl restart httpd