SomeRandomGuy
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: YouTube Embeds No Longer WorkingThe URL not being covered by the certificate magically resolved itself. I’m not sure what was causing it. No mixed content as far as I can see.
Still, the embeds refuse to work.
Forum: Fixing WordPress
In reply to: YouTube Embeds No Longer WorkingSo, apparently, even on a valid request, that response is sent. The test site has the same output but embed is successful. It’s the admin account and both have full permissions to edit posts. Not sure if there is some other kind of misconfiguration.
The only difference I can see is that the failed request results with a 404. The proxied URL is still processed over https however isn’t covered by the SSL certificate.
Ex.
Successful Embed
https://domain.com/wp-json/oembed/1.0/proxy?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DZJ4DLIuxjvw&_locale=user still responds with
{"code":"rest_forbidden","message":"Sorry, you are not allowed to make proxied oEmbed requests.","data":{"status":401}}Failed Embed
https://domain.com/wp-json/oembed/1.0/proxy?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DZJ4DLIuxjvw&_locale=user responds with
The webpage at https://domain.com/wp-json/oembed/1.0/proxy?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DZJ4DLIuxjvw&_locale=user might be temporarily down or it may have moved permanently to a new web address.and
{"code":"oembed_invalid_url","message":"Not Found","data":{"status":404}}Test site is running the same headers.
It’s got to be something blocking the request from reaching the endpoint?
Not sure how to verify the security token.
- This reply was modified 5 months, 2 weeks ago by SomeRandomGuy.
- This reply was modified 5 months, 2 weeks ago by SomeRandomGuy.
- This reply was modified 5 months, 2 weeks ago by SomeRandomGuy.
- This reply was modified 5 months, 2 weeks ago by SomeRandomGuy.
Forum: Fixing WordPress
In reply to: YouTube Embeds No Longer WorkingBest I have right now is the error message.
{"code":"rest_forbidden","message":"Sorry, you are not allowed to make proxied oEmbed requests.","data":{"status":401}}There are some scenarios in the past that may help the developers.
https://github.com/WordPress/gutenberg/issues/22104
https://ww.wp.xz.cn/support/topic/twitter-oembed-error-after-wp-6-4-update/
Yes, the consensus seemed to be that it was/is a core issue, not Gutenberg.
https://github.com/WordPress/gutenberg/issues/51119
Ticket was issued, of course this is related to X, which works fine for me now.
https://core.trac.ww.wp.xz.cn/ticket/59142
I can try the solution that worked at https://support.advancedcustomfields.com/forums/topic/youtube-oembed-field-not-working/ regarding YouTube.
Although not sure it is still relevant or applicable to my setup.
I will try my best to reproduce it, although, as you said, the playground doesn’t let me alter web server/DNS/headers/etc. which could certainly be the reason.
Forum: Fixing WordPress
In reply to: YouTube Embeds No Longer WorkingUPDATE: Been pulling my hair out trying to figure out how to fix this since I have nearly a thousand articles written and quite a lot of them now have dysfunctional YouTube embeds.
Steps taken
- Disabling all plugins
- Switching to default Twenty Twenty Five theme
- Disabling DNS (Cloudflare)
- Removing security headers
- Disabling all caching plugins
- Disabling object cache and backend (Memcached/Redis)
- Clearing server cache (NGINX – Apache/NGINX)
- Reinstalling WordPress 6.9
- Downgrading to WordPress 6.8
- Using third party plugins (Such as Better YouTube Embed Block and EmbedPress) which do work
I was able to reproduce the issue with my old Memcached drop-in on a test environment but not with Redis, although the issue persists on the production environment with Redis.
For some reason, the embeds were restored for a moment when removing the X-Content-Type header but then they failed again and I haven’t been able to reproduce the results again either. This issue does not occur on the test environment.
The web console/developer tools show that the oEmbed API is failing to retrieve proxied content for the embeds from YouTube and removing proxy from the URL does allow it to show up, but this can’t be implemented sitewide or at the very least, I don’t know how as the proxy seems to be ingrained in WordPress’s core.
Search engines pull up some similar events of this happening with older WordPress versions which were resolved with updates or figuring out where a conflict was, although there’s not much else to go on.
Example 1:
https://ww.wp.xz.cn/support/topic/not-allowed-to-make-proxied-oembed-requests/
Example 2:
https://siteorigin.com/thread/unable-to-add-video-could-be-wp-json-rest-api/
If anyone with more skills can help a brother out, that’d be great. Otherwise, I think a bug submission with Gutenberg on GitHub is the right step.
Will update if I find a solution.
- This reply was modified 5 months, 3 weeks ago by SomeRandomGuy.
- This reply was modified 5 months, 3 weeks ago by SomeRandomGuy.
Forum: Plugins
In reply to: [Akismet Anti-spam: Spam Protection] Too Many Redirects IssueI’m assuming it is/was some kind of conflict although I can’t reproduce it anymore. I guess since that’s the case, the issue is resolved.
At least for now.
Thanks for the help though!
Forum: Fixing WordPress
In reply to: YouTube Embeds No Longer WorkingSo, it was looking like the
X-Content-Type-Options: nosniffheader which is implemented on both sites was causing oEmbed to fail and that the object cache was not the real culprit. After disabling the header, I got the videos to embed, but they stopped working again.Browser console shows that proxied oEmbed requests are failing and returning a 404.
For example:
domainname.tld/wp-json/oembed/1.0/proxy?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DTRikFgD2TyY%26themeRefresh%3D1&_locale=user
So, I disabled my CDN (Cloudflare) and disabled any caching plugins to see if that made a difference, of which it didn’t.
I also tested with no Referrer policy as well. Still nothing.
Edit: Removing proxy from the URL works.
- This reply was modified 5 months, 3 weeks ago by SomeRandomGuy.
Forum: Fixing WordPress
In reply to: YouTube Embeds No Longer WorkingI decided to go ahead and drop Memcached in place of Redis, was long overdue anyways. The embeds still fail on both servers/sites with the currently maintained plugin/drop-in.
https://ww.wp.xz.cn/plugins/redis-cache/
Are you able to reproduce this? My test environment did.
Forum: Fixing WordPress
In reply to: YouTube Embeds No Longer WorkingI found the conflict. It is the Memcached Object cache drop-in provided by https://ww.wp.xz.cn/plugins/memcached-redux/
It may also be Memcached in whole that is preventing embeds, not the drop-in.
Are you aware of any changes to the WP core that are causing this?
- This reply was modified 5 months, 3 weeks ago by SomeRandomGuy.
Forum: Fixing WordPress
In reply to: YouTube Embeds No Longer WorkingAre the websites affected by this issue hosted on the same server, where security tools may be in use? Or perhaps a CSP header?
Both websites are hosted on different servers. Similar stacks but one uses NGINX while the other uses Apache with NGINX as a reverse proxy.
Only one uses a CSP header which was set to allow content from YouTube. It worked before and the policy hasn’t been changed. No CORS, and all other security headers worked with YouTube embeds previously.
Forum: Fixing WordPress
In reply to: YouTube Embeds No Longer WorkingI’m still working on reproducing the issue with a fresh install. So far I’ve noticed that it only occurs when using links in the embed block.
No issues with iFrame embeds.
Any ideas?
Forum: Plugins
In reply to: [Akismet Anti-spam: Spam Protection] Too Many Redirects IssueI cleared my cache on the backend (NGINX) and also made some tweaks to the config to see if there was something blocking access to the API.
Now, the situation has improved a bit.
- I can access my dashboard with everything enabled except Akismet.
- I can also access Akismet with all other plugins disabled.
- I can not disable/re-enable Akismet with all other plugins active or I will lose access to the dashboard.
The issue seems to be with disabling/re-enabling Akismet alone. Not sure which plugin is conflicting with it yet. May be a caching problem as you stated.
Forum: Plugins
In reply to: [Akismet Anti-spam: Spam Protection] Too Many Redirects Issue- I am not able to load that page. In fact, I can’t access the dashboard at all as something in the plugin forces a redirect to
/wp-admin/options-general.php?page=akismet-key-config&view=start - I am logged in as admin.
- The most recent version available, 5.6.
- I’m not sure which plugin updates could have caused this but I’ve tried disabling all plugins and also temporarily disabling my DNS, Cloudflare.
3.2.5 and 3.2.6 causing one of my domains out of two to hang indefinitely. Had to revert to 3.2.3.
Was running PHP 7.4 and recently updated to 8.1. Issue persists.
Late reply but just in case anyone sees this, figured I’d update. Was SendInBlue issue. Using my own SMTP fixed it.
- This reply was modified 7 years, 2 months ago by SomeRandomGuy.
The sitemap has magically corrected itself. Not sure if it was because I generated a robots.txt, or a plugin change, or a Google fix.
- This reply was modified 7 years, 4 months ago by SomeRandomGuy.