WordPress.org

Ready to get started?Download WordPress

Forums

www.shrewdgardener.com/post or /post/category produces partial HTML (9 posts)

  1. ElectricOwl
    Member
    Posted 5 years ago #

    I have an issue where a url ending /post or even /post/123 and in my case /post/category just produces a partial page of html as text.

    Permalink custom structure is: /post/%post_id%/%postname%

    Visiting the link produces the following:

    title='1 topic' rel="tag" style='font-size: 8pt;'>spiders
    </div></p>
    <p> </div></p>
    <p><hr />
    <div id="footer" role="contentinfo">
    <!-- If you'd like to support WordPress, having the "powered by" link somewhere on your blog is the best way; it's our only promotion or advertising. -->
    <p>
    The Shrewd Gardener is proudly powered by
    WordPress

    Entries (RSS)
    and Comments (RSS).
    <!-- 19 queries. 0.202 seconds. -->
    </p>
    </div>
    </div></p>
    <p><!-- Gorgeous design by Michael Heilemann - http://binarybonsai.com/kubrick/ --></p>
    <p> </body>
    </html></p>
    <p>

  2. esmi
    Forum Moderator
    Posted 5 years ago #

    Site url?

  3. ElectricOwl
    Member
    Posted 5 years ago #

    example.com/post
    example.com/post/category
    example.com/post/123 where 123 does not exist as a post

    all produce the quoted code above. Partial HTML.

    Im new to wordpress, but not PHP, and don't know where to start debugging it.

  4. esmi
    Forum Moderator
    Posted 5 years ago #

    I meant - can you post a link to your site, please?

  5. ElectricOwl
    Member
    Posted 5 years ago #

    It's in the post title.

    http://www.shrewdgardener.com

    Thanks.

  6. esmi
    Forum Moderator
    Posted 5 years ago #

    My best guess is that there's a problem with your 404/Post not found code. Do you have a custom 404.php file? Have you edited the single.php or index.php files?

  7. ElectricOwl
    Member
    Posted 5 years ago #

    I have succeeded in doing some debugging on this but haven't got all the way...

    I'm using Dynamic Sidebar and the 404 page does not render at all, just a blank screen, no HTML.

    With the Tag Widget (the default WP one) the issue described above occurs and something in the tag widget is causing the output of HTML as text just before it prints its last entry.

    So, I've got as far as a blank screen but no further!

    Does WP have a proper bug reporting system instead of the forum - which is great by the way!!

  8. esmi
    Forum Moderator
    Posted 5 years ago #

    There's Trac for bug reporting but I'm not convinced that this is a bug yet. There are other factors that could be creating this problem. For example, have you tried:

    - deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the default theme to rule out any theme-related problems.

    - resetting the plugins folder by FTP or phpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

  9. ElectricOwl
    Member
    Posted 4 years ago #

    None of the above resolved the issue which is definitely related to the dynamic sidebar code. The Tags widget breaks the Error page.

    I haven't yet tracked down why the bug is occurring as I'm still finding my way round the WordPress architecture. When I do I'll submit it on TRAC.

Topic Closed

This topic has been closed to new replies.

About this Topic