Not allowed to view the pages after upgrade
Just had the same problem, but found the answer on this page:

WordPress - Problems trying to go back to CiviCRM 4.7.17 from 4.7.19

I had previously installed CiviCRM but wanted to remove it and start from scratch, but I hadn't deleted the civicrm folder in /wp-content/uploads/