Adrian
asked 5 months ago

since php v7.2 is already end-of-life and out of support, i’m trying to see if i can update an website…. switching to php 7.4 starts to fill the error log with stuff.
On php v7.3 this is not happening, but 7.3 will not be supported for much longer.

PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /public_html/wp-content/themes/dw-magz/lib/less.php/Less.php on line 9466
PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /public_html/wp-content/themes/dw-magz/lib/less.php/Less.php on line 9474
PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /public_html/wp-content/themes/dw-magz/lib/less.php/Less.php on line 9479
PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /public_html/wp-content/themes/dw-magz/lib/less.php/Less.php on line 9485
PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /public_html/wp-content/themes/dw-magz/lib/less.php/Less.php on line 9495
PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /public_html/wp-content/themes/dw-magz/lib/less.php/Less.php on line 9498
PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /public_html/wp-content/themes/dw-magz/lib/less.php/Less.php on line 9518
PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /public_html/wp-content/themes/dw-magz/lib/less.php/Less.php on line 9523
PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /public_html/wp-content/themes/dw-magz/lib/less.php/Less.php on line 9544
PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /public_html/wp-content/themes/dw-magz/lib/less.php/Less.php on line 9551

 

2 Answers
DominicStaff
answered 5 months ago

Don’t worry about this issue. I sent and notified to our technical team about this issue. We will check and fix it.
You have three way to solve this problem:
1- I open the php file where is the problem line, I changed the term [continue;] to [break;]
2- the second solution doesn’t work for me, but it’s work for other users, its change the term [continue;] to [continue 2;]
3- The third solution is ignore the warning; and to make sure you have visible debug messages turned off by setting define(‘WP_DEBUG_DISPLAY’, ‘false’); in WP-Config.php.

Adrian
answered 5 months ago

update: on php 7.3 is broken too, my hosting has different configs for each php version and i had error display turned off in the php7.3 config… the same errors were logged but not shown.
i realized this about 20 minutes after i sent the first message in this thread but the post was stuck in moderation queue… i had to wait for it to get approved.
last php version that it works without that error on is 7.2, but this one is already end-of-life according to the list of supported versions.

Dominic Staff
replied 4 months ago

I have checked the theme with the latest version of WP and the widgets still work fine. Also, the theme has not the “Insert widget”
We are checking and updating the theme, we have fixed the framework and less.php issues, we will release the latest version as soon as possible.

Powered by DW Question & Answer Pro