Home › Toolset Professional Support › [Resolved] Error Message when using plugins
Problem:
User experince Error:
Fatal error: 'break' not in the 'loop' or 'switch' context
Solution:
This is the compatibility issue with PHP version 7 and this has been already addressed.
As for now the please find "official" hotfix with the following link:
=> https://toolset.com/errata/views-compatibility-issue-with-php-7/
Relevant Documentation:
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 |
---|---|---|---|---|---|---|
- | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10: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/Kolkata (GMT+05:30)
Tagged: Layouts plugin, Toolset Forms, Types plugin, Views plugin
This topic contains 2 replies, has 2 voices.
Last updated by arvidB 8 years, 2 months ago.
Assisted by: Minesh.
Hi there,
after having not used my site for a few weeks, and no updates applied, I started getting strange errors;
- Fatal error: 'break' not in the 'loop' or 'switch' context
I thought that maybe something was wrong with my WP installation so I spun up a new one, fresh install, no plugins except for the tool set. I start activating the tool set and I start getting these erros;
Activated CRED Front End Editor:
Plugin could not be activated because it triggered a fatal error.
Fatal error: 'break' not in the 'loop' or 'switch' context in /home/arvidbux/webapps/duckwp/wp-content/plugins/cred-frontend-editor/embedded/toolset/toolset-common/toolset-forms/lib/adodb-time.inc.php on line 1012
Activated Types:
Fatal error: 'break' not in the 'loop' or 'switch' context in /home/arvidbux/webapps/duckwp/wp-content/plugins/types/embedded/common/toolset-forms/lib/adodb-time.inc.php on line 1012
(and this breaks the entire WP install)
Activated WP views:
Fatal error: 'break' not in the 'loop' or 'switch' context in /home/arvidbux/webapps/duckwp/wp-content/plugins/wp-views/embedded/toolset/toolset-common/toolset-forms/lib/adodb-time.inc.php on line 1012
I've uploaded the plugins through SFTP and via the WP interface, I get the same error all the time.
Wordpress version: 4.4.2
Other plugins: none
Theme: Twenty Sixteen
Hello. Thank you for contacting the Toolset support.
I know how important it is for your site to work properly and I'm here to help!
This is known issue to us. I would like to suggest to have a little bit more patience until our DEV presents the updates for all our Plugins.
As for now the please find "official" hotfix with the following link:
=> https://toolset.com/errata/views-compatibility-issue-with-php-7/
Issue resolved!