• Resolved AWB Collier

    (@puddy127)


    Hello,

    I have used Dynamic to top for a while, but recently it has started conflicting with SEO by Yoast plugin. When I activate dynamic to top, I get the following error on my XML Sitemap:

    XML Parsing Error: XML or text declaration not at start of entity
    Location: https://thebespokeflorist.com/sitemap_index.xml
    Line Number 2, Column 1:<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="https://thebespokeflorist.com/main-sitemap.xsl"?>
    ^

    When I turn off this plugin, the site map returns to normal. When you good the issue it says that it is caused by: “Your theme or one or more of your plugins are outputting whitespace”

    I have checked everything and it is this plugin that causes the issue. I have tried it with the standard 2013 theme from WP with only dynamic-to-top and SEO Yoast plugins activated and the issue exists.

    Please help.

    Alastair

    https://www.ads-software.com/plugins/dynamic-to-top/

Viewing 2 replies - 1 through 2 (of 2 total)
  • You need to make sure that the plugin does not have any whitespaces before <?php or after ?> in its files. Just check all the files that come with the plugin to double-check.

    Thread Starter AWB Collier

    (@puddy127)

    OK I found it: There were two extra spaces after the ?> in the file cssmin-v3.0.1.php in the /inc/ folder of the plugin. Removed those two spaces and the plugin worked perfectly.

    Will the be removed in a future update?

    Many thanks,

    Alastair

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘conflict with Yoast SEO’ is closed to new replies.