Iframe beeing removed when embeding a video through block in Sensei LMS (Vimeo)

Okay after three days of asking SENSEI LMS and Vimeo guys, it looks like everything was okay on their side. Vimeo oEmbeded block is not from sensei lms but directly inside of wordpress. That means I had to deal with wordpress itself. I copied whole database and code into my local development and I figured out that the database was the problem but not because it was faulty but because It had some kind of weird cached code. What I did to resolve this issue was disable Redis / Memcached object cache, disabled any caching features and plugins I had installed and finally removed the WP_CACHE_KEY_SALT from defined constants in wp-config.php. I removed that post and created a new one and voila it works, vimeo video got embedded.

Another thing:

  • When embedding a video through Vimeo block make sure you have commented out define(‘WP_HTTP_BLOCK_EXTERNAL’, true); or just set it to false because it is fetched on “Update post” and if external sources are blocked, video is not fetched and in the lesson it will be displayed as a text.

Further investigation:

  • looks like its a problem with updating oembedded links. Its a WordPress problem not Sensei LMS problem. I tried removing one video, saving the post and adding new video. Still the same issue. So what I found is, wordpress fetches oEmbed video details in the database the first time you embed a video. But when you want to change the link or remove the block and a new one, it doesnt update postmeta with new keys. So I tried deleting the rows in the table with _ombed* key and added a new video and updated the post. It worked. I am going to create a new issue for this.

Remove these

Remove these

deneme bonusudeneme bonusu veren sitelerpulibet girişOnwin Güncel Giriştürkçe altyazılı pornocanlı bahis casino