"continue" vs "continue 2" - php switch inside loop
I was getting the following error on the image optimization settings page:
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
I accessed the following file:
[site root directory]/wp-content/plugins/brizy/vendor/knplabs/gaufrette/src/Gaufrette/Util/Path.php
And updated lines 30, 34, and 36 to read "continue 2;"
After this, the error was resolved. I'm wondering if this is an update that will need to be made to correct this in subsequent updates...
The devs probably already know this, but the detail for this error was found here:
https://www.php.net/manual/en/control-structures.continue.php (see the Note: box near the top)

Note:
I saw previous support posts suggesting turning off all other plugins and/or re-saving the site URL settings, but neither of those worked for me.
-
Hi,
Thank you for contacting us.
We would like to check this problem from your dashboard. Could you please send us the WP credentials to this site? We have created a private ticket for this request. You had to receive a notification regarding this by email. Could you send us in that private message the WP credentials to this site?
Best regards, Nelea.
0 -
Hi! Sorry for the delayed response. Unfortunately, I don't have anything to show you as I stated in my message, I made the change to the PHP file and the error resolved. Just after I received your message, I went back into the PHP file and undid the change, but the error message did not return. So, at this point, I don't have anything to show your or to have reviewed/fixed. Let me know if I can help answer any additional questions and thank you for your responsiveness! I'm really enjoying Brizy! -- Thanks, Kielen King | Owner/Operator Peripatetic Conceptions
0
Please sign in to leave a comment.
Comments
2 comments