WordPress Divi Theme Continue Targeting Switch Error?
May 24, 2019
May 24, 2019
As you already know, I deal with a lot of websites and some affiliate sites for myself or clients. One of the latest issues I discovered yesterday was an incompatibility error with Divi and WordPress 5.2.1. I Bought loads of themes for the affiliates and started testing and designing them until I got 3 sites with the same errors. This Post is not really for SEOs but is a good thing to know and understand from a PHP developer’s perspective.
I began installing Divi because it is easy to manage and customize. Mind you I’m running WordPress 5.2.1. After installing the theme I immediately encountered an error message that breaks the header section of the website and even the login page.
Here’s the Error Message: Warning: “continue” targeting switch is equivalent to “break”; Did you mean to use “continue 2”? in www/url path
The Clue to fixing this is already in the Warning provided by WP X Divi.
So Like any educated or cultured gamer, I would advise you to backup your website before doing anything else.
Luckily I installed Backup Guard to help me save in between points of editing the websites I manage.
Simple Steps to Backup Your WordPress Site with Backup Guard.
Login to WordPress, Select Plugins and Click Add New, Type backup guard, select the plugin, install and activate.
Now Create Your Backup using the Backup Guard Plugin. Wait til it finishes and go back to Dashboard.
WP File Manager >> wp-content>>themes>>Divi>>includes>>builder>>functions.php
Right Click and Select Code Editor on functions.php
Got to the Line specified by the warning: Line 5840
Add 2 in the code above since the error said Did you mean “continue 2”.
Save and close the file.
Refresh Your Browser.
Clear Cache in some cases.
Try to replicate the issue once more on a different instance and check for the error.
Yup we are done here. In the wise words of Apu: “Thank you come again!”.
- How To Create An Account in Axie Infinity Ultimate Guide August 19, 2021
- Can I Transfer Funds from Gcash to Paypal? June 11, 2021
- How to Beat Google Lighthouse and Page Speed May 26, 2021
- How To Buy Wax in Alien Worlds April 19, 2021
- How To Equip the Same Tool in Alien Worlds Crypto Mining Game? April 18, 2021
- How To Create Account in AlienWorlds.IO April 16, 2021
- Apex Legends Season 8 February 3, 2021
- Google Glitch 2020 August 13, 2020
- How to Fix Wifi Issues on Asus 531GD May 22, 2020
- PlayStation 4 Tekken 7 Ultimate Edition First Look July 10, 2019
- Guntank First Look Gundam Battle Operation 2 June 11, 2019
- Gundam Battle Operation 2 All Updates Last 30 Days June 3, 2019
- How To Top Up Your Paypal Account Using GCash May 28, 2019
- WordPress Divi Theme Continue Targeting Switch Error? May 24, 2019
- Weekly Practice with Gunner Gundam & GM Sniper Custom May 22, 2019
- How To Implement CDN on WordPress May 14, 2019
- Gundam Battle Operation 2 Golden Week Update April 29, 2019
- Gunner Gundam First Look Gundam Battle Operation 2 April 27, 2019
- Avengers Endgame Honest Review April 26, 2019