Wordpress comments - HELLLPPPP!!

11 replies
I'm setting up a new website for a client here with an associated blog here.

Both are separate installations of Wordpress.

The problem I'm having is that if you try to leave a comment on a blog post - instead of bringing up the comment form it is somehow calling up the template from the main blog and giving a Not Found error. ( You can tell the difference - the website template has a menu bar, the blog doesn't)

I'm stumped as to why. Does anyone have any ideas?
#comments #helllpppp #wordpress
  • Profile picture of the author radhika
    May be you mixed up the templates between two installations?

    Check permalink structure of blog installation.

    .
    Signature
    Follow up Autoresponder PRO :: 33% Discount!!
    FREE Upgrades! IMPROVED Email Deliverability!!
    {{ DiscussionBoard.errors[848456].message }}
    • Profile picture of the author rosetrees
      sorry - I don't quite understand what you mean by mixed up the templates. Could you perhaps explain a bit more?
      Thanks
      {{ DiscussionBoard.errors[848468].message }}
      • Profile picture of the author radhika
        Used the same header.php for both installations?

        Apart from that mix-up check your /blog settings and permalink structure.

        (if you have error log, sometimes it will tell you what could be the problem for 404 error)

        .
        Signature
        Follow up Autoresponder PRO :: 33% Discount!!
        FREE Upgrades! IMPROVED Email Deliverability!!
        {{ DiscussionBoard.errors[848477].message }}
        • Profile picture of the author rosetrees
          Zeurois - we decided against that as we want a static home page for the main site. If we do that - it's not obvious that there is also a blog part -so we decided on a separate blog.

          Rhadika - yes - the header.php will probably be the same - it's the standard one that comes with the template. The header image was uploaded separately to the image folder of each installation. I can't at the moment see how the permalink or blog settings make it call the wrong template.

          I'll check to see if I can find an error log.

          If all else fails, I'll try setting up a sub-domain rather than a subfolder.
          {{ DiscussionBoard.errors[848487].message }}
          • Profile picture of the author rosetrees
            Vegas Greg: I think it probably is an .htaccess problem. I'm not good at .htaccess - but I'll take a look.

            Thanks for everyone's suggestions
            {{ DiscussionBoard.errors[848490].message }}
            • Profile picture of the author rosetrees
              Thanks Rhadhika - changed permalink structure and it's working fine.
              {{ DiscussionBoard.errors[848510].message }}
              • Profile picture of the author radhika
                I guess this is .htaccess in your root directory. Right?

                Is there any .htaccess file under /blog/ ?

                If not, create one and copy the following code into /blog/.htaccess file:


                # BEGIN WordPress
                <IfModule mod_rewrite.c>
                RewriteEngine On
                RewriteBase /blog/
                RewriteCond %{REQUEST_FILENAME} !-f
                RewriteCond %{REQUEST_FILENAME} !-d
                RewriteRule . /blog/index.php [L]
                </IfModule>

                # END WordPress

                .
                Signature
                Follow up Autoresponder PRO :: 33% Discount!!
                FREE Upgrades! IMPROVED Email Deliverability!!
                {{ DiscussionBoard.errors[848548].message }}
          • Profile picture of the author The Pension Guy
            Originally Posted by rosetrees View Post

            - we decided against that as we want a static home page for the main site. If we do that - it's not obvious that there is also a blog part -so we decided on a separate blog.
            Not quite true...

            You create two "static" WP Pages - one with the content for the main home page and one empty.
            In Settings > reading you make the first one as your frontpage and the second one (maybe called "Blog") as your posts page.
            In your menu (if using wp_list_pages) they will show up as Home | Blog.
            Done.
            Your main page will display at example.com and your blog will be at
            example.com/blog
            Signature

            {{ DiscussionBoard.errors[848637].message }}
            • Profile picture of the author rosetrees
              Rhadika - yes you're right - I do only have one .htaccess file. I'll try adding one into the blog and changing the permalink structure again. Thanks.

              The Pension Guy - I didn't know that. Thanks. I'll try it.

              You guys are awesome - I've now got more than one way to achieve what I wanted to do - and a few happy minutes/hours to spend trying out the various options. Thanks everyone.
              {{ DiscussionBoard.errors[848739].message }}
  • Profile picture of the author zeurois
    Why not using one single WP installation for both site and blog ?
    {{ DiscussionBoard.errors[848476].message }}
  • Profile picture of the author VegasGreg
    I am guessing your permalink structure has interfered with both versions. You will need to also check your .htaccess files.

    It's so much easier to use one install for both sections.
    Signature

    Greg Schueler - Wordpress Fanatic... Living The Offline Marketing Dream...

    {{ DiscussionBoard.errors[848486].message }}

Trending Topics