Title: Uncaught SyntaxError: Invalid regular expression: /^*-+:*$/: Nothing to repeat
Last modified: November 12, 2021

---

# Uncaught SyntaxError: Invalid regular expression: /^*-+:*$/: Nothing to repeat

 *  Resolved [fdig](https://wordpress.org/support/users/fdig/)
 * (@fdig)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-invalid-regular-expression-nothing-to-repeat/)
 * Hi,
 * I migrated a wordpress website to another server moving files from the origin
   directory to the target directory, i’ve imported the db and configured the wp-
   config.php.
 * After migration yoast seo plugin doesn’t work in the articles editing page [https://ibb.co/j3fghS1](https://ibb.co/j3fghS1)
 * I found an error in chrome console: “Uncaught SyntaxError: Invalid regular expression:/
   ^*-+:*$/: Nothing to repeat”, also tried to find if other plugins conflict with
   yoast using troubleshooting plugin but I didn’t find any conflicts.
 * Could you help me, please?
    Thank you, Francesco

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Support [Maybellyne](https://wordpress.org/support/users/maybellyne/)
 * (@maybellyne)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-invalid-regular-expression-nothing-to-repeat/#post-15062036)
 * Hello Francesco,
 * We have seen this error on a few occasions. And it seems to be related to CDN
   implementations. Our colleague, Jannes dived into this in this [GitHub issue](https://github.com/Yoast/wordpress-seo/issues/17579)
   with more details.
 * If you do run that CDN/firewall solution, we recommend reaching out to them about
   this issue.
 *  Thread Starter [fdig](https://wordpress.org/support/users/fdig/)
 * (@fdig)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-invalid-regular-expression-nothing-to-repeat/#post-15062191)
 * I don’t think the site uses any cdn service, to be sure, how can I check this?(
   I didn’t find any installed plugin called Imperva or any plugin whose description
   refering cdn).
 * The only firewall plugin installed is “wordfence”, I already tried to disable
   the plugin but I still have the same issue.
 * I was looking at the chrome console and I noticed that in the source tab there
   isn’t the “wp-seo-post-scraper-1400.js?ver=14.0”, but the file is in the correct
   path.
 *  [Suwash Kunwar](https://wordpress.org/support/users/suascat_wp/)
 * (@suascat_wp)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-invalid-regular-expression-nothing-to-repeat/#post-15068115)
 * [@fdig](https://wordpress.org/support/users/fdig/)
 * Could you please reach out to your hosting provider and confirm if any such configuration
   exists on your server interfering with your site?
 * If no such configuration exists, we want to confirm if there’s any conflict exists
   with theme or other plugin on your setup.
 * Often, we see problems occur in combination with another plugin or theme. The
   fastest way to rule out any conflict, is to **deactivate all non-Yoast plugins
   and switch to a standard theme** like [Twenty Twenty](https://wordpress.org/themes/twentytwenty/).
 * Please test this on your development or staging site, if you have one. If not,
   we recommend using the [Health Check & Troubleshooting](https://wordpress.org/plugins/health-check/)
   plugin. This plugin has a troubleshooting mode, which **does not affect normal
   visitors to your site**.
 * If you’re unfamiliar with checking for conflicts, we’d like to point you to a
   step-by-step guide that will walk you through the process: [How to check for plugin conflicts](https://yoast.com/help/how-to-check-for-plugin-conflicts/)
 * If you do not feel comfortable to do this yourself or if this does not solve 
   your issue, our [Yoast SEO Premium plugin](https://yoast.com/wordpress/plugins/seo/)
   comes with one year of (technical) support.`
 *  Thread Starter [fdig](https://wordpress.org/support/users/fdig/)
 * (@fdig)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-invalid-regular-expression-nothing-to-repeat/#post-15068307)
 * Hi [@suascat_wp](https://wordpress.org/support/users/suascat_wp/),
 * as I already said in the main ticket, I already tried this way using Health Check&
   Troubleshoot to check if there’s conflits between YoastSEO and other plugins 
   but it seems there aren’t any..
 *  Plugin Support [Michael Tiña](https://wordpress.org/support/users/mikes41720/)
 * (@mikes41720)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-invalid-regular-expression-nothing-to-repeat/#post-15071646)
 * Hi,
 * We understand you’ve already performed a conflict check using the Health Check&
   Troubleshooting plugin and it still occurs with a default WP theme and only the
   Yoast SEO plugin activated.
 * Unfortunately, this isn’t something we can control as this is JavaScript manipulation
   between the server and client browser by the CDN/WAF. We suggest looking into
   contacting your web host/provider/reseller/CDN/WAF provider (e.g. Imperva) and
   perhaps flushing the cache / disabling any functionality that modifies these 
   JS files.
 *  Thread Starter [fdig](https://wordpress.org/support/users/fdig/)
 * (@fdig)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-invalid-regular-expression-nothing-to-repeat/#post-15072104)
 * Hi,
 * I solved my issue exclugins “wordpress-seo” folder in imperva firewall.
 * Thank you,
    F.
 *  Plugin Support [Michael Tiña](https://wordpress.org/support/users/mikes41720/)
 * (@mikes41720)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-invalid-regular-expression-nothing-to-repeat/#post-15072138)
 * Hi [@fdig](https://wordpress.org/support/users/fdig/)
 * We’re glad to hear that you were able to resolve this issue with that exclusion!
 * This thread has been marked as resolved as the original poster confirmed the 
   issue as resolved on their site.
 * If you are not the original poster and continue to experience a similar issue,
   please [open a new request](https://wordpress.org/support/plugin/wordpress-seo#new-post).
   That way it’s easier for us to match replies with a specific problem. Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Uncaught SyntaxError: Invalid regular expression: /^*-+:*$/: Nothing 
to repeat’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [Yoast](https://wordpress.org/support/topic-tag/yoast/)

 * 7 replies
 * 4 participants
 * Last reply from: [Michael Tiña](https://wordpress.org/support/users/mikes41720/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-invalid-regular-expression-nothing-to-repeat/#post-15072138)
 * Status: resolved