What is it? BP-DEV.org is the community of BuddyPress' developers that create and extend this platform.

BuddyPress Developers' Community

BuddyPressDEV Forums » Troubleshooting using extendings/plugins

Buddypress 1.1 Youtube plugin

(9 posts)
  • Started 5 months ago by Davidro
  • Latest reply from surfartc

Tags:

No tags yet.

  1. Davidro
    Member

    The Youtube plugin gives me a weird error message after upgrading to 1.1

    Is there a quick fix?

    This is the error code:

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given in /***/***/public_html/***/wp-includes/plugin.php on line 414

    Thanks!

    Posted 5 months ago #
  2. I am having the same problem with the youtube plugin. The same thing is also true for the flickr plugin. After deactivating both of these the error goes away.

    Posted 4 months ago #
  3. Yes I am having the same issue and cant figure it out. Can we have some input please?

    Posted 4 months ago #
  4. hardik123
    Member

    Same as your Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given in /public_html/wp-includes/plugin.php on line 414

    Posted 4 months ago #
  5. tassos
    Member

    Same here and I hope a solution is found soon :-) In addition I have noticed the following behaviour. I can use the youtube plugin with the error and in firefox atleast I get the youtube page while when I use IE I get a page does not exist error.

    Posted 4 months ago #
  6. alvaroillanes
    Member

    idem !

    Posted 3 months ago #
  7. dfa327
    Member

    Hi,

    Yes, I too had the same issue. In fact I joined just so I could post my found bugs and how I fixed them to help out around here:

    Here's the fix in bpdev-youtube.php:
    function bpdev_youtube_setup_nav() {

    global $bp, $bpdev;

    bp_core_new_nav_item( array(
    'name' => __( 'Youtube', 'buddypressdev' ),
    'slug' => $bpdev->youtube->slug,
    'position' => 80,
    'screen_function' => 'youtube_show_settings',
    'default_subnav_slug' => 'show'
    ) );

    #bp_core_add_nav_item( __('Youtube', 'buddypressdev'), $bpdev->youtube->slug );
    #bp_core_add_nav_default( $bpdev->youtube->slug, 'youtube_show_settings', 'show' ); //Set aggregator_blog_settings as default page

    Posted 2 months ago #
  8. dfa327
    Member

    Here's another fix I found for the preview images to show up from youtube:

    In bpdev-youtube-classes.php:

    $author = $item->get_author();
    $this->author = $author->get_name();
    $this->url = $item->get_permalink();
    $this->title = $item->get_title();
    $this->content = $item->get_description();
    $parts = explode("=", $this->url);
    $parts = explode("&", $parts[1]);
    #$this->thumb = "http://img.youtube.com/vi/" . $parts[1] . "/default.jpg";
    #$this->thumb = "http://i2.ytimg.com/vi/" . $parts[1] . "/default.jpg";
    $this->thumb = "http://i2.ytimg.com/vi/" . $parts[0] . "/default.jpg";
    $count = $count + 1;

    Posted 2 months ago #
  9. surfartc
    Member

    yes, u do whaat DFA327 says and u fix the youtube thumbnails, but the Youttube setting dont appear anymore...it´s so hard to keep 1 version working with the last version of bp? just zip all updates and put to people download without pain!! always pain try to install something!!!

    Posted 1 month ago #

Reply

You must log in to post.