Missing select2 files in 2.31.6
-
Hi,
In 2.31.6, ‘class-wad-admin.php’ is referencing two files, ‘css/wad-select2.css’ and ‘js/wad-select2.js’.
This files are missing from the package. The plugin throws errors when entering the “New discount page”:
TypeError: $(…).select2 is not a function
at HTMLDocument. (wad-admin.js?ver=2.31.6:56:45)As a result, I can’t add new rules to a new discount, and can’t really use the plugin.
-
Hello,
In order to understand the problem you are experiencing, could you please share your WooCommerce status?
You can find it here ( WooCommerce > Status ).
### WordPress Environment ### WC Version: 8.5.1 REST API Version: ? 8.5.1 WC Blocks Version: ? 11.8.0-dev Action Scheduler Version: ? 3.7.1 Log Directory Writable: ? WP Version: 6.4.2 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: – WP Cron: ? Language: en_US External object cache: – ### Server Environment ### Server Info: Apache/2.4.58 (Unix) PHP Version: 8.1.26 PHP Post Max Size: 128 MB PHP Time Limit: 240 PHP Max Input Vars: 4000 cURL Version: 8.4.0 OpenSSL/3.0.10 SUHOSIN Installed: – MySQL Version: 5.7.41-log Max Upload Size: 128 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 8.5.1 WC Database Prefix: wp_ Total Database Size: 52.66MB Database Data Size: 30.39MB Database Index Size: 22.27MB ### Post Type Counts ### advanced_ads: 2 attachment: 305 custom_css: 2 custom-css-js: 1 feedback: 17 forge_template: 1 jetpack_migration: 2 jp_img_sitemap: 1 jp_sitemap: 1 jp_sitemap_master: 1 mep_events: 2 mollie-forms: 1 mwb_cpt_membership: 1 nav_menu_item: 42 o-discount: 9 o-list: 2 page: 52 polylang_mo: 2 product: 11 product_variation: 52 revision: 375 shop_coupon: 25 shop_order: 397 shop_order_refund: 15 tribe_events: 3 tribe_organizer: 6 tribe_venue: 2 um_directory: 2 um_form: 3 wp_global_styles: 1 wpforms: 2 ywsbs_subscription: 22 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (17) ### Booking Activities - Licenses & Updates: by Booking Activities Team – 1.2.10 Booking Activities - Prices and Credits: by Booking Activities Team – 1.8.6 Booking Activities: by Booking Activities Team – 1.15.18 CMS Tree Page View: by Jon Christopher – 1.6.8 Simple Custom CSS and JS: by SilkyPress.com – 3.45 Duplicator: by Duplicator – 1.5.8 reCaptcha by BestWebSoft: by BestWebSoft – 1.74 Mollie Payments for WooCommerce: by Mollie – 7.4.1 Product Visibility by User Role for WooCommerce: by WP Wham – 1.8.1 Ultimate Member: by Ultimate Member – 2.8.2 Ultimate Member - WooCommerce: by Ultimate Member – 2.4.0 User Role Editor: by Vladimir Garagulya – 4.64.1 Conditional Discounts for WooCommerce - A simple yet complete woocommerce dynamic pricing plugin: by ORION – 2.31.6 WooCommerce: by Automattic – 8.5.1 WP Fastest Cache: by Emre Vona – 1.2.3 WPForms Lite: by WPForms – 1.8.6.2 YITH WooCommerce Subscription: by YITH – 3.2.0 ### Inactive Plugins (0) ### ### 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) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to Woo.com: – Enforce Approved Product Download Directories: – HPOS feature screen enabled: – HPOS feature enabled: – Order datastore: WC_Order_Data_Store_CPT HPOS data sync enabled: – ### WC Pages ### Shop base: #552 - /shop/ Cart: #554 - /cart/ Checkout: #556 - /checkout/ My account: #558 - /mijn-rekening/ Terms and conditions: #675 - /vereniging/ledenvoordelen/algemene-voorwaarden/ ### Theme ### Name: Llorix One Lite Version: 0.2.17 Author URL: https://themeisle.com/ Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ? ### Templates ### Overrides: – ### Admin ### Enabled Features: activity-panels analytics product-block-editor coupons core-profiler customer-effort-score-tracks import-products-task experimental-fashion-sample-products shipping-smart-defaults shipping-setting-tour homescreen marketing mobile-app-banner navigation onboarding onboarding-tasks product-variation-management product-virtual-downloadable product-external-affiliate product-grouped remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices woo-mobile-welcome wc-pay-promotion wc-pay-welcome-page Disabled Features: customize-store minified-js new-product-management-experience product-linked settings async-product-editor-category-field Daily Cron: ? Next scheduled: 2024-01-19 11:05:53 +01:00 Options: ? Notes: 27 Onboarding: completed ### Action Scheduler ### Complete: 130 Oldest: 2023-12-18 19:54:01 +0100 Newest: 2024-01-18 03:57:48 +0100 Failed: 43 Oldest: 2023-02-15 14:06:17 +0100 Newest: 2023-08-10 20:58:54 +0200 Pending: 6 Oldest: 2024-01-18 17:55:58 +0100 Newest: 2024-01-20 20:25:39 +0100 ### Status report information ### Generated at: 2024-01-18 17:10:12 +01:00
Although I’m not sure it’s relevant…
What I did was:
– try to add a new discount
– realize the page wasn’t responding
– notice the 404 error in the browser’s console
– downloaded the plugin as a .zip from your (or this?) website
– checked the file, looked for the references
– checked at the path where the references are pointing
– noticed those 2 files are missing
Hence my conclusion that the dev forgot to add them when pushing that last version.Thanks for sharing the steps to reproduce the problem.
We have made a new version on the repository, can you update the plugin on your website and confirm that everything works fine.
- The topic ‘Missing select2 files in 2.31.6’ is closed to new replies.