WordPress.org

Ready to get started?Download WordPress

Forums

Can't Switch to Code View and Posts Are Not Showing When Published (4 posts)

  1. matterhorn
    Member
    Posted 7 years ago #

    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!

  2. cscot
    Member
    Posted 7 years ago #

    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?

  3. mattcollins256
    Member
    Posted 6 years ago #

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

  4. mattcollins256
    Member
    Posted 6 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic