WordPress.org

Ready to get started?Download WordPress

Forums

Vixy YouTube Embed and Download
[resolved] [Plugin: Artiss YouTube Embed] Override built-in WP processing not working (19 posts)

  1. Navjot Singh
    Member
    Posted 2 years ago #

    I want your plugin to handle the native WordPress's uploads and upon selecting the option "Override built-in WP processing of YouTube URLs", videos are still displayed using WordPress's embedding with these errors on the page:

    Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash in <path>/wp-includes/media.php on line 1171
    
    Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash in <path>/wp-includes/media.php on line 1171

    Please look into it.

    http://wordpress.org/extend/plugins/youtube-embed/

  2. dartiss
    Member
    Posted 2 years ago #

    Can you please provide me with an example so that I can re-create the issue?

    Thanks,
    David.

  3. GrimPanda
    Member
    Posted 2 years ago #

    David, not too long ago (or least I didn't notice it until very recently) Your plugin began to cause strange behavior on WordPress sites. For instance on 1 on of my posts (not the rest however) the behavior described by the OP began to appear. I use your plugin for a single PAGE on my site, yet this error appears on a single POST un-related elsewhere on the site. I don't know why.

    If you google "preg_match() Delimiter must not be alphanumeric or backslash in media.php wordpress" you will see that is affecting pretty much anyone using your plugin.

    Steps to recreate are (at least for me) impossible to determine. Again, I just use your shortcode on a single page on my site, and it affects another post somewhere else (without any shortcode or youtube, etc).

    Oddly enough, I opened up media.php in Dreamweaver to debug the $url being passed (Seems like an unescaped literal being passed to the preg_match) and just SAVING my file made my errors go away, which blew my mind.... don't ask me.

    Anyways, this is the best help I can get to you at this time, since my issues went away the second I tried to narrow them down. Hope this helps a bit... sorry brother.

  4. Navjot Singh
    Member
    Posted 2 years ago #

    Check this page for instance: parineetifans.com/chokra-jawaan-song-promo/

    Infact it happens with all videos here: parineetifans.com/videos/

    I just enter the video link in a new line with the option "Override built-in WP processing of YouTube URLs" enabled. And these errors start showing up. Please look into it.

    Pardon for the late reply.

  5. dartiss
    Member
    Posted 2 years ago #

    Thanks for that information. One thing I can't tell from seeing the post is what URL you used.

    Could you give me an example YouTube URL that you've used that is causing the issue? I assume you've put the URL on its own separate line?

    David.

  6. Navjot Singh
    Member
    Posted 2 years ago #

    http://www.youtube.com/watch?v=k5TRnHHQ57U

    Yep the video was on a separate line. Also from the link above you can get the video url..just click on the video. Point is that it is happening with all the videos I embed. No matter what's the url.

    Also the playlist embeds have stopped working for some reason. Am manually embedding them now.

    I have deactivated the plugin for now so you won't see the error anymore.

  7. dartiss
    Member
    Posted 2 years ago #

    Trying that URL on a line by itself on my own sites works fine without any errors.

    Can you do the following for me please? One of the posts that is causing it - can you provide me with an exact copy and paste of the post contents, as seen in the editor (HTML view rather than visual)?

    Without being able to recreate the issue I'm not going to be able to fix it.

    Also, what about the playlists wasn't working?

    David.

  8. macosala
    Member
    Posted 2 years ago #

    My WordPress site is showing similar warning message...

    The HTML source code is like this

    회사에서 작업하다가 이거 보고 뿜었...
    
    http://youtu.be/sQ3TBKDDx2U
    
    모두들 좋은 하루 되시게.. 왜..?
    
     
    
     
    
     

    And, please refer this image for the result screenshot..
    http://younwook.net/youtube_error.png

    thanks, have a nice day...

  9. dartiss
    Member
    Posted 2 years ago #

    Grrr. That STILL works for me!

    Okay, it looks like (in that case) I'll have to work on this without being able to recreate it - leave it with me and I'll do some digging and see what I can find.

    David.

  10. Navjot Singh
    Member
    Posted 2 years ago #

    Tested the plugin on WordPress 3.4 install with all plugins deactivated and still I get the error.

    I have created a test account at one of my sites for you so that you can check the issue for yourself. Issue is persistent on both WordPress 3.3.2 and 3.4 beta 3. Have mailed you the details of the same via your contact form at http://www.artiss.co.uk/contact from this id: navjotjsingh (at) gmail (dot) com.

  11. dartiss
    Member
    Posted 2 years ago #

    Thanks for doing that.

    The first post I came across that was erroring was this one...

    http://parineetifans.com/parineeti-interview-with-bollywoodhungama/

    This is a playlist. However, there are 3 issues with this...

    1. It's wrapped in an IFRAME
    2. I don't support playlist URL beings embedded directly
    3. You're using the brand new playlist URL that YouTube has only just introduced

    So, if you change...

    http://www.youtube.com/embed/videoseries?list=PL0DB354A6A1A1FFC7

    to

    [youtube]PL0DB354A6A1A1FFC7[/youtube]

    Then it will work. However, the video isn't currently available (and not on YouTube either, so no fault of my plugin).

    Ok, moving on I found a standard video that was causing the error. The video is being displayed by the WP built in embed player due to the errors that are (I believe) being generated by my plugin.

    Why these errors occur in your blog and not, say, mine though is odd. Can you confirm which version of PHP you're using?

    David.

  12. Navjot Singh
    Member
    Posted 2 years ago #

    I had to use Iframe embed because the plugin's method to embed the playlist was not working at all. Video is available but maybe restricted to certain countries so maybe that's why you are not able to see it. Try with any playlist and it won't work at all.

    I just tried with another playlist the videos of which are not geographically restricted and still its showing the same error.

    My host is using PHP version 5.2.17.

  13. dartiss
    Member
    Posted 2 years ago #

    Have you tried switch off the API option? In the "Options" menu change the API state to "APIs should not be used". This will prevent the plugin from trying to access the YouTube API to confirm the videos validity - some installations don't seem to like the API which is why this can happen.

    If it still doesn't work, I'm assuming you're using the playlist ID within [youtube] tags? If so, give me a playlist ID of one that's not restricted and I'll take a look.

    David.

  14. Navjot Singh
    Member
    Posted 2 years ago #

    Turning off the API has no effect. Playlist still does not work. Tried half a dozen playlists and none of them is working.

    Sorry to say but I am deactivating the plugin as nothing seems to be working for me now.

  15. dartiss
    Member
    Posted 2 years ago #

    Ok. Unfortunately, if you can't give me any example IDs there's nothing I can do to assist with the country restriction.

    As for the errors appearing when using embedded URLs I've recreated that one myself and will be looking at that in the next week - either I'll fix it or remove it as an option entirely.

    David.

  16. Navjot Singh
    Member
    Posted 2 years ago #

    Here is a test playlist: http://www.youtube.com/playlist?list=PL647B479570DD0A26 - you can confirm each video individually because the videos have been uploaded by someone from the US.

    Tried with API on and off and still the same error.

  17. dartiss
    Member
    Posted 2 years ago #

    Ok, cracked it. YouTube have recently changed their playlist embedding code - this was something I was going to change in the next release. What I didn't realise is that they've made some changes that effect the older method, that my plugin uses.

    I'm planning on working on the next release starting this week - once it's released it will work with your playlist (in fact I'll use the one you've supplied above as my test URL).

    David.

  18. Navjot Singh
    Member
    Posted 2 years ago #

    Awesome. But please if you can use some other playlist which you generate from any videos of your choice. These videos are of my friend's and I created it just to show you as an example. I will delete this playlist soon. Sorry.

  19. dartiss
    Member
    Posted 2 years ago #

    If you've updated to 2.5 you'll see that I've removed the functionality - I simply couldn't get it work correctly.

    If you wish to have the improved output that my plugin gives I'd suggest using the [youtube] shortcode around the URLs.

    David.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic