Jump to content

Youtube Embeds


Recommended Posts

15 minutes ago, Adlago said:

This is address for your video

 

 

 

PS see link


https://youtu.be/RcYjXbSJBN8

 

Both links are valid.

@AlphaStar - the error message returned is because some form of error has occurred while the software has attempted to retrieve the oembed code from youtube. The error generated isn't logged by default by IPS, only at debug level. Do the following:

If you have a constants.php file (in the same location as your conf_global.php file) then add this to it:

define( 'DEBUG_LOG', true );

If you don't have a constants.php file, create one and add this to it:

<?php
define( 'DEBUG_LOG', true );

Then attempt to do the embed again.

Result should be a log entry in either 'System logs' or 'error logs' in the Support section of the ACP - post the information it provides.

Reminder: remove the above from your constants.php file when finished.

Link to comment
Share on other sites

6 minutes ago, Adlago said:

Please provide a link to a topic in your community where you posted a youtube link

I have a closed forum from guests, if you need the source code, here is:

<div class="cPost_contentWrap">

<div data-role="commentContent" class="ipsType_normal ipsType_richText ipsPadding_bottom ipsContained" data-controller="core.front.core.lightboxedImages">

<p>

<a href="https://youtu.be/RcYjXbSJBN8" ipsnoembed="false" rel="external nofollow">https://youtu.be/RcYjXbSJBN8</a>

</p>

 

@Nathan Explosion I did not notice that you wrote that need to create a file. Here are the errors in the admin area 🙂

#0 /var/www/forum/data/www/forum.ru/system/Log/Log.php(176): IPS\_Log::log('https://www.you...', 'embed_failure')
#1 /var/www/forum/data/www/forum.ru/applications/core/modules/front/system/editor.php(176): IPS\_Log::debug('https://www.you...', 'embed_failure')
#2 /var/www/forum/data/www/forum.ru/system/Dispatcher/Controller.php(90): IPS\core\modules\front\system\_editor->validateLink()
#3 /var/www/forum/data/www/forum.ru/system/Dispatcher/Dispatcher.php(152): IPS\Dispatcher\_Controller->execute()
#4 /var/www/forum/data/www/forum.ru/index.php(13): IPS\_Dispatcher->run()
#5 {main}

 

 
   
Link to comment
Share on other sites

5 minutes ago, AlphaStar said:

Here are the errors in the admin area

Thanks - it's failing where I expected it to be, so next step is for a closer look at what the 'errorMessage' value is that is being reported when this happens at the back-end.

I'm happy to take a closer look if you send me some login credentials for the site (not the ACP) via PM in the next few minutes.

Edited by Nathan Explosion
Link to comment
Share on other sites

Your issue isn't that Youtube is not embedding - the issue is that no external links can be embedded

All of the following items should have embedded successfully:

https://www.youtube.com/watch?v=R-nWczD9NwA

https://open.spotify.com/track/51Y8KcQ33KNRTCGh6fzv0k

https://www.instagram.com/p/CD1-Xqvg13u/?utm_source=ig_web_copy_link

All of the above cannot be embedded because "The url is not allowed"

I suspect that your hosting isn't allowing your server to make outbound calls to the target sites (that is what does the embedding call, your server...not your device/computer) and the response from that block is "The url is not allowed".

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...