Title: Fatal error with PHP7 when creating new code block
Last modified: August 31, 2016

---

# Fatal error with PHP7 when creating new code block

 *  Resolved [kitar](https://wordpress.org/support/users/kitar/)
 * (@kitar)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-with-php7-when-creating-new-code-block/)
 * Hi,
 * Thanks for great plugin! It helps me a lot.
    I found some bug but I don’t know
   where to report, so I’ll post here:
 * After install, when I tried to create first code block, I got this error.
 * > Fatal error: ‘break’ not in the ‘loop’ or ‘switch’ context in /path/to/wp-content/
   plugins/css-javascript-toolbox/controllers/block.php on line 145
 * I think this occured because of I’m using PHP7.
 * For convenience, it works fine if I comment out given line, but I don’t think
   this is better solution. Please have a look for CJT enhancement.
 * [https://wordpress.org/plugins/css-javascript-toolbox/](https://wordpress.org/plugins/css-javascript-toolbox/)

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

 *  Plugin Author [wipeoutmedia](https://wordpress.org/support/users/wipeoutmedia/)
 * (@wipeoutmedia)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-with-php7-when-creating-new-code-block/#post-7110173)
 * Hi kitar,
 * Thanks for taking the time to reach out and post your findings.
    We have seen
   this reported and we have created a fix for it. We hope to push it out very soon
   so watch this space. 🙂
 * Regards,
    Damian Baker
 *  Thread Starter [kitar](https://wordpress.org/support/users/kitar/)
 * (@kitar)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-with-php7-when-creating-new-code-block/#post-7110310)
 * I found that you fixed with ver 8.2.
    Thanks for quick response!
 *  Plugin Author [wipeoutmedia](https://wordpress.org/support/users/wipeoutmedia/)
 * (@wipeoutmedia)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-with-php7-when-creating-new-code-block/#post-7110312)
 * Hi Kitar,
 * Yes all fixed.
    Thanks for posting.
 * Regards,
    Damian

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

The topic ‘Fatal error with PHP7 when creating new code block’ is closed to new 
replies.

 * ![](https://ps.w.org/css-javascript-toolbox/assets/icon-256x256.gif?rev=3132209)
 * [CSS & JavaScript Toolbox](https://wordpress.org/plugins/css-javascript-toolbox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/css-javascript-toolbox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/css-javascript-toolbox/)
 * [Active Topics](https://wordpress.org/support/plugin/css-javascript-toolbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/css-javascript-toolbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/css-javascript-toolbox/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [wipeoutmedia](https://wordpress.org/support/users/wipeoutmedia/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-with-php7-when-creating-new-code-block/#post-7110312)
 * Status: resolved