Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /wp-content/plugins/o2/o2.php on line 602 #165

Closed
yduke opened this issue Mar 8, 2019 · 25 comments

Comments

@yduke
Copy link

yduke commented Mar 8, 2019

PHP 7.3
I think this issue is related with php7.3.

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /wp-content/plugins/o2/o2.php on line 602

And same environment when activate the plugin, gets:

The plugin generated 204 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.

@ashrafelidrissi06
Copy link

You have three way to solve this problem. I am already face the same problem I solved them with this way : 1- I open the php file where is the problem line, I changed the term [continue;] to [break;]
2- the second solution doesn't work for me, but it's work for other users, its change the term [continue;] to [continue 2;]
3- The third solution is ignore the warning; and to make sure you have visible debug messages turned off by setting define(‘WP_DEBUG_DISPLAY’, ‘false’); in WP-Config.php, then when WordPress or the plugin has an update it will resolve the warning.

@GKhan2018
Copy link

Resolve the Issue by using first option. Thanks alot

@Sheenue
Copy link

Sheenue commented Mar 12, 2020

Same here, but with Modx Revo, resolve the issue by using the second option. Thank you!

@fonbal104
Copy link

Great! Option 1 worked for me.
Thanks, @ashrafelidrissi06

@ogarteetotal
Copy link

break

Thanks. option 1 worked for me

@AhmedHanif
Copy link

Resolve the Issue by using the first option. Thanks bro.

@AzeezBello
Copy link

open the php file where is the problem line, I changed the term [continue;] to [break;]

@developerxpertpk
Copy link

Hello Every On Its due to PHP version you need to change the PHP version 7.4 to less than 7.2.

I have fixed this issue with changing of PHP version of my server from hosting.

@EdwinSEO
Copy link

Hola Gracias me ha servido lo de cambiar el PHP de 7.3 a 7.2 , ya no veo esas lineas de advertencia en mi tablero, Gracias.

@Ikechukwu-Unegbu
Copy link

thank you for sharing. option one worked for me. this just saved me nearly a full day of trouble

@EbrahimDeen
Copy link

great 1st way resolved my issue thanks @ashrafelidrissi06

@93sumit-kumar
Copy link

i think the issue is with version of PHP and Plugin support version

@petri71
Copy link

petri71 commented Nov 5, 2020

great ! the [continue 2;] worked great for me !

@sonnv25
Copy link

sonnv25 commented Nov 27, 2020

You have three way to solve this problem. I am already face the same problem I solved them with this way : 1- I open the php file where is the problem line, I changed the term [continue;] to [break;]
2- the second solution doesn't work for me, but it's work for other users, its change the term [continue;] to [continue 2;]
3- The third solution is ignore the warning; and to make sure you have visible debug messages turned off by setting define(‘WP_DEBUG_DISPLAY’, ‘false’); in WP-Config.php, then when WordPress or the plugin has an update it will resolve the warning.

Thank you very much!

@yidane
Copy link

yidane commented Jan 29, 2021

version 1.6.3 fix my problem.

@massimostanzione
Copy link

It seems to be a "Backward Incompatible Change" issue related to the transition from PHP 7.2.x to PHP 7.3.x. Documentation here.

@sunil1397
Copy link

thank you ........ for helping

@InnoExcell
Copy link

Thanks so much, option 1 worked for me.

@mokaymakci
Copy link

the second option (continue 2;) worked like a charm!

@joaopaulozz
Copy link

Primeira solução funcionou!!!

@kxeilakos
Copy link

continue 2; worked great for me. I had an issue with Revolution Slider plugin. I had to apply this fix in 2 lines and also I had to apply another fix related to this one'
https://stackoverflow.com/questions/5879675/fatal-error-operator-not-supported-for-strings/5879753#5879753

@Harshal1602
Copy link

Thanks @ashrafelidrissi06
Option 2 worked for me :)

@dd32
Copy link
Member

dd32 commented Apr 8, 2022

I believe this was resolved via 6b05dfe

@dd32 dd32 closed this as completed Apr 8, 2022
@MdFarzan
Copy link

1st solution is still working. Thanks

@Nick201986
Copy link

Hi, choose all the option but it did not work for me.
getting error
This page isn’t working
localhost is currently unable to handle this request.
HTTP ERROR 500

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests