Support » Fixing WordPress » Warning: “continue” targeting switch is equivalent to “break”

  • Resolved waseemsannib

    (@waseemsannib)


    Hello everyone
    Indeed I need help from somebody who has experience regarding errors in WordPress, I’m running WordPress 5.2.2 and once I uploaded my website I got some errors in my website and can’t use it properly, everything is broken in my website, but I believe the fix will be not that complicated, some they mentioned me about the PHP version problem and theme and plugins if is compatible with the PHP version, and files permission, I really don’t know, I hope somebody could help me with this will be much appreciated.

    Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”

    Screenshots of the problems:
    https://ibb.co/sybb4r6
    https://ibb.co/kqy8cg7
    https://ibb.co/rv4Xmzp
    https://ibb.co/ZXmxjFK
    https://ibb.co/hD45fr8

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Access your server via SFTP or FTP, or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), navigate to /wp-content/plugins/ and delete the whole /revslider/ directory there.

    This will remove the plugin causing the problem.

    Next, since that is a commercial plugin, we ask that you please go to their official support channel, so you can get support from the people who know it best: https://www.themepunch.com/support-center/

    Forum volunteers are not given access to commercial products, so they would not know why it is not working properly. Other community members who may have faced your issue might be able to help you but your best bet is your product’s developer. Keep in mind we encourage you to use the official support venues, as it allows the developers to be aware of issues with their code and gives back to the community in a more robust way.

    Thread Starter waseemsannib

    (@waseemsannib)

    Thank you for your reply, but if I have removed the plugin how I run revslider to view the slide feature of my images in the homepage?
    Second as in the screenshots have many errors, do you believe rev slider cause all this errors or another thing?

    I have deleted and still having errors. I will contact them for support, but it seems not only the rev slider causes the errors.
    https://ibb.co/ygLNJZy
    https://ibb.co/YdDh1zD

    Thread Starter waseemsannib

    (@waseemsannib)

    I have updated the revslider and the error is gone, but I’m still facing the other errors I don’t know what caused that.
    Regarding the folder and files permission in ftp I already have done it, but the function.php after editing it with the checkbox for reading and writing it changes again itself.

    https://ibb.co/N6D7f5W
    https://ibb.co/xmFBZvH
    https://ibb.co/TcSZqyf
    https://ibb.co/PFRMJPd

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Thank you for your reply, but if I have removed the plugin how I run revslider to view the slide feature of my images in the homepage?

    You don’t, as you can clearly see in the screenshots, the plugin is _causing_ the errors.

    So, you remove the plugin to remove the errors (and yes, anything the plugin would have provided too), then you contact the plugin’s support.

    I have updated the revslider and the error is gone

    Good.

    I’m still facing the other errors I don’t know what caused that.

    Access your server via SFTP or FTP, or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), navigate to /wp-content/themes/ and rename the /hermes/ directory there to /hermes-broken/

    This will force the default theme to activate so you can use your site again.

    Next, since that is a commercial theme, we ask that you please go to their official support channel, so you can get support from the people who know it best: https://themeforest.net/item/hermes-multipurpose-premium-responsive-wordpress-theme/16394318/support

    Forum volunteers are not given access to commercial products, so they would not know why it is not working properly. Other community members who may have faced your issue might be able to help you but your best bet is your product’s developer. Keep in mind we encourage you to use the official support venues, as it allows the developers to be aware of issues with their code and gives back to the community in a more robust way.

    Thread Starter waseemsannib

    (@waseemsannib)

    I’m still working on these errors for 4 days with no luck, could you just have a look at the website dashboard to just inform me what is going on on my website?

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Your site is entirely self-contained, we have no more access to it than any normal visitor would.

    Please try the steps above.

    Remove each item quoted in the error, starting with the biggest offenders first. Revslider was first, now Hermes.

    Then, contact the specific support for each item that was breaking the site.

    Thread Starter waseemsannib

    (@waseemsannib)

    The problem has been resolved by updating the theme and php version.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Warning: “continue” targeting switch is equivalent to “break”’ is closed to new replies.