Can not create a New Page on Drupal

Problem

Can not create a new page on drupal

Solution

If you get this error these are the thing that you can do to solve the issue: 1) On dev enabled the error messages for drupal i.e.

drush vset error_level 1

Then observed what happens when I was trying to add a node then it showed me the error saying that it was struggling to create a vid id on node table 2) I went on node table and remove the entire row that had 0 as vid id 3) I did the same on live db an both dev and live and worked.