Skip Navigation

[Resolved] Warning: : "continue" targeting switch is equivalent to "break"…..

This support ticket is created 6 years, 1 month 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 1 reply, has 2 voices.

Last updated by Luo Yang 6 years, 1 month ago.

Assisted by: Luo Yang.

Author
Posts
#1187448

Hello.

Just started on a new project and immediately after installing toolset types i am getting these 2 errors.

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in C:\xampp\htdocs\restauranthusetmalin.no\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 C:\xampp\htdocs\restauranthusetmalin.no\wp-content\plugins\types\vendor\toolset\types\embedded\includes\wpml.php on line 667

Why am i getting these and how can i remove them?

I am running PHP version 7.3 and all plugins are updated to the latest versions.

#1187927

Hello,

This is a known issue with PHP 7.3, see here:
https://toolset.com/errata/php-7-3-shows-warnings-about-continue-statement-in-types/

It will be fixed in future version of Types plugin 3.2.5, but I am not sure when will it be released.

Currently, you can test the patch in your development environment. Replace the file wpml.php, found in the types/vendor/toolset/types/embedded/includes/ directory, with the one contained in this ZIP file:
hidden link
Let me know the results of this test.