Title: Invalid PHP &#8211; 500 Server Error
Last modified: August 31, 2016

---

# Invalid PHP – 500 Server Error

 *  [zlanich](https://wordpress.org/support/users/zlanich/)
 * (@zlanich)
 * [10 years ago](https://wordpress.org/support/topic/invalid-php-500-server-error/)
 * Upon upgrading to a newer version of PHP, where there are stricter standards 
   for invalid PHP, I found this incorrect code in your plugin that caused a 500
   server error:
 * File: social-plugins/widgets/like-box.php
    Line: 84 Screenshot: [http://dp.wecreate.com/ZjLn](http://dp.wecreate.com/ZjLn)
   PHP Fatal Error: ‘break not in the ‘loop’ or ‘switch’ context
 * Can you please fix this by just getting rid of the break; statement? It doesn’t
   do anything anyways if it’s not in a loop or switch. This is kind of urgent as
   my sites will all break if you ever update this plugin again.
 * Hugely appreciated. Thanks!
 * [https://wordpress.org/plugins/facebook/](https://wordpress.org/plugins/facebook/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [beardandcap](https://wordpress.org/support/users/beardandcap/)
 * (@beardandcap)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/invalid-php-500-server-error/#post-7397669)
 * Hi,
 * I accidentally installed this plugin without checking the version compatibility
   with my WordPress installation.
 * My website is now also producing a 500 server error. How did you resolve this
   problem? Can I just remove the break statement?
 * Kind regards
 *  [modcodingcom](https://wordpress.org/support/users/modcodingcom/)
 * (@modcodingcom)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/invalid-php-500-server-error/#post-8395876)
 * Yes, I have also just discovered this stupid bug.
    Comment it safely. Pretty 
   stupid syntax error, seems developer has beginner level in php language.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Invalid PHP – 500 Server Error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/facebook_526fac.svg)
 * [Facebook](https://wordpress.org/plugins/facebook/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/facebook/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/facebook/)
 * [Active Topics](https://wordpress.org/support/plugin/facebook/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/facebook/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/facebook/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * 2 replies
 * 3 participants
 * Last reply from: [modcodingcom](https://wordpress.org/support/users/modcodingcom/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/invalid-php-500-server-error/#post-8395876)
 * Status: not resolved