Viewing 6 replies - 1 through 6 (of 6 total)
  • Line 81 of social-plugins/widgets/like-box.php contains a break; statement that produces a fatal PHP error. As there is no loop, the break; statement is invalid.

    I’ve sent a pull request on github with a fix, so let’s hope that the facebook developers accept it soon.

    Oh and btw, this is not a fix of the actual problem, just a fix of the error-handling of the original problem:

    The widget code tries to get a valid url from the Facebook API, but that produces a WP_FacebookApiException for some unknown reason (the rest of the plugin functions correctly with my app id/secret), which in turn triggers the invalid ‘break;’ statement.

    hi
    I have the same problem…

    How can I sort this out?

    Same issue for me too.

    I’m using WordPress 4.1

    It seems Facebook won’t even respond to fixes submitted to their repository, so I’ll leave this here.

    To fix this issue, open up social-plugins/widgets/like-box.php (using FTP or the plugin editor in WP) and change line 84 from:

    83 			} catch ( WP_FacebookApiException $e ) {
    84				break;
    85			}

    to:

    83 			} catch ( WP_FacebookApiException $e ) {
    84				return 'https://www.facebook.com/' . $url_parts['path'];
    85 			}

    Thank MartenKnbk! I fixed error.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Facebook Like Box Widget's Settings Take Forever To Save’ is closed to new replies.