Title: Uncaught SyntaxError: Invalid regular expression
Last modified: February 24, 2021

---

# Uncaught SyntaxError: Invalid regular expression

 *  Resolved [b1026q9](https://wordpress.org/support/users/b1026q9/)
 * (@b1026q9)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-invalid-regular-expression/)
 * I am seeing this error in developer console on chrome.
 * Uncaught SyntaxError: Invalid regular expression: /[‘窶兢/: Unterminated character
   class
 * and error source seems here.( I have replaced the IDs with 0 just in case.
 * [https://www.paypalobjects.com/muse/analytics/index.html?frameId=000000000&propertyId=000000000-1&flow=visitor-info&variant=analytics&mrid=000000000&isMobileEnabled=true&isDesktopEnabled=true&shouldCheckCountry=true&mobileVariant=analytics&mobileFlow=visitor-info](https://www.paypalobjects.com/muse/analytics/index.html?frameId=000000000&propertyId=000000000-1&flow=visitor-info&variant=analytics&mrid=000000000&isMobileEnabled=true&isDesktopEnabled=true&shouldCheckCountry=true&mobileVariant=analytics&mobileFlow=visitor-info)
 * Can you fix this issue?
    -  This topic was modified 5 years, 2 months ago by [b1026q9](https://wordpress.org/support/users/b1026q9/).

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

 *  Plugin Support [Senff – a11n](https://wordpress.org/support/users/senff/)
 * (@senff)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-invalid-regular-expression/#post-14101406)
 * Hey [@b1026q9](https://wordpress.org/support/users/b1026q9/),
 * This error may be related to your site’s language settings. Could you try and
   temporarily switch your site to English, and see if that makes the error disappear?
 *  Thread Starter [b1026q9](https://wordpress.org/support/users/b1026q9/)
 * (@b1026q9)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-invalid-regular-expression/#post-14102777)
 * I have switched the language but still the same error appeared.
 *  [crazywickedawesome](https://wordpress.org/support/users/crazywickedawesome/)
 * (@crazywickedawesome)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-invalid-regular-expression/#post-14107935)
 * Hi [@b1026q9](https://wordpress.org/support/users/b1026q9/)!
 * Thanks for letting us know!
 * When you switched the site language, did you also make sure to clear your site
   and browser cache?
 * If not, could you please try that, and check again?
 * Additionally, It will be great if you could share your current System Status 
   Report. You can get it by navigating to the `WooCommerce / Status` section of
   your site. Once there, click on the `Get system report` button and then copy 
   it by clicking on the `Copy for support` button. Then paste it here in a comment.
 * Best,
 *  Thread Starter [b1026q9](https://wordpress.org/support/users/b1026q9/)
 * (@b1026q9)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-invalid-regular-expression/#post-14113338)
 * Yes, I checked after deleting the cache, but was the same.
 * —–
 * ### WordPress Environment ###
 * WordPress address (URL): [https://www.mysite.com](https://www.mysite.com)
    Site
   address (URL): [https://www.mysite.com](https://www.mysite.com) WC Version: 5.0.0
   REST API Version: ✔ 5.0.0 WC Blocks Version: ✔ 4.0.0 Action Scheduler Version:
   ✔ 3.1.6 WC Admin Version: ✔ 1.9.0 Log Directory Writable: ✔ WP Version: 5.6.2
   WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: – Language:
   en_GB External object cache: –
 * ### Server Environment ###
 * Server Info: Apache/2.4.25 (Debian)
    PHP Version: 7.4.15 PHP Post Max Size: 100
   MB PHP Time Limit: 300 PHP Max Input Vars: 2500 cURL Version: 7.52.1 OpenSSL/
   1.0.2u
 * SUHOSIN Installed: –
    MySQL Version: 5.6.51-log Max Upload Size: 100 MB Default
   Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte
   String: ✔ Remote Post: ✔ Remote Get: ✔
 * ### Database ###
 * WC Database Version: 5.0.0
    WC Database Prefix: wp_ Total Database Size: 118.55MB
   Database Data Size: 89.06MB Database Index Size: 29.49MB wp_woocommerce_sessions:
   Data: 1.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_api_keys: Data: 0.02MB
   + Index: 0.03MB + Engine InnoDB wp_woocommerce_attribute_taxonomies: Data: 0.02MB
   + Index: 0.02MB + Engine InnoDB wp_woocommerce_downloadable_product_permissions:
   Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_order_items: Data:
   0.31MB + Index: 0.11MB + Engine InnoDB wp_woocommerce_order_itemmeta: Data: 2.52MB
   + Index: 3.03MB + Engine InnoDB wp_woocommerce_tax_rates: Data: 0.02MB + Index:
   0.06MB + Engine InnoDB wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index:
   0.03MB + Engine InnoDB wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB
   + Engine InnoDB wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index:
   0.03MB + Engine InnoDB wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index:
   0.00MB + Engine InnoDB wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB
   + Engine InnoDB wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB
   + Engine InnoDB wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
   wp_actionscheduler_actions: Data: 1.08MB + Index: 0.25MB + Engine InnoDB wp_actionscheduler_claims:
   Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_groups: Data:
   0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_logs: Data: 1.05MB 
   + Index: 0.17MB + Engine InnoDB wp_aelia_dismissed_messages: Data: 0.00MB + Index:
   0.00MB + Engine MyISAM wp_bv_fw_requests: Data: 0.02MB + Index: 0.00MB + Engine
   InnoDB wp_bv_ip_store: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_bv_lp_requests:
   Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_cartflows_ca_cart_abandonment:
   Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_cartflows_ca_email_history: Data:
   0.02MB + Index: 0.03MB + Engine InnoDB wp_cartflows_ca_email_templates: Data:
   0.02MB + Index: 0.00MB + Engine InnoDB wp_cfs_sessions: Data: 0.00MB + Index:
   0.00MB + Engine MyISAM wp_cfs_values: Data: 0.02MB + Index: 0.04MB + Engine MyISAM
   wp_commentmeta: Data: 0.08MB + Index: 0.11MB + Engine InnoDB wp_comments: Data:
   1.52MB + Index: 0.61MB + Engine InnoDB wp_cp_calculated_fields_form_discount_codes:
   Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_cp_calculated_fields_form_posts:
   Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_cp_calculated_fields_form_revision:
   Data: 0.07MB + Index: 0.00MB + Engine MyISAM wp_cp_calculated_fields_form_settings:
   Data: 0.02MB + Index: 0.00MB + Engine MyISAM wp_csp3_subscribers: Data: 0.02MB
   + Index: 0.02MB + Engine InnoDB wp_fg_redirect: Data: 0.00MB + Index: 0.00MB 
   + Engine MyISAM wp_gdpr_cc_consentlog: Data: 0.02MB + Index: 0.00MB + Engine 
   InnoDB wp_gdpr_cc_geoip: Data: 4.52MB + Index: 0.00MB + Engine InnoDB wp_gdpr_cc_options:
   Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_icl_content_status: Data: 0.02MB
   + Index: 0.02MB + Engine InnoDB wp_icl_core_status: Data: 0.02MB + Index: 0.02MB
   + Engine InnoDB wp_icl_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_icl_languages:
   Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_icl_languages_translations: Data:
   0.19MB + Index: 0.14MB + Engine InnoDB wp_icl_locale_map: Data: 0.02MB + Index:
   0.00MB + Engine InnoDB wp_icl_message_status: Data: 0.02MB + Index: 0.03MB + 
   Engine InnoDB wp_icl_mo_files_domains: Data: 0.05MB + Index: 0.02MB + Engine 
   InnoDB wp_icl_node: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_icl_reminders:
   Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_icl_strings: Data: 1.52MB + Index:
   2.17MB + Engine InnoDB wp_icl_string_batches: Data: 0.02MB + Index: 0.00MB + 
   Engine InnoDB wp_icl_string_packages: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   wp_icl_string_pages: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_icl_string_positions:
   Data: 0.08MB + Index: 0.02MB + Engine InnoDB wp_icl_string_status: Data: 0.02MB
   + Index: 0.02MB + Engine InnoDB wp_icl_string_translations: Data: 0.09MB + Index:
   0.03MB + Engine InnoDB wp_icl_string_urls: Data: 0.02MB + Index: 0.02MB + Engine
   InnoDB wp_icl_translate: Data: 5.52MB + Index: 0.30MB + Engine InnoDB wp_icl_translate_job:
   Data: 0.06MB + Index: 0.02MB + Engine InnoDB wp_icl_translations: Data: 0.39MB
   + Index: 1.11MB + Engine InnoDB wp_icl_translation_batches: Data: 0.05MB + Index:
   0.00MB + Engine InnoDB wp_icl_translation_downloads: Data: 0.02MB + Index: 0.00MB
   + Engine InnoDB wp_icl_translation_status: Data: 5.52MB + Index: 0.09MB + Engine
   InnoDB wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailchimp_carts:
   Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_mailchimp_jobs: Data: 0.02MB 
   + Index: 0.00MB + Engine InnoDB wp_mo2f_network_blocked_ips: Data: 0.02MB + Index:
   0.00MB + Engine InnoDB wp_mo2f_network_email_sent_audit: Data: 0.02MB + Index:
   0.00MB + Engine InnoDB wp_mo2f_network_transactions: Data: 3.52MB + Index: 0.00MB
   + Engine InnoDB wp_mo2f_network_whitelisted_ips: Data: 0.02MB + Index: 0.00MB
   + Engine InnoDB wp_mo2f_user_details: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   wp_mo2f_user_login_info: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_options:
   Data: 8.23MB + Index: 0.36MB + Engine InnoDB wp_postmeta: Data: 21.55MB + Index:
   12.03MB + Engine InnoDB wp_posts: Data: 4.52MB + Index: 1.09MB + Engine InnoDB
   wp_redirection_404: Data: 3.35MB + Index: 0.50MB + Engine MyISAM wp_redirection_groups:
   Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_redirection_items: Data: 0.00MB
   + Index: 0.02MB + Engine MyISAM wp_redirection_logs: Data: 1.10MB + Index: 0.23MB
   + Engine MyISAM wp_termmeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB wp_terms:
   Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_term_relationships: Data: 0.28MB
   + Index: 0.19MB + Engine InnoDB wp_term_taxonomy: Data: 0.08MB + Index: 0.03MB
   + Engine InnoDB wp_tm_taskmeta: Data: 0.02MB + Index: 0.01MB + Engine MyISAM 
   wp_tm_tasks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_usermeta: Data: 
   1.52MB + Index: 3.03MB + Engine InnoDB wp_users: Data: 0.09MB + Index: 0.05MB
   + Engine InnoDB wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_category_lookup:
   Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_customer_lookup: Data: 0.06MB
   + Index: 0.03MB + Engine InnoDB wp_wc_download_log: Data: 0.02MB + Index: 0.03MB
   + Engine InnoDB wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine
   InnoDB wp_wc_order_product_lookup: Data: 0.06MB + Index: 0.06MB + Engine InnoDB
   wp_wc_order_stats: Data: 0.06MB + Index: 0.05MB + Engine InnoDB wp_wc_order_tax_lookup:
   Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_product_meta_lookup: Data:
   0.14MB + Index: 0.14MB + Engine MyISAM wp_wc_reserved_stock: Data: 0.02MB + Index:
   0.00MB + Engine InnoDB wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB +
   Engine InnoDB wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfBlockedIPLog:
   Data: 0.05MB + Index: 0.00MB + Engine InnoDB wp_wfBlocks7: Data: 0.02MB + Index:
   0.05MB + Engine InnoDB wp_wfConfig: Data: 2.52MB + Index: 0.00MB + Engine InnoDB
   wp_wfCrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfFileChanges:
   Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfFileMods: Data: 3.48MB + Index:
   0.48MB + Engine MyISAM wp_wfHits: Data: 1.39MB + Index: 0.19MB + Engine InnoDB
   wp_wfHoover: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfIssues: Data: 
   0.02MB + Index: 0.06MB + Engine InnoDB wp_wfKnownFileList: Data: 2.52MB + Index:
   0.00MB + Engine InnoDB wp_wfLiveTrafficHuman: Data: 0.02MB + Index: 0.02MB + 
   Engine InnoDB wp_wfLocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfLogins:
   Data: 0.39MB + Index: 0.14MB + Engine InnoDB wp_wfNotifications: Data: 0.09MB
   + Index: 0.00MB + Engine InnoDB wp_wfPendingIssues: Data: 0.02MB + Index: 0.06MB
   + Engine InnoDB wp_wfReverseCache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
   wp_wfSNIPCache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfStatus: Data:
   0.16MB + Index: 0.09MB + Engine InnoDB wp_wfTrafficRates: Data: 0.00MB + Index:
   0.00MB + Engine MyISAM wp_wpforms_tasks_meta: Data: 0.05MB + Index: 0.00MB + 
   Engine InnoDB wp_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine
   InnoDB wp_wpml_mails: Data: 1.52MB + Index: 0.00MB + Engine InnoDB wp_wpns_attack_logs:
   Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpns_backup_report: Data: 0.02MB
   + Index: 0.00MB + Engine InnoDB wp_wpns_files_scan: Data: 0.02MB + Index: 0.02MB
   + Engine InnoDB wp_wpns_ip_rate_details: Data: 0.02MB + Index: 0.00MB + Engine
   InnoDB wp_wpns_malware_hash_file: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
   wp_wpns_malware_scan_report: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpns_malware_scan_report_details:
   Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpns_malware_skip_files: Data:
   0.02MB + Index: 0.00MB + Engine InnoDB wp_yoast_indexable: Data: 4.52MB + Index:
   1.20MB + Engine InnoDB wp_yoast_indexable_hierarchy: Data: 0.09MB + Index: 0.08MB
   + Engine InnoDB wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
   wp_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yoast_seo_links:
   Data: 0.14MB + Index: 0.09MB + Engine InnoDB wp_yoast_seo_meta: Data: 0.38MB 
   + Index: 0.00MB + Engine InnoDB
 * ### Post Type Counts ###
 * acf-field: 4
    acf-field-group: 2 amn_wpforms-lite: 1 astra-advanced-hook: 3 attachment:
   3818 cfs: 2 customize_changeset: 103 custom_css: 3 cwginstocknotifier: 84 edfm_menu:
   1 elementor_library: 9 is_search_form: 1 jetpack_migration: 2 jp_img_sitemap:
   1 jp_sitemap: 1 jp_sitemap_master: 1 nav_menu_item: 136 o-discount: 12 o-list:
   12 oembed_cache: 18 page: 47 post: 54 product: 354 product-feed: 1 product_variation:
   605 revision: 65 seedprod: 2 shop_coupon: 5 shop_order: 1214 shop_order_refund:
   35 wbcr-snippets: 4 wpforms: 2
 * ### Security ###
 * Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
 * ### Active Plugins (48) ###
 * WPML Multilingual CMS: by OnTheGoSystems – 4.4.9
    Yoast SEO Multilingual: by 
   OnTheGoSystems – 1.2.4 Astra Pro: by Brainstorm Force – 3.0.1 Starter Templates:
   by Brainstorm Force – 2.6.1 Back In Stock Notifier for WooCommerce | WooCommerce
   Waitlist Pro: by codewoogeek – 1.10.1 Calculated Fields Form: by CodePeople –
   1.0.448 Classic Editor: by WordPress Contributors – 1.6 Coming Soon Page, Maintenance
   Mode & Landing Pages by SeedProd: by SeedProd – 6.0.11.1 Custom Field Suite: 
   by Matt Gibbs – 2.6 Add-on: Ban Emails – Back In Stock Notifier for WooCommerce:
   by codewoogeek – 1.0 Add-on: Custom CSS – Back In Stock Notifier for WooCommerce:
   by codewoogeek – 1.2 Add-on: Export CSV – Back In Stock Notifier for WooCommerce:
   by codewoogeek – 1.1 Add-on: Unsubscribe – Back In Stock Notifier for WooCommerce:
   by codewoogeek – 1.2 Add-on: WPML – Back In Stock Notifier for WooCommerce: by
   codewoogeek – 1.2 Disable Cart Fragments: by Optimocha – 1.21 Elementor: by Elementor.
   com – 3.1.1 ELEX Dynamic Pricing and Discounts for WooCommerce: by ELEX – 3.7.3
   GDPR Cookie Compliance – Premium Add-On: by Moove Agency – 2.9.7 GDPR Cookie 
   Compliance (CCPA, PIPEDA ready): by Moove Agency – 4.4.7 Kadence WooCommerce 
   Email Designer: by Kadence WP – 1.4.7 Mailchimp for WooCommerce: by Mailchimp–
   2.5.0 MalCare Security – Free Malware Scanner, Protection & Security for WordPress:
   by MalCare Security – 4.54 miniOrange 2 Factor Authentication: by miniOrange –
   5.4.31 Perfect Brands for WooCommerce: by QuadLayers – 1.8.6 Permalink Manager
   for WooCommerce: by BeRocket – 1.0.7 Redirection: by John Godley – 5.0.1 Simple
   Google reCAPTCHA: by Michal Novák – 3.7 UpdraftPlus – Backup/Restore: by UpdraftPlus.
   Com DavidAnderson – 2.16.47.25
 * Aelia Foundation Classes for WooCommerce: by Aelia – 2.1.3.210128
    CTX Feed Pro:
   by WebAppick – 5.2.10 Stripe For WooCommerce: by Payment Plugins [support@paymentplugins.com](https://wordpress.org/support/topic/uncaught-syntaxerror-invalid-regular-expression/support@paymentplugins.com?output_format=md)–
   3.2.14
 * WooCommerce PayPal Checkout Gateway: by WooCommerce – 2.1.1
    Booster for WooCommerce:
   by Pluggabl LLC – 5.3.8 WooCommerce Multilingual: by OnTheGoSystems – 4.11.2 
   Aelia Tax Display by Country for WooCommerce: by Aelia – 1.15.8.210203 WooCommerce:
   by Automattic – 5.0.0 Yoast SEO: by Team Yoast – 15.9 WP Crontrol: by John Blackbourn&
   contributors – 1.10.0 WP Mail Logging: by MailPoet – 1.9.7 WP Mail SMTP: by WPForms–
   2.6.0 WP-Optimize – Clean, Compress, Cache: by David Anderson Ruhani Rabin Team
   Updraft – 3.1.7
 * WP Rocket | No CORS for Fonts: by WP Rocket Support Team –
    WP Rocket: by WP 
   Media – 3.8.5 WPForms Lite: by WPForms – 1.6.5 WPML Sticky Links: by OnTheGoSystems–
   1.5.4 WPML String Translation: by OnTheGoSystems – 3.1.7 WPML Translation Management:
   by OnTheGoSystems – 2.10.5 WPS Hide Login: by WPServeur NicolasKulka wpformation–
   1.8.3
 * ### Inactive Plugins (5) ###
 * Query Monitor: by John Blackbourn – 3.6.7
    Variation Swatches for WooCommerce:
   by Emran Ahmed – 1.1.10 WooCommerce Dynamic Pricing & Discounts: by RightPress–
   2.3.9 WooCommerce PayPal Gateway: by easypayment – 4.0.4 WooCommerce Stripe Gateway:
   by WooCommerce – 4.9.0
 * ### Dropin Plugins (1) ###
 * advanced-cache.php: advanced-cache.php
 * ### Must Use Plugins (1) ###
 * WP Migrate DB Compatibility: by Delicious Brains – 1.2
 * ### Settings ###
 * API Enabled: ✔
    Force SSL: – Currency: EUR (€) Currency Position: left Thousand
   Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types:
   external (external) grouped (grouped) pw gift card (pw-gift-card) simple (simple)
   variable (variable)
 * Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    
   exclude-from-search (exclude-from-search) exclude-from-search (exclude-from-search-
   en) featured (featured) outofstock (outofstock) outofstock (outofstock-en) rated-
   1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-
   5)
 * Connected to WooCommerce.com: ✔
 * ### WC Pages ###
 * Shop base: #3807 – /shopping/
    Cart: #2 – /cart/ Checkout: #28196 – /checkout/
   My account: #4 – /my-account/ Terms and conditions: #3722 – /terms/
 * ### Theme ###
 * Name: Astra
    Version: 1.0.0 Author URL: [http://wpastra.com/about/](http://wpastra.com/about/)
   Child Theme: ✔ Parent Theme Name: Astra Parent Theme Version: 3.0.3 Parent Theme
   Author URL: [https://wpastra.com/about/](https://wpastra.com/about/) WooCommerce
   Support: ✔
 * ### Templates ###
 * Overrides: –
 * ### Action Scheduler ###
 * Complete: 652
    Oldest: 2021-01-29 09:10:07 +0100 Newest: 2021-02-28 08:47:48 
   +0100
 * Pending: 3
    Oldest: 2021-02-28 20:20:03 +0100 Newest: 2021-03-04 16:10:05 +0100
 * `
 *  [mother.of.code](https://wordpress.org/support/users/imazed/)
 * (@imazed)
 * The Mother of Code
 * [5 years, 2 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-invalid-regular-expression/#post-14116584)
 * Looking at the active plugins you have, I suspect you may be running into a code
   conflict here. The best way to determine this is to:
    - Temporarily switch your theme to [Storefront](https://www.woocommerce.com/storefront/)
    - Disable all plugins except for WooCommerce, _even_ the ones you don’t think
      will make a difference! Leave the PayPal Checkout Gateway active as well.
    - Repeat the action that is causing the problem.
 * This is best done on a staging site. That’s a copy of your live site, so you 
   can test things out without making changes to your actual site. Some hosting 
   companies offer a staging site service within their hosting plans. If yours does
   not, there is a great free plugin that will allow you to build a complete staging
   site with a few button clicks: [https://wordpress.org/plugins/wp-staging](https://wordpress.org/plugins/wp-staging).
 * If you’re not seeing the same problem after completing the conflict test, then
   you know the problem was with the plugins and/or theme you deactivated. To figure
   out which plugin is causing the problem, reactivate your other plugins one by
   one, testing after each, until you find the one causing conflict. [You can find a more detailed explanation on how to do a conflict test here.](https://docs.woocommerce.com/document/how-to-test-for-conflicts/)

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

The topic ‘Uncaught SyntaxError: Invalid regular expression’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woocommerce-gateway-paypal-express-
   checkout_b298d1.svg)
 * [WooCommerce PayPal Checkout Payment Gateway](https://wordpress.org/plugins/woocommerce-gateway-paypal-express-checkout/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-gateway-paypal-express-checkout/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-gateway-paypal-express-checkout/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-gateway-paypal-express-checkout/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-gateway-paypal-express-checkout/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-gateway-paypal-express-checkout/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [mother.of.code](https://wordpress.org/support/users/imazed/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-invalid-regular-expression/#post-14116584)
 * Status: resolved