Title: PHP7 compatibility
Last modified: January 2, 2017

---

# PHP7 compatibility

 *  [eehmke](https://wordpress.org/support/users/eehmke/)
 * (@eehmke)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/php7-compatibility-65/)
 * I upgraded my site to PHP 7.0. All went fine, the wordpress portal runs without
   any hickup. I installed then the plugin PHP Compatibility Checker:
    [https://de.wordpress.org/plugins/php-compatibility-checker/](https://de.wordpress.org/plugins/php-compatibility-checker/)
   it reports an error in line 190 of wp-content/themes/customizr/core/framework/
   class-controllers.php: break statement outside of loop. I think this is an error
   of the checker plugin, but it can be easily avoided by enclosing the statements
   in braces:
 *     ```
                 // eehmke remove warning (break outside loop)
                 foreach ( $this -> controllers as $group => $views_id ) {
                   foreach( $controller_ids as $id ) {
                     if ( in_array($id, $views_id) ) {
                       $controller_cb = $id;
                       $controller_group = $group;
                       break 2;
                     } //if
                   } //foreach
                 } //foreach
       ```
   
 * As long as the checker plugin is not updated, it would be nice if the customizr
   theme just did not trigger this error.

Viewing 1 replies (of 1 total)

 *  [Denzel Chia](https://wordpress.org/support/users/denzel_chia/)
 * (@denzel_chia)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/php7-compatibility-65/#post-8611612)
 * Hi,
 * You can put up an issue report on Customizr theme’s github.
    [https://github.com/presscustomizr/customizr/issues](https://github.com/presscustomizr/customizr/issues)
 * The developers seldom view all the threads here.
 * Thank you

Viewing 1 replies (of 1 total)

The topic ‘PHP7 compatibility’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/customizr/4.4.24/screenshot.png)
 * Customizr
 * [Support Threads](https://wordpress.org/support/theme/customizr/)
 * [Active Topics](https://wordpress.org/support/theme/customizr/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/customizr/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/customizr/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Denzel Chia](https://wordpress.org/support/users/denzel_chia/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/php7-compatibility-65/#post-8611612)
 * Status: not resolved