Forums

ThreeWP Broadcast
update spits out warning (13 posts)

  1. gekido
    Member
    Posted 1 year ago #

    Just updated ThreeWP Broadcast on my site and now i'm getting this warning spit out:

    Warning: Invalid argument supplied for foreach() in ThreeWP_Broadcast.php on line 1688

    http://wordpress.org/extend/plugins/threewp-broadcast/

  2. gekido
    Member
    Posted 1 year ago #

    just went through the various settings pages for the plugin and did a 'save changes' without modifying anything and the warning went away - looks like a few values aren't being initialized properly the first time through...

  3. edward mindreantre
    Member
    Posted 1 year ago #

    Can't see a foreach there. Was it 1.2 or 1.2.1?

  4. gekido
    Member
    Posted 1 year ago #

    Yeah this is completely broken in the latest release.

    Trying to save a draft of a post to be published in the future is giving me this:

    Warning: Invalid argument supplied for foreach() in /wp-content/plugins/threewp-broadcast/ThreeWP_Broadcast.php on line 2106
    
    Warning: Invalid argument supplied for foreach() in /wp-content/plugins/threewp-broadcast/ThreeWP_Broadcast.php on line 2106
    
    Warning: Invalid argument supplied for foreach() in /wp-content/plugins/threewp-broadcast/ThreeWP_Broadcast.php on line 2106
    
    Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/threewp-broadcast/ThreeWP_Broadcast.php:2106) in /wp-includes/pluggable.php on line 890

    And then it kills the page completely (whitescreen with the above text on it).

    This is all since I updated to 1.2.1 - in 1.2 it worked fine. Going to downgrade to the older version I think, see if that fixes anything.

  5. gekido
    Member
    Posted 1 year ago #

    Quick followup - I have 3 sites in my multisite network, I'm pretty sure that's why there are 3 of the warnings spitting out.

    Haven't looked at the code for the plugin at all to try and narrow it down much further...

  6. gekido
    Member
    Posted 1 year ago #

    Another thing that my clients noticed after I updated to 1.2.1 is that all of the 'broadcast' checkboxes on the post pages are unchecked by default now - where they used to remember which values we checked before.

    So things like 'broadcast categories', 'link to children' etc are all unchecked now when making a new post.

    Hope this helps narrow it down.

    Thanx in advance, this is one of those 'must have' plugins for multisite, can't believe this functionality isn't available in wordpress out of the box. Keep up the great work!

  7. edward mindreantre
    Member
    Posted 1 year ago #

    Why do you even have wp_debug enabled?

    Haven't noticed any problems with it on a fresh install, so I can't really say what's wrong. I'll keep looking, though.

  8. gekido
    Member
    Posted 1 year ago #

    wp_debug is set to false on the site.

  9. gekido
    Member
    Posted 1 year ago #

    ok, now we get the following every time we update or post new content to the sites:

    basically it spits this out and then goes to a white screen (ie crashes wordpress):

    Warning: Invalid argument supplied for foreach() in /public_html/wp-content/plugins/threewp-broadcast/ThreeWP_Broadcast.php on line 2106
    
    [...]
    Warning: copy() [function.copy]: The first argument to copy() function cannot be a directory in /public_html/wp-content/plugins/threewp-broadcast/ThreeWP_Broadcast.php on line 1970
    
    Warning: Cannot modify header information - headers already sent by (output started at /public_html/wp-content/plugins/threewp-broadcast/ThreeWP_Broadcast.php:2106) in /public_html/wp-includes/pluggable.php on line 890

    To clarify, we have 3 sites in our network:

    1 - primary site
    2 - dashboard (not used)
    3 - secondary media site

    We are getting this error when trying to broadcast from site id 3 to site id 1 - ie from the secondary site to the primary site.

    The reason for this is that the primary site (id 1) has a wide range of content on it - audio / video / articles - where the secondary 'media' site is where the 'audio / video' is owned / stored, hence why we have been adding all of the audio & video content to the secondary site and then 'pushing' it to the primary site.

    Very strange.

  10. gekido
    Member
    Posted 1 year ago #

    Just noticed that if I go to the 'super admin -> broadcast' admin page, it spits this out:

    Warning: implode() [function.implode]: Invalid arguments passed in /public_html/wp-content/plugins/threewp-broadcast/ThreeWP_Broadcast.php on line 314

    ============

    and a new update - noticed that the section of code spitting out the warning was in is_custom_field_valid(), so I went to the admin page and simply hit 'save' in case something wasn't setup with default values properly, and NOW when I try to post, I get:

    Warning: strpos() [function.strpos]: Empty delimiter in /public_html/wp-content/plugins/threewp-broadcast/ThreeWP_Broadcast.php on line 2107
    
    Warning: copy() [function.copy]: The first argument to copy() function cannot be a directory in /public_html/wp-content/plugins/threewp-broadcast/ThreeWP_Broadcast.php on line 1970

    Hope this helps....

  11. gekido
    Member
    Posted 1 year ago #

    Stuck on this - whenever we add a new post or update existing ones, we get this:

    Warning: strpos() [function.strpos]: Empty delimiter in /wp-content/plugins/threewp-broadcast/ThreeWP_Broadcast.php on line 2107
    
    Warning: strpos() [function.strpos]: Empty delimiter in /wp-content/plugins/threewp-broadcast/ThreeWP_Broadcast.php on line 2107
    
    Warning: strpos() [function.strpos]: Empty delimiter in /wp-content/plugins/threewp-broadcast/ThreeWP_Broadcast.php on line 2107
    
    Warning: strpos() [function.strpos]: Empty delimiter in /wp-content/plugins/threewp-broadcast/ThreeWP_Broadcast.php on line 2107
    
    Warning: copy() [function.copy]: The first argument to copy() function cannot be a directory in /wp-content/plugins/threewp-broadcast/ThreeWP_Broadcast.php on line 1970

    after which wordpress crashes completely with the 'headers already sent', ala:

    Warning: Cannot modify header information - headers already sent by (output started at /public_html/wp-content/plugins/threewp-broadcast/ThreeWP_Broadcast.php:2107) in /home/howest/public_html/wp-includes/pluggable.php on line 890

    Please help? This plugin is a fairly crucial element of the whole 'multisite' framework in general - and any ideas that you may have to resolve this (or even help me narrow down the issues) is greatly appreciated.

    Cheers

  12. gekido
    Member
    Posted 1 year ago #

    so the latest 'fail' is specifically when it tries to copy the attachments from one site to another...

    quick question - is the problems that I'm having due to the fact that I'm trying to 'broadcast' from a 'sub-site' (ie site id3) to the main site (site id 1)?

  13. kaotik
    Member
    Posted 1 year ago #

    Probably a conflict with another plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic