WordPress.org

Ready to get started?Download WordPress

Forums

Automatic Youtube Video Posts Plugin
Videos description issue (25 posts)

  1. TeeDubz
    Member
    Posted 2 years ago #

    Hey guys,

    I'm just having an issue when the plugin automatically posts my youtube channel's videos. The plugin is grabbing the video's metadata and title correctly (checked the feed) but when the video is posted, the first letter is always changing to a different letter (usually an E) - e.g. "Sunny Day" is changed to "Eunny Day". There has been some cases where first letter of the video's title/name is changed to a random character - e.g. "Sunny Day" is changed to "]unny Day".

    I've tried resetting the plugin and even removing the posts manually in the database but the same thing still happens when I import the videos again.

    Has anyone else encountered this issue before? What can I do to fix this? Is this some sort of caching issue?

    Thanks in advance,
    TeeDubz

    http://wordpress.org/extend/plugins/automatic-youtube-video-posts/

  2. mpraetzel
    Member
    Plugin Author

    Posted 2 years ago #

    Others have reported this issue. I will continue to look into it. What channel are you having this issue with?

  3. TeeDubz
    Member
    Posted 2 years ago #

    Thank you so much for your reply. The channel I'm having this issue with is "starcraftblogger".

  4. mpraetzel
    Member
    Plugin Author

    Posted 2 years ago #

    Just tested your channel and all the names come across properly on my server. What version of the plugin are you using? Are you using any of my other plugins?

  5. TeeDubz
    Member
    Posted 2 years ago #

    Oh really? That's odd. I'm using version 3.0.5. I'm currently not using any of your other plugins - should I be? Thanks

  6. mpraetzel
    Member
    Plugin Author

    Posted 2 years ago #

    No need to use my other plugins. Just curious. They share classes. At times a class from one plugin might cause a conflict with another plugin if they're not the same version.

  7. TeeDubz
    Member
    Posted 2 years ago #

    Oh right. Hmm, what else might cause a conflict with this plugin? Would the theme have to do with anything?

  8. TeeDubz
    Member
    Posted 2 years ago #

    I've changed the theme and reinstalled the plugin but it's still doing the same thing - I have a feeling it's cached somewhere. There's only one video that displayed correctly for me which can be seen here http://i.imgur.com/niaS2.png. As you can see the first post is the issue I've encountered. I appreciate the time you have put in helping me :). Thanks

  9. mpraetzel
    Member
    Plugin Author

    Posted 2 years ago #

    Not sure what it may be a conflict with. It's definitely an XML parsing issue. What version of PHP are you running?

  10. LytonD
    Member
    Posted 2 years ago #

    I get this issue as well on my video posts at http://lytondarque.com. (Channel LytonD)
    I am using Automatic Youtube Video Posts v3.0.5, I am not using any of your other plugins, mpraetzel, and my PHP version is 5.3.13.

    Let me know if I can provide other helpful information so this bug can be squashed.

  11. TeeDubz
    Member
    Posted 2 years ago #

    It's good to hear I'm not the only one with this weird issue. I am using PHP Version 5.2.17 on mine. Thanks.

  12. mpraetzel
    Member
    Plugin Author

    Posted 2 years ago #

    I'll keep looking into it.

  13. TeeDubz
    Member
    Posted 2 years ago #

    Thanks mpraetzel, much appreciated!

  14. mpraetzel
    Member
    Plugin Author

    Posted 1 year ago #

    Is this issue persisting?

  15. LytonD
    Member
    Posted 1 year ago #

    Unfortunately yes, for me.

  16. TeeDubz
    Member
    Posted 1 year ago #

    Unfortunately it is for me too.

  17. pulkitk
    Member
    Posted 1 year ago #

    The problem is in the WP_ayvpp_add_import_posts() function in parse.php.

    I found a quick hack: simply add an extra space before the first character before XML parsing. Since XML parsing screws up the first character, we can discard it with no worries now.

    In the function, in all regex lines (preg_replace) add a space after <![CDATA[ like so:

    $f->body = preg_replace("/(<media\:description[^>\/]*>)/","$1<![CDATA[ ",$f->body);
    $f->body = preg_replace("/(<\/media\:description>)/","]]>$1",$f->body);
    $f->body = preg_replace("/(<title[^>\/]*>)/","$1<![CDATA[ ",$f->body);
    $f->body = preg_replace("/(<\/title>)/","]]>$1",$f->body);
    $f->body = preg_replace("/(<media\:title[^>\/]*>)/","$1<![CDATA[ ",$f->body);
    $f->body = preg_replace("/(<\/media\:title>)/","]]>$1",$f->body);

    Next, find the line
    $s = $a['entry']["media:group"]['media:description'];
    and replace with
    $s = substr($a['entry']["media:group"]['media:description'], 1);

    Again, find this line
    $s = !empty($a['entry']['content']['value']) ? $a['entry']['content']['value'] : $a['entry']['content'];
    and replace with
    $s = !empty($a['entry']['content']['value']) ? substr($a['entry']['content']['value'], 1) : substr($a['entry']['content'], 1);

    That's it! Refresh and re-import your videos to note the difference
    The author should note that the other similar function WP_ayvpp_parse_videos() doesn't have this problem. This should help locate exactly where the problem is occurring.

  18. mpraetzel
    Member
    Plugin Author

    Posted 1 year ago #

    The newest version of the plugin has solved this issue.

  19. TeeDubz
    Member
    Posted 1 year ago #

    Awesome, thanks everyone!

  20. graphicpilot
    Member
    Posted 1 year ago #

    I just installed and configured the plugin today (assuming most recent version, since it came from the WordPress repository) and it is doing the same issue... importing beginning with the 2nd line of the description and only one character.

  21. Kondrik
    Member
    Posted 1 year ago #

    I am having the same issue as graphicpilot. For each post, only the first character of the second "paragraph" of the description is being imported.

    It's not the second line specifically, but the second line with a character that is not a line break.

    I would include a link to my site to demonstrate the problem, but I am keeping it in maintenance mode until I have something I can launch confidently.

  22. LytonD
    Member
    Posted 1 year ago #

    Also having graphicpilot's problem here instead of the old problem: http://lytondarque.com/
    Plugin version 3.1. The newest video post demonstrates it.

  23. LytonD
    Member
    Posted 1 year ago #

    Nevermind my previous post. I've switched to a different plugin now so my site is no longer an example of the problem.

  24. mpraetzel
    Member
    Plugin Author

    Posted 1 year ago #

    What versions of PHP are you running @graphicpilot?

  25. Kondrik
    Member
    Posted 1 year ago #

    I know I wasn't asked, but I'm running PHP 5.3, and the problem still exists, even after re-installing the plugin.

    @LytonD - What's the alternative you found? I've waited long enough, I need to bring my site live.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic