WordPress.org

Support

Support » How-To and Troubleshooting » Can’t Switch to Code View and Posts Are Not Showing When Published

Can’t Switch to Code View and Posts Are Not Showing When Published

  • matterhorn
    Member

    @matterhorn

    When I publish a post, the post body is not showing. Title is.

    Also, I cannot switch to code view in either FF or IE.

    What could be the problem and what should I try to remedy?

    Also, it was working previously. In addition, I removed all recent posts to see if it might have been something included in the posts that created the problem.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • I am having the exact same problem
    I am wondering if it is not a php thing
    I use Hostgator… wonder if it is some Global allow
    or security issue that has been patched on the servers making
    Wordpress not work…

    Anyone else on Hostgator with same problem?

    mattcollins256
    Member

    @mattcollins256

    I’m also on Hostgator and having the same problem.

    mattcollins256
    Member

    @mattcollins256

    OK, for me this seems to have been a .htaccess issue.

    I was using mod_rewrite to redirect from mydomain.com to http://www.mydomain.com:

    RewriteCond %{HTTP_HOST} .
    RewriteCond %{HTTP_HOST} !^www.mydomain\.com [NC]
    RewriteRule (.*) http://www.mydomain.com/$1 [R=301,L]

    I added a couple of lines to my .htaccess file *before* this to exclude anything to do with wordpress (in the ‘blog’ directory) from the redirection:

    RewriteCond %{REQUEST_URI} ^/blog/.*
    RewriteRule .* – [L]

    RewriteCond %{HTTP_HOST} .
    RewriteCond %{HTTP_HOST} !^www.mydomain\.com [NC]
    RewriteRule (.*) http://www.mydomain.com/$1 [R=301,L]

    I haven’t quite figured out why that was causing problems, but this seems to have fixed the wordpress editing issue.

    That change meant that my blog urls wouldn’t be redirected to the www domain any more. To fix that, I installed Justin Shattuck’s very straightforward wordpress-www-redirect plugin:
    http://www.justinshattuck.com/wordpress-www-redirect-plugin/

    Everything seems to be working as intended now.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can’t Switch to Code View and Posts Are Not Showing When Published’ is closed to new replies.