Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

"Search Category" addon breaks causes error on sitemap / breaks sitemap.

ProsperProsper ✭✭
edited November 2014 in Vanilla 2.0 - 2.8

I just found out that "Search Category" caused error message on sitemap on vanilla version 2.1.5.

Error message is below:

This page contains the following errors:
error on line 2 at column 6: XML declaration allowed only at the start of the document
Below is a rendering of the page up to the first error.

End of error message

Please could you fix the "Search Category" addon to stop causing error on sitemap.
If "Search Category" is disabled sitemap becomes okay.

Tagged:

Comments

  • Should work if you remove the ?> at the end of class.searchcategory.plugin.php

    Maybe also report the issue here:
    https://github.com/francosolerio/Search-Category/issues

  • @Bleistivt - thanks. Problem is solved.

  • @Prosper said:
    Bleistivt - thanks. Problem is solved.

    As Belistivt indicated,

    so any time there is a closing tag ?> at the end of any file in a plugin, it can cause rss and xml errors, if you run into the problem again.

    plugin files should Never be closed with ?> because you can inadvertently add unwanted spacing.

    You will also notice none of the core files ever have a closing php tag as well.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • @peregrine - thank you for the info. Yes the rss also has error. I will have to check the plugins for ?>.

  • peregrineperegrine MVP
    edited November 2014

    @Prosper said:
    peregrine - thank you for the info. Yes the rss also has error. I will have to check the plugins for ?>.

    note the plugins can have ?>

    it just shouldn't be the last two characters in the file.

    see: bleistivt's comment: http://vanillaforums.org/discussion/comment/215623/#Comment_215623

    http://vanillaforums.org/discussion/comment/215775/#Comment_215775

    it may also be a result of something else on your site. you have lots of other knick-knacks that perhaps contribute to issue.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • ProsperProsper ✭✭
    edited November 2014

    I have searched through all the plugins and deleted ?> at the end of files but still got rss error below:

    This page contains the following errors:
    error on line 23 at column 190: Opening and ending tag mismatch: link line 0 and channel
    Below is a rendering of the page up to the first error.

    Any idea on how to solve this?

  • peregrineperegrine MVP
    edited November 2014

    try entering your forum url in this link

    http://validator.w3.org/

    you will see a few errors concerning your marquee, etc. try turning that off first to see if you still have problem

    then proceed with...

    here is is how I would troubleshoot.

    change to default theme, assuming you didn't modify it.\
    see if feeds work...

    if not ...
    disable all plugins via dashboard
    see if feeds work...

    if not ..

    disable all widgets, banners, pockets, messages, extra stuff you added that isn't part of the vanilla core.

    if problem still occurs
    disable any applications besides vanilla and conversations.

    if not ..
    if you have everything disabled via dashboard. and problem is still occurring.

    I can look at the site if I am online, but i will only look at things after all is disabled as above.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

Sign In or Register to comment.