Skip Navigation

[Resolved] Warning: "continue" targeting switch is equivalent to "break". Did you mean to

This support ticket is created 5 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by janeC-2 5 years, 9 months ago.

Assisted by: Nigel.

Author
Posts
#1220195

I am getting warning messages in the dashboard of this web site. I tried deleting all toolset plugins and just adding Types but still get the warnings.

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/netgrrl4/public_html/markets/wp-content/plugins/types/vendor/toolset/types/embedded/includes/wpml.php on line 650

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/netgrrl4/public_html/markets/wp-content/plugins/types/vendor/toolset/types/embedded/includes/wpml.php on line 667

Warning: Cannot modify header information - headers already sent by (output started at /home/netgrrl4/public_html/markets/wp-content/plugins/types/vendor/toolset/types/embedded/includes/wpml.php:650) in /home/netgrrl4/public_html/markets/wp-admin/includes/misc.php on line 1198

When I clicked on 'Add New post Type' I got this error:

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/netgrrl4/public_html/markets/wp-content/plugins/types/vendor/toolset/types/includes/classes/class.types.admin.fields.php on line 664

#1220401

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Jane

The "continue" warning is known, it came up with PHP 7.3 and the next version of Types should include a fix.

I'm not sure if the headers already sent warning is just a side-effect of the same.

Is anything functionally broken?

A Types update is preparing to go into testing soon (although there is something of a backlog there), but hopefully it won't be too long before this release.

Can you test again when the new version of Types is released to see if both sets of warnings are resolved?

#1220617

thanx Nigel. I rolled back the PHP to v 7.2.x and all is good now..