title: Invalid post type - wordpress
body: <p>I have a big problem and i dont know how to solve it. I have noticed that at dashboard when i pressed on "all posts" i get this ugly error:
  "Invalid post type"
  nothing more nothing less</p>
  
  <p>I have tried a lot of things:
  1. Update to latest version
  2. Roll back to 3.9.1
  3. Deactivated/activated all plugins
  4. Deactivated custome theme
  5. Modify edit.php locate in wp-admin folder and set this</p>
  
  <blockquote>
    <p>$typenow = 'post';</p>
    
    <p>if ( ! $typenow )</p>
    
    <blockquote>
      <p>wp_die( __( 'Invalid post type' ) );</p>
    </blockquote>
  </blockquote>
  
  <p>After this modification the "invalid post type" error was gone but when I was trying to modify a post at dashboard I noticed that the right column (category select, preview etc) was missing.
  Does anyone knows how to fix this problem? Any ideas?
  Thank you in advance,</p>
  
  <p>P.S: 
  Please follow those links to see what I am trying to explain
  <a href="https://dl.dropboxusercontent.com/u/5502709/wp.png" rel="nofollow">https://dl.dropboxusercontent.com/u/5502709/wp.png</a>
  <a href="https://dl.dropboxusercontent.com/u/5502709/wp1.png" rel="nofollow">https://dl.dropboxusercontent.com/u/5502709/wp1.png</a></p>