WordPress.org

Support

Support » Plugins and Hacks » YouTube Embed » [Resolved] [Plugin: Artiss YouTube Embed] Override built-in WP processing not working

[Resolved] [Plugin: Artiss YouTube Embed] Override built-in WP processing not working

  • 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/

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author dartiss

    @dartiss

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

    Thanks,
    David.

    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.

    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.

    Plugin Author dartiss

    @dartiss

    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.

    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.

    Plugin Author dartiss

    @dartiss

    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.

    My WordPress site is showing similar warning message…

    The HTML source code is like this

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

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

    thanks, have a nice day…

    Plugin Author dartiss

    @dartiss

    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.

    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.

    Plugin Author dartiss

    @dartiss

    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…

    https://youtube.com/watch?v=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.

    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.

    Plugin Author dartiss

    @dartiss

    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.

    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.

    Plugin Author dartiss

    @dartiss

    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.

    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.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘[Resolved] [Plugin: Artiss YouTube Embed] Override built-in WP processing not working’ is closed to new replies.
Skip to toolbar