WordPress.org

Make WordPress Core

Opened 12 months ago

Closed 12 months ago

Last modified 12 months ago

#47703 closed defect (bug) (worksforme)

RSS Widget cannot download https URLs

Reported by: slyall Owned by: audrasjb
Milestone: Priority: normal
Severity: normal Version:
Component: Widgets Keywords:
Focuses: Cc:

Description

The RSS Widget downloads RSS feeds to display a summary on a wordpress site.

It is currently limited to downloading http URLs. It will not work with https URLs or http URLs that redirect to https.

As websites increasing become https-only the widget works with fewer of them.

For example the 3 sample feeds (wordpress.com, nytimes.com and amazon.com) on the documentation page:

https://en.support.wordpress.com/widgets/rss-widget/

now all redirect to https and do not work.

The lack of https support is documented on the widgets page:

"Feed URLs that start with “https://” will not work on our RSS Widget."

but this was less of a problem in the past.

Attachments (3)

Capture d’écran 2019-07-14 à 22.46.51.png (42.2 KB) - added by audrasjb 12 months ago.
Testing HTTPS feed URL
Capture d’écran 2019-07-14 à 22.49.13.png (48.5 KB) - added by audrasjb 12 months ago.
Testing HTTP feed on the same URL which is redirecting to HTTPS
Capture d’écran 2019-07-14 à 22.47.12.png (55.2 KB) - added by audrasjb 12 months ago.
Both are working fine

Download all attachments as: .zip

Change History (7)

#1 @audrasjb
12 months ago

  • Owner set to audrasjb
  • Status changed from new to reviewing
  • Version trunk deleted

@audrasjb
12 months ago

Testing HTTPS feed URL

@audrasjb
12 months ago

Testing HTTP feed on the same URL which is redirecting to HTTPS

@audrasjb
12 months ago

Both are working fine

#2 @audrasjb
12 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from reviewing to closed

Hi, welcome to WordPress Core Trac and thanks for opening a ticket,

I tested the issue and everything looks good on my side.
It's working with both https and http in case http is redirecting to https (see screenshot above).

Please note that you linked a WordPress.com documentation URL. On WordPress.org Trac, we are only working on the self hosted WordPress.org open-source project. Their documentation can be out of date.

Closing as worksforme. Feel free to reopen the ticket if you think I missed some use case :-)

Thanks,
Jb

#3 @slyall
12 months ago

I did some further investigation and my site was broken for both http and https. I had jumped to the conclusion that https was the problem.

Actual problem was that I didn't have php-xml installed.

Setting up php7.2-xml (7.2.19-0ubuntu0.18.04.1) ...
Creating config file /etc/php/7.2/mods-available/dom.ini with new version
Creating config file /etc/php/7.2/mods-available/simplexml.ini with new version
Creating config file /etc/php/7.2/mods-available/wddx.ini with new version
Creating config file /etc/php/7.2/mods-available/xml.ini with new version
Creating config file /etc/php/7.2/mods-available/xmlreader.ini with new version
Creating config file /etc/php/7.2/mods-available/xmlwriter.ini with new version
Creating config file /etc/php/7.2/mods-available/xsl.ini with new version

Once that was installed both https and http worked correctly.

Sorry for wasting your time on this.

#4 @audrasjb
12 months ago

No worries @slyall !
And thank you very much for the follow up :-)

Note: See TracTickets for help on using tickets.