Support » Plugin: WP Content Copy Protection » Plugin is breaking RSS feeds

  • Resolved patopaiar

    (@patopaiar)


    Hi,

    We are helping a client that is using your plugin in their site figure out why their default WordPress RSS Posts feeds are broken. Namely, there are over 100 blank spaces before the opening tag.

    This is causing them issues now that they want to make use of the RSS feed and potentially have readers with problems when wanting to Subscribe.

    With WordPress 5.4, no plugins activated except WP Content Copy Protection, and TwentyTwenty theme, feeds are broken.

    When we deactivate WP Content Copy Protection, feeds are correct and healthy.

    Will you be able to check on this, and fix the problem if confirmed?
    Could you provide any guidance to fix it ourselves if it’s not something you can take care of?

    Would be great to have your answers, thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @patopaiar,

    if possible, please check if this change will temporarily solve the problem for you:

    Edit
    /includes/class-protection.php

    and comment out this line (line 43) :
    add_action( 'wp', [ __CLASS__, 'add_source_padding' ] );

    (this will dismiss the 500 blank lines while html output, not shure if this also is the reason for the feed)

    Regards

    Thread Starter patopaiar

    (@patopaiar)

    This was exactly it, although instead of commenting it out, better to attempt a remove_action to avoid modifying the plugin’s files directly.

    Thank you very much! Marking this as resolved

    Thank you @patopaiar, i’m not very familiar with the hook and filter technique of wordpress yet and didn’t think it was that easy at that moment when im writing to you.

    Great, then I have learned something again from you!

    Cheers!

    Thread Starter patopaiar

    (@patopaiar)

    Let me know if you need help @wp-henne 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Plugin is breaking RSS feeds’ is closed to new replies.