Closed mehowmy closed 1 year ago
This console error should not be present anymore with the latest update 2.4.0. It should not have been related to eventual problems with the account connection, though. If any questions or issues remain when using the latest PayPal Payments version, I would like to ask you to reach out to the support team directly for more guidance. Thanks!
Describe the Bug
There is a problem with one of the input fields in the plugin configuration. The issue is in the "pattern" attrubute of one of the settings input fields. More details below.
To Reproduce
Pattern attribute value [a-zA-Z_-]+ is not a valid regular expression: Uncaught SyntaxError: Invalid regular expression: /[a-zA-Z_-]+/v: Invalid character in character class
HTML element that is causing this error:
<input type="text" class="input-text " name="ppcp[prefix]" id="ppcp-prefix" placeholder="" value="fbafad-" pattern="[a-zA-Z_-]+" maxlength="15"/>
Expected Behavior
There is no error in the console and I can configure the payment gateway/plugin.
Actual Behavior
The error prevents me from configuring the gateway.
Environment
See site info below.
Additional Details
System status
` ### wp-core ### version: 6.2.2 site_language: en_GB user_language: en_GB timezone: +00:00 permalink: /%postname%/ https_status: true multisite: false user_registration: 0 blog_public: 1 default_comment_status: open environment_type: production user_count: 171 dotorg_communication: true ### wp-paths-sizes ### wordpress_path: /www/wwwroot/[redacted] wordpress_size: loading... uploads_path: /www/wwwroot/[redacted]/wp-content/uploads uploads_size: loading... themes_path: /www/wwwroot/[redacted]/wp-content/themes themes_size: loading... plugins_path: /www/wwwroot/[redacted]k/wp-content/plugins plugins_size: loading... database_size: loading... total_size: loading... ### wp-dropins (1) ### object-cache.php: true ### wp-active-theme ### name: [redacted] ([redacted]) version: 1.0.0 author: [redacted] author_website: [redacted] parent_theme: [redacted] ([redacted]) theme_features: core-block-patterns, widgets, widgets-block-editor, post-thumbnails, automatic-feed-links, title-tag, menus, html5, custom-background, customize-selective-refresh-widgets, custom-logo, custom-header, woocommerce theme_path: /www/wwwroot/[redacted]/wp-content/themes/[redacted] auto_update: Disabled ### wp-parent-theme ### name: [redacted] version: 1.0.0 author: Michał Maj author_website: [redacted] theme_path: /www/wwwroot/[redacted]/wp-content/themes/[redacted] auto_update: Disabled ### wp-themes-inactive (3) ### Flatsome Child: version: 3.0, author: UX Themes, Auto-updates disabled Flatsome: version: 3.14.2, author: UX-Themes, Auto-updates disabled Twenty Twenty-Three: version: 1.0, author: the WordPress team (latest version: 1.1), Auto-updates disabled ### wp-mu-plugins (1) ### installatron_hide_status_test.php: author: (undefined), version: (undefined) ### wp-plugins-active (39) ### Accordion Toggle: version: 1.2.7, author: WPDeveloper, Auto-updates disabled Advanced Custom Fields PRO: version: 6.1.7, author: WP Engine (latest version: 6.1.8), Auto-updates disabled All-in-One WP Migration: version: 7.76, author: ServMask, Auto-updates disabled All-in-One WP Migration Unlimited Extension: version: 2.52, author: ServMask, Auto-updates disabled CartBounty Pro - Save and recover abandoned carts for WooCommerce: version: 9.11, author: Streamline.lv, Auto-updates disabled Contact Form 7: version: 5.7.7, author: Takayuki Miyoshi (latest version: 5.8), Auto-updates disabled Cookie Notice & Compliance for GDPR / CCPA: version: 2.4.9, author: Hu-manity.co, Auto-updates disabled DCO Comment Attachment: version: 2.4.0, author: Denis Yanchevskiy, Auto-updates disabled Disable Admin Notices Individually: version: 1.3.3, author: Creative Motion