Yeah… I’m gonna have to look at image broadcasting again sometime.
*sigh*
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!
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']);
I’ve already fixed this in 1.20
I take it you’re using an older version?
Right, 1.18. Your PHP requirements are a bit ahead of Ubuntu’s packages.
There should be repos for 5.4
Debian7 has 5.4 as standard, though…