Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    This seems to be a conflict between Photon URLs and the WP RSS Images plugin you use on your site.

    You could try to solve the issue by not applying Photon in your RSS feeds. Try adding the following in your theme’s functions.php file, or in a functionality plugin:

    /**
     * Do not use Photon in RSS feeds.
     */
    function jeherve_no_photon_in_feed() {
      if ( is_feed() ) {
        add_filter( 'jetpack_photon_skip_image', '__return_true' );
      }
    }
    add_action( 'wp', 'jeherve_no_photon_in_feed' );

    Let me know how it goes.

    Jeremy,
    We have run into this validation issue also after moving to SSL everywhere and we are not using the WP RSS Images plugin. I tried adding your code to our site’s custom plugin file, but we still seem to be getting Photon images in our RSS feeds. The feed Url is here:
    https://www.macobserver.com/feed/everything

    Oh and here is our Feed Validator error

    OK, so we have to disable Photon completely to deal with this issue, so my above links will look fine to you. If and when you get to this we can turn it back on if you need us to, just so you can get a look.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    I’ll be happy to take a look, if you can enable Photon again for a few minutes. Could you also let me know what other plugins are currently active on your site, so I can try to reproduce the issue on my end?

    Thanks!

    Jeremy, Any way we can coordinate the timing on this? If we enable the plug-in it breaks our RSS feeds in production which are pretty critical for us. Happy to help in the testing, but we also still need to run our site.

    Here’s the list of installed plug-ins:
    Advanced Custom Fields PRO
    Akismet
    Basic Comment Quicktags
    Edit Author Slug
    Google CSE
    Gravity Forms
    Jetpack by WordPress.com (obviously)
    WooCommerce
    WooCommerce Authorize.net CIM Gateway
    WooCommerce Subscriptions
    WordPress Social Login
    Toast SEO
    Yoast SEO: News

    We also have a pretty large custom theme plug-in that I coded. I can coordinate getting you a copy if necessary, but you’d probably also need our ACF export file.

    • This reply was modified 8 years, 2 months ago by maccast.

    We actually made you a snapshot of the feed with the errors in it and put it up here:

    https://www.macobserver.com/temp/tmo-photon-ssl-error-feed.xml

    Let me know what else you might need from me to test this.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    That’s interesting. I see nothing wrong with the encoding of those images, but I suspect some feed validators would expect the & entities to be transformed into &.

    The code snippet I posted earlier is a good way to work around the problem, but I think we’ll need to figure out what’s adding the media:content tags to your RSS feeds to be able to adapt the code snippet to make sure Photon is excluded from there.

    Would you be wiling to deactivate each one of your plugins, one at a time, starting with Yoast SEO: News, to see which one adds the tag to your feeds?

    If you think the tag was added via your custom theme plugin, you could look for media in that file, to see if the tag is there.

    Let me know how it goes.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Photon cause RSS error’ is closed to new replies.