Title: PHP7 compatibility
Last modified: August 30, 2016

---

# PHP7 compatibility

 *  Resolved [Sybre Waaijer](https://wordpress.org/support/users/cybr/)
 * (@cybr)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/php7-compatibility-5/)
 * Hello 🙂
 * I tried to add plugin compatibility for your plugin, but my test server runs 
   PHP7.
 * This caused the following error on activation:
    `Fatal error: 'break' not in 
   the 'loop' or 'switch' context in /..../wp-content/plugins/dw-question-answer/
   inc/actions.php on line 921`
 * The problem is is that the break; on line 921 is redundant. You can safely remove
   it.
 * Other than that, the constructors are old-style and should be replace `public
   function __construct() { }`
 * These are the cases I found:
    DWQA_Related_Question_Widget DWQA_Popular_Question_Widget
   DWQA_Latest_Question_Widget DWQA_Closed_Question_Widget
 * These constructors will also output a deprecation notice through WordPress’ WP_Widget
   class since WP4.3.
 * Hope this gets an update! 🙂
 * Thanks and have a great day!
 * [https://wordpress.org/plugins/dw-question-answer/](https://wordpress.org/plugins/dw-question-answer/)

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

 *  [sergioxii](https://wordpress.org/support/users/sergioxii/)
 * (@sergioxii)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/php7-compatibility-5/#post-6743307)
 * Hi. Have you found any solution ?
 *  Thread Starter [Sybre Waaijer](https://wordpress.org/support/users/cybr/)
 * (@cybr)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/php7-compatibility-5/#post-6743308)
 * Hi sergioxii,
 * I’m not using this plugin, I was just testing its compatibility and found these
   issues.
 * Nevertheless, you can safely use this plugin. Enabling `WP_DEBUG` on a production
   site isn’t recommended.
 *  Plugin Author [DesignWall](https://wordpress.org/support/users/designwall/)
 * (@designwall)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php7-compatibility-5/#post-6743324)
 * Thank for your report!
 * I was added this issue into product roadmap and it will be fix on DW Question&
   Answer 1.4.1
 *  [sergioxii](https://wordpress.org/support/users/sergioxii/)
 * (@sergioxii)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/php7-compatibility-5/#post-6743342)
 * Any news about this plugin
    It is version 1.4.3.4 now but still not working with
   PHP7
 *  [KTS915](https://wordpress.org/support/users/kts915/)
 * (@kts915)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/php7-compatibility-5/#post-6743343)
 * [@sergioxii](https://wordpress.org/support/users/sergioxii/), I have this working
   fine on PHP7.
 * (I say “fine”: what I mean is that there are bugs, but they are not caused by
   PHP7. I and others have reported the bugs and the fixes in the forum, so you 
   can implement them for yourself. The devs’ response seems to be to say “thanks”
   but not actually bring out an update to implement them for you.)
 *  Plugin Author [DesignWall](https://wordpress.org/support/users/designwall/)
 * (@designwall)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/php7-compatibility-5/#post-6743344)
 * Hi guys,
 * Thank you KTS915 and Sybre Waaijer for supporting us in solving the issue. And
   thank you Sergioxii for getting in touch with us. We do really appreciate your
   help.
 * The latest version of DW Question & Answer works well with PHP7. Please update
   the plugin and give us your feedback. It encourages us a lot.
 * Hope you guys enjoy using DW Question & Answer.

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/dw-question-answer_fefdf9.svg)
 * [DW Question & Answer](https://wordpress.org/plugins/dw-question-answer/)
 * [Support Threads](https://wordpress.org/support/plugin/dw-question-answer/)
 * [Active Topics](https://wordpress.org/support/plugin/dw-question-answer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dw-question-answer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dw-question-answer/reviews/)

 * 6 replies
 * 4 participants
 * Last reply from: [DesignWall](https://wordpress.org/support/users/designwall/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/php7-compatibility-5/#post-6743344)
 * Status: resolved