Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not Working on WordPress Multisite #16

Open
alexclst opened this issue Jun 6, 2017 · 5 comments
Open

Not Working on WordPress Multisite #16

alexclst opened this issue Jun 6, 2017 · 5 comments

Comments

@alexclst
Copy link

alexclst commented Jun 6, 2017

The JSON Feed at /feed/json only shows up on the primary site in a WP Network. On all other sites in a network the feed URL comes up with a 404 error. The feed works just fine on the primary site, and on single-site WP installs, but does not work at all on the secondary sites of a multisite install.

@alexclst
Copy link
Author

alexclst commented Jun 6, 2017

I should clarify that not Network Activating the plugin and activating on individual sites works. But this plugin really should sense MU WP and provide the feeds for all sites on a network if activated network-wide.

@danielpunkass
Copy link
Collaborator

Good idea! I agree it should work that way if activated network-wide. Thanks for the bug report.

@jeremyfelt
Copy link

It's likely this is due to how rewrite rules and plugin activation are handled in multisite. FWIW, it's a complete pain to flush/regenerate rewrite rules or do anything on each site in a network on plugin activation.

A bit of background here that might help potential solutions to this problem: https://jeremyfelt.com/2015/07/17/flushing-rewrite-rules-in-wordpress-multisite-for-fun-and-profit/

If nothing else, that will help with what not to do. 😄

It may also be worth just documenting that rewrite rules need to be flushed. Multisite admins can use approaches such as https://iandunn.name/2015/04/23/flushing-rewrite-rules-on-all-sites-in-a-multisite-network/ to make sure things have been flushed.

Also related: https://core.trac.wordpress.org/ticket/28694

@danielpunkass
Copy link
Collaborator

Note to self/us: Notify @LondonAir when this is fixed. https://twitter.com/LondonAir/status/931546752179671040

@danielpunkass
Copy link
Collaborator

Thanks @jeremyfelt for the analysis!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants