• Resolved alieneila

    (@alieneila)


    I’ve only noticed these on facebook and twitter as those are the only ones I’m using, but… I keep having to hack the plugin every time there is an update.

    Facebook error: instead of being a return, it’s an echo, and causes the error to display at the top of the content instead of where the shortcode output is.
    This is how I fix it… line numbers may be off, but I’m sure you’ll know where I’m talking about.

    /includes/error-handler.php
    lines 87 – 89

    } catch (\Exception $e) {
      return array( true, $e->getMessage() );
    }

    /feeds/facebook/facebook-feed.php
    line 71 add…

    if ( is_array( $response ) && $response[0] == false ) {
    return $response[1];
    }

    line 710…

    if(is_array( $fts_error_check_complete ) && $fts_error_check_complete[0] == true){return array( false, $fts_error_check_complete[1] );}

    Twitter error: twitter-feed.php there is a print_r on line 156.

    https://wordpress.org/plugins/feed-them-social/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Please fix error output’ is closed to new replies.