Support » Plugin: Broadcast » No such file ThreeWP_Broadcast_Blog_Groups.php

  • Resolved dactivepl

    (@dactivepl)


    Hello, when I try to update post witch is broadcasted to other blogs I get this:

    Warning: fopen(//wp-content/plugins/threewp-broadcast/ThreeWP_Broadcast_Blog_Groups.php): failed to open stream: No such file or directory in /wp-includes/functions.php on line 4568
    
    Warning: fread() expects parameter 1 to be resource, boolean given in /wp-includes/functions.php on line 4571
    
    Warning: fclose() expects parameter 1 to be resource, boolean given in /wp-includes/functions.php on line 4574
    
    Warning: Cannot modify header information - headers already sent by (output started at /wp-includes/functions.php:4568) in /wp-includes/pluggable.php on line 1167

    What’s going on? There is no file named “ThreeWP_Broadcast_Blog_Groups.php” in plugin.

    https://wordpress.org/plugins/threewp-broadcast/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author edward_plainview

    (@edward_plainview)

    Blog Groups was obsoleted a while ago, replaced by Blog Groups 2 in the Efficiency Pack.

    But here is a standalone, unmaintained version of Blog Groups. I haven’t tested it in a while and I can’t guarantee it works at all. Use at your own risk etc etc etc.

    I have pretty much the same Issue. We stopped using Blog Groups a while ago and are just using the base version of Broadcast now, but through various Wp Core, Theme, and plugin updates we now have these errors (I have pasted the referenced code below each warning):

    Warning: fopen(/home/MYSITE/public_html/wp-content/plugins/threewp-broadcast/ThreeWP_Broadcast_Blog_Groups.php): failed to open stream: No such file or directory in /home/MYSITE/public_html/wp-includes/functions.php on line 4568

    4566 function get_file_data( $file, $default_headers, $context = '' ) {
    4567	// We don't need to write to the file, so just open for reading.
    4568	$fp = fopen( $file, 'r' );

    Warning: fread() expects parameter 1 to be resource, boolean given in /home/MYSITE/public_html/wp-includes/functions.php on line 4571

    4570 // Pull only the first 8kiB of the file in.
    4571	$file_data = fread( $fp, 8192 );

    Warning: fclose() expects parameter 1 to be resource, boolean given in /home/MYSITE/public_html/wp-includes/functions.php on line 4574

    4573 // PHP will close file handle, but we are good citizens.
    4574	fclose( $fp );

    I’ve completely deleted ThreeWP Broadcast and reinstalled it and the warnings stay and the Broadcast plugin does not work completely (Can’t find children, give counts, etc..) What can I do to restore just the original functionality of the plugin? Is it safe just o comment out or remove these codes in the functions.php file? The see very general, but I am not super versed in PHP.

    Plugin Author edward_plainview

    (@edward_plainview)

    You should absolutely not comment out code in the WP core.

    What you should do, instead, is search your DB for traces of the Blog_Groups file. Although it’s strange you can even see any of that, since WP automatically removes references to plugins that do not exist anymore.

    Thank you for the advice. I did a search of my database and did not turn up any results for references to the Blog_Groups or any other variations of the search term. What I did as a stop gap measure was to insert a file named “ThreeWP_Broadcast_Blog_Groups.php” with only:

    <?php
    
    ?>

    in the file. This worked, and the plugin functionality has been completely restored. This is definitely a “hot wiring” of the plugin. I would like to figure out what was happening and what will happen when I update the plugin. Clearly I will have to replace the file again, but I am wondering how long this solution will work for.

    Any other thought or advice are much appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘No such file ThreeWP_Broadcast_Blog_Groups.php’ is closed to new replies.