Ng Switch is Equivalent to Break Did You Mean to Use Continue 2

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);

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 year, 8 months ago by iperion. Reason: notify new related topic

rizodisanstan.blogspot.com

Source: https://wordpress.org/support/topic/continue-targeting-switch-is-equivalent-to-break-3/

0 Response to "Ng Switch is Equivalent to Break Did You Mean to Use Continue 2"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel