I’m getting a message on import/export settings page that says, “Feed not found.” (The feed certainly exists.)
Screenshot is below.
Please advise?
Josh Mason-Barkin
Hi Josh,
Are you using WordPress 4.6? There is a known bug with 4.6.0 and 4.6.1 which may cause this issue: https://core.trac.wordpress.org/ticket/37839 and which should be fixed in the 4.6.2 release.
Stephen Harris
This is a very very big problem, because I’m stuck with a non-working calendaring system between now and whenever 4.6.2 is released. (I’m desperate enough that I tried the beta release of 4.6.2. Didn’t work. Not sure this fix has been added to the beta, however.)
- Are you sure this is the problem?
- Are there any workarounds to get it to work before it’s fixed?
- Any other suggestions?
Josh Mason-Barkin
Hi Josh,
I’m fairly confident that’s the problem. I was able to fetch the feed in the browser, and it looked well formatted. The error you describe would only happen if it was not able to read the file at all or it was not formatted correctly. It’s also a known issue with 4.6.0 and 4.6.1.
The ticket says they’ll include in 4.6.2, but the bug is actually in a third-party library that was used from 4.6.0, and doesn’t appear they’ve updated that in the nightly version yet.
There are a couple of workarounds:
- Revert to 4.5.4
- Manually fix the files
(2) is actually very easy. It requires editing two lines and changing the regular expression match from:
'/^([0-9a-f]+)[^\r\n]*\r\n/i'
to
'/^([0-9a-f]+)(?:;(?:[\w-]*)(?:=(?:(?:[\w-]*)*|"(?:[^\r\n])*"))?)*\r\n/i'
The lines to edit are in wp-includes/class-requests.php
(752 and 760): https://github.com/WordPress/WordPress/blob/3c814b5468697712444d103150baa37ab6f474c7/wp-includes/class-requests.php#L752-L760
There is a link to the pull request in the third-party library in the above trac ticket. In that someone points out that no decoding is necessary when using curl so you could just return $data;
early in the decode_chunked()
method.
Stephen Harris