WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Visitors appear in MyBlogLog but not in Stats !!! (6 posts)

  1. imagiscapeca
    Member
    Posted 6 years ago #

    Using the [?official?] WordPress Stats plugin, version 1.1.1, by Andy Skelton, visitors appear in MyBlogLog but not in Stats.

    The API is entered (correctly).
    The Stats tab on the plugins page says: "The WordPress.com Stats Plugin is configured and working."

  2. imagiscapeca
    Member
    Posted 6 years ago #

    I see on the FAQs page that I need to put
    <?php wp_footer(); ?> just before </body> on [all] my templates.

    Can I use <?php get_footer()' ?> instead?
    That's what's in my theme.

    <?php wp_footer(); ?> gives me an Internal Server Error.

    Can I have </center></div> after the footer call?
    My theme needs it.

    The note that <?php wp_footer(); ?> is required just before </body> ought to be on the installation page, and the plugin tab should not say that the plugin is configured and working without warning that we have to edit our theme templates.

  3. moshu
    Member
    Posted 6 years ago #

    Can I use <?php get_footer()' ?> instead?
    That's what's in my theme.

    NO! That's a completely different thing.

    <?php wp_footer(); ?> gives me an Internal Server Error.
    Then you are putting it in the wrong place: it should be IN your footer.php before the closing </body> tag... since the footer.php file is called by ALL your pages - it will be everywhere.

    Actually, a decently coded theme (more exactly, its footer.php file) SHOULD have that line.

  4. imagiscapeca
    Member
    Posted 6 years ago #

    Thanks - that's a needed clarification.

    Ok, I moved everything after <?php get_footer(); ?> in my index.php template to the end of footer.php.

    </div>
    <?php wp_footer(); ?>
    </body>
    </html>

    It half-ate my footer! The text and the butterflies are there, but the css-invoked background image is not, and nor are the css-ruled margins applied.

    http://www.imagiscape.ca/blog/

    Help
    Please
    Thank you.

    (P.S. Yes, I will remove the closing tags from my other templates, now they are in the footer.)

  5. moshu
    Member
    Posted 6 years ago #

    1. (P.S. Yes, I will remove the closing tags from my other templates, now they are in the footer.)
    Explain this - I don't get it.

    2. You must be doing something wrong. That wp_footer code shouldn't cause any visible change in your layout.

    3. Paste your footer.php to http://wordpress.pastebin.ca and post back with the address/url.

  6. imagiscapeca
    Member
    Posted 6 years ago #

    RESOLVED!

    I was sure I had no extra /div tags, but I did. I found the /div tag that closed my div pre-maturely.

    (I use WinSCP with SciTE 1.74 or Notepad++ but I have not found how to automatically find extraneous/incomplete tags, except by eye-balling it (looking). Is there a way? Oh - perhaps HTML Tidy?)

    To explain #1 (see previous post),
    since I now have
    </div><?php wp_footer(); ?></body></html> in my footer,
    I removed the closing tags </div></body></html> that were in all my template files (except comments and sidebar and header).

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags