Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error displaying oEmbed Wordpress

Tags:

wordpress

I've a problem with my wordpress website. When I insert some url for being embedded, it's not working fine.

Here is the issue URL : https://www.duosia.id/windows/cara-mengekstrak-files-menggunakan-winrar-dengan-mudah

And here is the Screenshot :

enter image description here

When I try to visit the embedded url. It's return 404 not found. You can check the embedded url here, https://www.duosia.id/windows/cara-mengekstrak-files-menggunakan-winrar-dengan-mudah/embed/

I've try these common solutions.

  1. Update everything including WordPress, the theme and plugins. Available updates appear in Dashboard > Updates.
  2. Deactivate all plugins in case there is a conflict. If the problem goes away while all plugins are inactive, then reactivate them one by one to determine which is causing the problem.
  3. Switch to the default theme (such as Twenty Thirteen) then try to do what was not working. If the problem remains, it is a general WordPress or hosting issue. If it happens only while using our theme, please let us know.
  4. Clear cache in both your browser and in any caching plugins that you are using (also disable services like CloudFlare, if used with your website).
  5. Revert code changes if you have modified the theme’s code. If using a child theme, reactivate the parent theme.

But, seems no one work.

like image 368
Abid Rakhmansyah Avatar asked Jun 24 '18 01:06

Abid Rakhmansyah


People also ask

How do I enable oEmbed in WordPress?

Embed Supported Content into WordPressLog into your WordPress website directly or from Softaculous. Create or edit a post or page. Copy and paste the direct URL from the oEmbed-supported platform into the Visual or Text editor. The URL will transform into an oEmbed preview immediately if using the Visual editor.

How do I disable oEmbed in WordPress?

First thing you need to do is install and activate the Disable Embeds plugin. It works out of the box, and there are no settings for you to configure. Simply activating the plugin will disable oEmbed for your posts on other WordPress sites. That's all.

Why is embed not working on WordPress?

Changing the alignment of your text (centering for example) or adding style elements will generate HTML formatting around the embed URL which will cause the embed not to work correctly. Try using a shortcode to correct things.


1 Answers

The WordPress post embeds don't seem to be working on your site. This URL shows a live example of the problem:

https://www.duosia.id/windows/whatsapp-for-pc/

The two embeds present in that URL are returning a 404, therefore, oEmbeds are not loading properly and showing the 404 page:

https://www.duosia.id/windows/facebook-messenger-for-pc/embed/#?secret=kMPv636bx1 https://www.duosia.id/windows/line-for-pc/embed/#?secret=65m4VpxiYi

Have you tried testing those URLs in the plugin "Rewrite Rules Inspector"? You should see something like this for any of the "embed" URLs:

index.php?name=$matches[1]&embed=true

Also, have you tried flushing the rewrite rules in WordPress or maybe setting the permalink structure to a different/default one (right now you seem to be using a structure of "category/post-name") to see if it changes anything?

like image 139
Víctor Avatar answered Sep 21 '22 00:09

Víctor