WordPress.org

Ready to get started?Download WordPress

Forums

Automatic Youtube Video Posts Plugin
[resolved] Illegal offset type in video.php (14 posts)

  1. MyrddinDE
    Member
    Posted 1 year ago #

    This fills the error_log when I browse my site:

    Illegal offset type in /httpdocs/wp-content/plugins/automatic-youtube-video-posts/core/video.php on line 72 , referer: /wp-admin/admin.php?page=ayvpp-video-posts

    Any ideas,

    Thanks

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

  2. MyrddinDE
    Member
    Posted 1 year ago #

    and during import:

    PHP Warning: curl_setopt() [<a href='function.curl-setopt'>function.curl-setopt</a>]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in /httpdocs/wp-content/plugins/automatic-youtube-video-posts/class/curl.php(272) : eval()'d code on line 1, referer: /wp-admin/admin.php?page=ayvpp-import-videos

  3. MyrddinDE
    Member
    Posted 1 year ago #

    Also it seems to create thumbnails even though my theme supports thumbs and has featured thumbs enabled

    <div class="avatar alignleft"><a href="/protostar-corporation-devoile-son-programme-de-logement-pour-nexus/" title="Protostar Corporation Dévoile son programme de Logement pour Nexus"><img style="width: 106px; height: 106px;" src="/wp-content/plugins/automatic-youtube-video-posts/tools/timthumb.php?src=http://img.youtube.com/vi/NgiQcEQCmKU/0.jpg&w=&h=&zc=0" alt="" title=""></a></div>

  4. mpraetzel
    Member
    Plugin Author

    Posted 1 year ago #

    The second issue as stated in the error requires you to either turn off safe_mode or unset your open_basedir. These are PHP configurations.

    The first issue shouldn't take place if your theme supports thumbnails.

    Your third, you don't want to the thumbnails for videos displayed?

  5. yoannbohbot
    Member
    Posted 1 year ago #

    I have the same illegal offset error. I have a good theme, it shoudl support thumbnails, since I already have plenty on my site. Is there something I can do to keep this error from happening?

    Thank You

  6. mpraetzel
    Member
    Plugin Author

    Posted 1 year ago #

    Change lines 31 and 32 of /core/video.php from:

    add_filter('post_thumbnail_html','WP_ayvpp_thumbnail');
    add_filter('post_thumbnail_size','WP_ayvpp_thumbnail_size');

    to this:

    //add_filter('post_thumbnail_html','WP_ayvpp_thumbnail');
    //add_filter('post_thumbnail_size','WP_ayvpp_thumbnail_size');
  7. yoannbohbot
    Member
    Posted 1 year ago #

    Ok, no more thumbnail no more error.
    This only removes the thumbnail on the Posts List yes?

    My theme does support thumbnails since the featured image box is visible on the post screen. It's too bad cuz your plugin works great and it seems to be one of a kind...thank you!

  8. mpraetzel
    Member
    Plugin Author

    Posted 1 year ago #

    It won't remove the thumbnail. It basically disables the plugin's automatic override of the thumbnail.

  9. MyrddinDE
    Member
    Posted 1 year ago #

    Thanks for the Thumbnail "fix" much appreciated.

  10. TonyBellardi
    Member
    Posted 1 year ago #

    grazie

  11. mpraetzel
    Member
    Plugin Author

    Posted 1 year ago #

    You're welcome.

  12. Mavipe
    Member
    Posted 1 year ago #

    Thank you Matthew! Your plugin rocks! As soon I get my first google adsense payment I'll send you a donation :)
    best wishes!

  13. mpraetzel
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks Mavipe.

  14. zeldabee
    Member
    Posted 1 year ago #

    I am having the same issue as above:

    Warning: Illegal offset type in /home/mysitename/public_html/wp-content/plugins/automatic-youtube-video-posts/core/video.php on line 72

    Any solution to this?

    When I disabled the thumnail lines 31 and 32, all the video thumbnails are gone, which is not what I want, but the warning message does go away. So have anyone figured out a fix to this?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic