Node being set to unpublished when edited

2018-10-19 12:59:08

When I create content of any content type in Drupal, I set the status to Published. On editing it, the checkbox that says whether it has been published is unchecked by default and even if I check it again, the node status is set to 0 (unpublished).

There are no custom modules in the site and I can verify from the database that the status is indeed being set to 0 on every save, so it's not just a visualisation issue.

I found some similar problem here that says to increase max_input_vars on php.ini but this solution didn't work for me. Any ideas?