Skip Navigation

[Resolved] Error Message when using plugins

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

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 support ticket is created 8 years, 2 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
- 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)

This topic contains 2 replies, has 2 voices.

Last updated by arvidB 8 years, 2 months ago.

Assisted by: Minesh.

Author
Posts
#367060

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

#367092

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

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/

#368860

Issue resolved!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.