Skip Navigation

[Resolved] Reason for this warning

This thread is resolved. Here is a description of the problem and solution.

Problem:

When I clicked on 'Add Custom Fields' I got the following warnings.

Warning: "continue" targeting switch is equivalent to "break"

Solution:

It is a known issue with PHP 7.3, please try the hot fix of errata here:

https://toolset.com/errata/php-7-3-shows-warnings-about-continue-statement-in-types/

And feedback if it is fixed in your website

Relevant Documentation:

This support ticket is created 5 years, 11 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 5 years, 11 months ago.

Assisted by: Luo Yang.

Author
Posts
#1192323

The only thing I have done is a clean installation of the Toolset plugins ready for creating a membership site. When I clicked on 'Add Custom Fields' I got the following 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/includes/classes/class.types.admin.edit.custom.fields.group.php on line 1507

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.edit.custom.fields.group.php on line 1514

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.edit.custom.fields.group.php on line 1521

#1192327

Hello,

It is a know issue with PHP 7.3, please try the hot fix of errata here:
https://toolset.com/errata/php-7-3-shows-warnings-about-continue-statement-in-types/

And feedback if it is fixed in your website, thanks

#1192350

that worked thank you.

#1192847

You are welcome.