Support » Plugin: Gravity Forms Directory » “continue” targeting switch is equivalent to “break”

  • Resolved gauravca09

    (@gauravca09)


    When I activated the plugin than it shows the warning i.e. “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/mydigit1/domains/mydigitalfiling.in/public_html/wp-content/plugins/gravity-forms-addons/gravity-forms-addons.php on line 784

    How can I fix the issue. please respond as its break my website.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I have taken over maintaining a website that uses Gravity Forms.
    Am trying to debug a problem, but my log file keeps getting filled by warnings like the above generated by Gravity Forms. Please fix!

    [24-Aug-2020 02:46:21 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/conventgallery/public_html/wp-content/plugins/gravityforms/common.php on line 1276
    [24-Aug-2020 02:46:21 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/conventgallery/public_html/wp-content/plugins/gravityforms/common.php on line 1313
    [24-Aug-2020 02:46:21 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/conventgallery/public_html/wp-content/plugins/gravityforms/common.php on line 1317
    [24-Aug-2020 02:46:21 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/conventgallery/public_html/wp-content/plugins/gravityforms/common.php on line 1345
    [24-Aug-2020 02:46:21 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/conventgallery/public_html/wp-content/plugins/gravityforms/common.php on line 3536
    [24-Aug-2020 02:46:21 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/conventgallery/public_html/wp-content/plugins/gravityforms/common.php on line 3543
    [24-Aug-2020 02:46:21 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/conventgallery/public_html/wp-content/plugins/gravityforms/common.php on line 3556

    PS: @gauravca09 , this shouldn’t break your website, unless you are displaying errors on screen. Make sure that you delete the following line (or change the setting from true to false) in wp-config.php:

    define(‘WP_DEBUG_DISPLAY’, true);

    Plugin Author Zack Katz

    (@katzwebservices)

    Hi all, this has been fixed in Version 4.2. Thanks!

    EDIT: @katzwebservices Just created a new topic since this one is already solved:
    https://wordpress.org/support/topic/gravityforms-continue-targeting-switch-is-equivalent-to-break/

    Dear Support, we have the exact same issue with the same PHP warnings logged in the webroot folder of the website.
    – Gravity Forms 2.3.3
    – WordPress 5.6
    – charset UTF-8
    – PHP 7.4.14
    – MySQL 5.7.33

    Example of log file:
    [25-Jan-2021 09:14:15 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/prod/public_html/wp-content/plugins/gravityforms/common.php on line 1276
    [25-Jan-2021 09:14:15 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/prod/public_html/wp-content/plugins/gravityforms/common.php on line 1313
    [25-Jan-2021 09:14:15 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/prod/public_html/wp-content/plugins/gravityforms/common.php on line 1317
    [25-Jan-2021 09:14:15 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/prod/public_html/wp-content/plugins/gravityforms/common.php on line 1345
    [25-Jan-2021 09:14:15 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/prod/public_html/wp-content/plugins/gravityforms/common.php on line 3536
    [25-Jan-2021 09:14:15 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/prod/public_html/wp-content/plugins/gravityforms/common.php on line 3543
    [25-Jan-2021 09:14:15 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/prod/public_html/wp-content/plugins/gravityforms/common.php on line 3556
    [25-Jan-2021 09:14:37 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/prod/public_html/wp-content/plugins/gravityforms/common.php on line 1276
    [25-Jan-2021 09:14:37 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/prod/public_html/wp-content/plugins/gravityforms/common.php on line 1313
    [25-Jan-2021 09:14:37 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/prod/public_html/wp-content/plugins/gravityforms/common.php on line 1317
    [25-Jan-2021 09:14:37 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/prod/public_html/wp-content/plugins/gravityforms/common.php on line 1345
    [25-Jan-2021 09:14:37 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/prod/public_html/wp-content/plugins/gravityforms/common.php on line 3536
    [25-Jan-2021 09:14:37 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/prod/public_html/wp-content/plugins/gravityforms/common.php on line 3543
    [25-Jan-2021 09:14:37 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/prod/public_html/wp-content/plugins/gravityforms/common.php on line 3556
    [25-Jan-2021 09:14:44 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/prod/public_html/wp-content/plugins/gravityforms/common.php on line 1276
    [25-Jan-2021 09:14:44 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/prod/public_html/wp-content/plugins/gravityforms/common.php on line 1313
    [25-Jan-2021 09:14:44 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/prod/public_html/wp-content/plugins/gravityforms/common.php on line 1317
    [25-Jan-2021 09:14:44 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/prod/public_html/wp-content/plugins/gravityforms/common.php on line 1345
    [25-Jan-2021 09:14:44 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/prod/public_html/wp-content/plugins/gravityforms/common.php on line 3536
    [25-Jan-2021 09:14:44 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/prod/public_html/wp-content/plugins/gravityforms/common.php on line 3543
    [25-Jan-2021 09:14:44 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/prod/public_html/wp-content/plugins/gravityforms/common.php on line 3556
    [25-Jan-2021 09:14:44 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/prod/public_html/wp-content/plugins/gravityforms/common.php on line 1276
    [25-Jan-2021 09:14:44 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/prod/public_html/wp-content/plugins/gravityforms/common.php on line 1313
    [25-Jan-2021 09:14:44 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/prod/public_html/wp-content/plugins/gravityforms/common.php on line 1317
    [25-Jan-2021 09:14:44 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/prod/public_html/wp-content/plugins/gravityforms/common.php on line 1345
    [25-Jan-2021 09:14:44 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/prod/public_html/wp-content/plugins/gravityforms/common.php on line 3536
    [25-Jan-2021 09:14:44 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/prod/public_html/wp-content/plugins/gravityforms/common.php on line 3543
    [25-Jan-2021 09:14:44 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/prod/public_html/wp-content/plugins/gravityforms/common.php on line 3556

    • This reply was modified 1 month, 1 week ago by iperion. Reason: notify new related topic
Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.