Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

PHP Warning – Invalid Arguments Passed (5 posts)

Started 1 year, 3 months ago by: intimez

  • Profile picture of intimez intimez said 1 year, 3 months ago:

    Anyone running into this problem? Caught this error in the log.

    PHP Warning: implode() [function.implode]: Invalid arguments passed in /home/wp-content/plugins/buddypress/bp-activity/feeds/bp-activity-friends-feed.php on line 30

    wordpress3.0.4+buddypress1.2.7

  • Profile picture of intimez intimez said 1 year, 3 months ago:

    Here is line 30:
    <?php $friend_ids = implode( ',', friends_get_friend_user_ids( $bp->displayed_user->id ) ); ?>

    Here are the lines before and after line 30

    <generator>http://buddypress.org/?v=&lt;?php echo BP_VERSION ?></generator>
    	<language><?php echo get_option('rss_language'); ?></language>
    	<?php do_action('bp_activity_friends_feed_head'); ?>
    
    	<?php $friend_ids = implode( ',', friends_get_friend_user_ids( $bp->displayed_user->id ) ); ?>
    	<?php if ( bp_has_activities( 'user_id=' . $friend_ids . '&max=50&display_comments=stream' ) ) : ?>
    		<?php while ( bp_activities() ) : bp_the_activity(); ?>
    			<item>
    				<guid><?php bp_activity_thread_permalink() ?></guid>
    				<title><![CDATA[<?php bp_activity_feed_item_title() ?>]]></title>
  • Profile picture of intimez intimez said 1 year, 3 months ago:

    Anything I can try to look to get more clues?

  • Profile picture of Paul Gibbs Paul Gibbs said 1 year, 3 months ago:

    This has been fixed in BuddyPress 1.3. Have a look at http://trac.buddypress.org/browser/trunk/bp-friends/bp-friends-classes.php#L95 if you want to see how

  • Profile picture of intimez intimez said 1 year, 3 months ago:

    Thanks @djpaul

    Been waiting too long for 1.3 … one less bug for me to report. =)