• 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/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi. Have you found any solution ?

    Thread Starter Sybre Waaijer

    (@cybr)

    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

    (@designwall)

    Thank for your report!

    I was added this issue into product roadmap and it will be fix on DW Question & Answer 1.4.1

    Any news about this plugin
    It is version 1.4.3.4 now but still not working with PHP7

    @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

    (@designwall)

    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.