Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Sheffielder Posted August 30, 2020 Posted August 30, 2020 Anyone suffering from 'VIDEO UNAVAILABLE' on all your YouTube embeds tonight? IP-Gamers 1
INDIG0 Posted September 6, 2020 Posted September 6, 2020 The YouTube video is not added, the error "The link could not be embedded because the URL is not allowed." In the settings "allow all links". What could be the problem? 4.5.1
Adlago Posted September 6, 2020 Posted September 6, 2020 1 minute ago, AlphaStar said: The YouTube video is not added, the error "The link could not be embedded because the URL is not allowed." In the settings "allow all links". What could be the problem? 4.5.1 Show example link please.
Adlago Posted September 6, 2020 Posted September 6, 2020 3 minutes ago, AlphaStar said: https://www.youtube.com/watch?v=RcYjXbSJBN8 This is address for your video PS see link https://youtu.be/RcYjXbSJBN8 INDIG0 1
Nathan Explosion Posted September 6, 2020 Posted September 6, 2020 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. INDIG0 1
INDIG0 Posted September 6, 2020 Posted September 6, 2020 @Adlagoonly link is added @Nathanno such file constants.php Could it have something to do with the video width settings?
WP V0RT3X Posted September 6, 2020 Posted September 6, 2020 constants.php doesn't come by default, you have to create it. INDIG0 1
Nathan Explosion Posted September 6, 2020 Posted September 6, 2020 4 minutes ago, AlphaStar said: No such file constants.php And my instructions say..... WP V0RT3X 1
Adlago Posted September 6, 2020 Posted September 6, 2020 7 minutes ago, AlphaStar said: @Adlagoonly link is added Please provide a link to a topic in your community where you posted a youtube link
INDIG0 Posted September 6, 2020 Posted September 6, 2020 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}
Nathan Explosion Posted September 6, 2020 Posted September 6, 2020 (edited) 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 September 6, 2020 by Nathan Explosion
Nathan Explosion Posted September 6, 2020 Posted September 6, 2020 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". INDIG0 1
LoPoSt Posted September 6, 2020 Posted September 6, 2020 The problem is clearly not from the provider side, I did a clean install of the link working, but if the community is updated, then a similar error is observed.
INDIG0 Posted September 7, 2020 Posted September 7, 2020 @Nathan Explosion Thank. The system administrator says that everything is fine with the server, curl is installed, and so on. I'll try to write to the support so that they also check.
bfarber Posted September 8, 2020 Posted September 8, 2020 There is a bug in the current release that can affect embeds. It will be resolved for our next maintenance release.
Recommended Posts