Title: [Plugin: ThreeWP Broadcast] Brodcast errors
Last modified: August 20, 2016

---

# [Plugin: ThreeWP Broadcast] Brodcast errors

 *  [mthoreb](https://wordpress.org/support/users/mthoreb/)
 * (@mthoreb)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-threewp-broadcast-brodcast-errors/)
 * Trying to broadcast a post from one siteto another site I get these errors and
   the broadcast doesn’t work. Multi site with only 8 sites.
 * Warning: copy() [function.copy]: The first argument to copy() function cannot
   be a directory in /home/mthoreb/public_html/wp-content/plugins/threewp-broadcast/
   ThreeWP_Broadcast.php on line 1824
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/mthoreb/public_html/wp-content/plugins/threewp-broadcast/ThreeWP_Broadcast.
   php:1824) in /home/mthoreb/public_html/wp-includes/pluggable.php on line 881
 * [http://wordpress.org/extend/plugins/threewp-broadcast/](http://wordpress.org/extend/plugins/threewp-broadcast/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [edward mindreantre](https://wordpress.org/support/users/edward-mindreantre/)
 * (@edward-mindreantre)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-threewp-broadcast-brodcast-errors/#post-2973530)
 * Yeah… I’m gonna have to look at image broadcasting again sometime.
 * *sigh*
 *  [Luba Lee](https://wordpress.org/support/users/wplubalee/)
 * (@wplubalee)
 * [13 years ago](https://wordpress.org/support/topic/plugin-threewp-broadcast-brodcast-errors/#post-2973597)
 * Same here. WordPress 3.5.1 + ThreeWP Broadcast 1.18 (I don’t have latest PHP).
   Everything working smooth except for custom post types.
 * I’m getting almost same warning as in this thread and CPT is not broadcasted:
 * Warning: copy() [function.copy]: The first argument to copy() function cannot
   be a directory in /usr/home/apaseotravel.com/web/wp-content/plugins/threewp-broadcast/
   ThreeWP_Broadcast.php on line 2012
 * Warning: Cannot modify header information – headers already sent by (output started
   at /usr/home/apaseotravel.com/web/wp-content/plugins/threewp-broadcast/ThreeWP_Broadcast.
   php:2012) in /usr/home/apaseotravel.com/web/wp-includes/pluggable.php on line
   876
 * Please, help me to get this fixed. It’s a very important feature for the site
   I’m working on!
 *  [ClaytonL](https://wordpress.org/support/users/claytonl/)
 * (@claytonl)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/plugin-threewp-broadcast-brodcast-errors/#post-2973601)
 * I was having the same problem as luba, only on 3.5.2. The problem was, wp_get_attachment_metadata()
   was returning an empty array for the pdf attachments on our site.
 * We solved it by making the following change to threewp-broadcast/AttachmentData.
   php:
 * Change
 *     ```
       $metadata = wp_get_attachment_metadata($attachment_id);
       		$rv->filename_base = basename( $metadata['file']);
       ```
   
 * to
 *     ```
       $metadata = wp_get_attachment_metadata($attachment_id);
       		$metadata['file']= $metadata['file'] ? $metadata['file'] : get_attached_file($attachment_id);
       		$rv->filename_base = basename( $metadata['file']);
       ```
   
 *  [edward mindreantre](https://wordpress.org/support/users/edward-mindreantre/)
 * (@edward-mindreantre)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/plugin-threewp-broadcast-brodcast-errors/#post-2973602)
 * I’ve already fixed this in 1.20
 * I take it you’re using an older version?
 *  [ClaytonL](https://wordpress.org/support/users/claytonl/)
 * (@claytonl)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/plugin-threewp-broadcast-brodcast-errors/#post-2973603)
 * Right, 1.18. Your PHP requirements are a bit ahead of Ubuntu’s packages.
 *  [edward mindreantre](https://wordpress.org/support/users/edward-mindreantre/)
 * (@edward-mindreantre)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/plugin-threewp-broadcast-brodcast-errors/#post-2973604)
 * There should be repos for 5.4
 * Debian7 has 5.4 as standard, though…

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘[Plugin: ThreeWP Broadcast] Brodcast errors’ is closed to new replies.

 * ![](https://ps.w.org/threewp-broadcast/assets/icon.svg?rev=1013783)
 * [Broadcast](https://wordpress.org/plugins/threewp-broadcast/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/threewp-broadcast/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/threewp-broadcast/)
 * [Active Topics](https://wordpress.org/support/plugin/threewp-broadcast/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/threewp-broadcast/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/threewp-broadcast/reviews/)

 * 6 replies
 * 4 participants
 * Last reply from: [edward mindreantre](https://wordpress.org/support/users/edward-mindreantre/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/plugin-threewp-broadcast-brodcast-errors/#post-2973604)
 * Status: not resolved