• Resolved arbeca

    (@arbeca)


    Hello,

    I have an issue with some functions in the basket page.

    When I add a product to my cart, for instance this one : https://www.emmaduvere.fr/produit/macarons-selection-du-moment/ and then, once on the cart page (https://www.emmaduvere.fr/panier/), some buttons don’t work : I cannot apply “code promo”, I cannot change the quantity of products. Nothing happens.

    In the console, when I click on the “code promo” button, I get this error :

    TypeError: t.addClass(...).block is not a function
    cart.min.js:1:277 
    
    	a
    https://www.emmaduvere.fr/web/wp-content/plugins/woocommerce/assets/js/frontend/cart.min.js:1:277
    apply_coupon
    https://www.emmaduvere.fr/web/wp-content/plugins/woocommerce/assets/js/frontend/cart.min.js:1:4207
    apply_coupon self-hosted:975:17 cart_submit
    https://www.emmaduvere.fr/web/wp-content/plugins/woocommerce/assets/js/frontend/cart.min.js:1:4022
    cart_submit self-hosted:975:17 dispatch
    jquery.js:5094:14
    add/v.handle
    jquery.js:4766:5

    Any idea what is happening ? I have made multiple plugin updates so for now I have no clue which update is responsible for this.

    The environment :

    ### WordPress Environment ###
    
    Home URL: https://www.emmaduvere.fr
    Site URL: https://www.emmaduvere.fr/web
    WC Version: 3.5.2
    Log Directory Writable: ✔
    WP Version: 4.9.8
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: –
    WP Cron: ✔
    Language: fr_FR
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 5.6.38 - Nous recommandons d’utiliser PHP 7.2 ou supérieur pour optimiser les performances et la sécurité. Comment mettre à jour votre version de PHP ?
    PHP Post Max Size: 130 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 16000
    cURL Version: 7.38.0
    OpenSSL/1.0.1t
    
    SUHOSIN Installed: –
    MySQL Version: ❌ 5.5.60-0+deb7u1-log - Nous recommandons MySQL version 5.6 minimum. Voir : Exigences de WordPress
    Max Upload Size: 128 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 3.5.2
    WC Database Prefix: wp0emmadvr254m_
    MaxMind GeoIP Database: ✔
    Taille totale de la base de données: 20.15MB
    Taille de la base de données: 17.07MB
    Taille de l’index: 3.08MB
    wp0emmadvr254m_woocommerce_sessions: Données : 0.48MB + Index: 0.02MB
    wp0emmadvr254m_woocommerce_api_keys: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_woocommerce_attribute_taxonomies: Données : 0.00MB + Index: 0.01MB
    wp0emmadvr254m_woocommerce_downloadable_product_permissions: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_woocommerce_order_items: Données : 0.02MB + Index: 0.01MB
    wp0emmadvr254m_woocommerce_order_itemmeta: Données : 0.14MB + Index: 0.10MB
    wp0emmadvr254m_woocommerce_tax_rates: Données : 0.00MB + Index: 0.01MB
    wp0emmadvr254m_woocommerce_tax_rate_locations: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_woocommerce_shipping_zones: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_woocommerce_shipping_zone_locations: Données : 0.00MB + Index: 0.01MB
    wp0emmadvr254m_woocommerce_shipping_zone_methods: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_woocommerce_payment_tokens: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_woocommerce_payment_tokenmeta: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_woocommerce_log: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_commentmeta: Données : 0.00MB + Index: 0.01MB
    wp0emmadvr254m_comments: Données : 0.04MB + Index: 0.02MB
    wp0emmadvr254m_duplicator_packages: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_huge_itslider_images: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_huge_itslider_params: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_huge_itslider_sliders: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_links: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_nextend2_image_storage: Données : 0.01MB + Index: 0.00MB
    wp0emmadvr254m_nextend2_section_storage: Données : 0.00MB + Index: 0.01MB
    wp0emmadvr254m_nextend2_smartslider3_generators: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_nextend2_smartslider3_sliders: Données : 0.01MB + Index: 0.00MB
    wp0emmadvr254m_nextend2_smartslider3_sliders_xref: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_nextend2_smartslider3_slides: Données : 0.03MB + Index: 0.00MB
    wp0emmadvr254m_options: Données : 1.20MB + Index: 0.15MB
    wp0emmadvr254m_postmeta: Données : 1.37MB + Index: 0.58MB
    wp0emmadvr254m_posts: Données : 2.92MB + Index: 0.18MB
    wp0emmadvr254m_redirection_404: Données : 1.00MB + Index: 0.20MB
    wp0emmadvr254m_redirection_groups: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_redirection_items: Données : 0.00MB + Index: 0.01MB
    wp0emmadvr254m_redirection_logs: Données : 0.00MB + Index: 0.01MB
    wp0emmadvr254m_termmeta: Données : 0.01MB + Index: 0.01MB
    wp0emmadvr254m_terms: Données : 0.01MB + Index: 0.03MB
    wp0emmadvr254m_term_relationships: Données : 0.02MB + Index: 0.05MB
    wp0emmadvr254m_term_taxonomy: Données : 0.02MB + Index: 0.02MB
    wp0emmadvr254m_usermeta: Données : 0.07MB + Index: 0.05MB
    wp0emmadvr254m_users: Données : 0.00MB + Index: 0.01MB
    wp0emmadvr254m_wc_download_log: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_wc_webhooks: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_wfBadLeechers: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_wfBlockedCommentLog: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_wfBlockedIPLog: Données : 0.02MB + Index: 0.01MB
    wp0emmadvr254m_wfBlocks: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_wfBlocks7: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_wfBlocksAdv: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_wfConfig: Données : 1.49MB + Index: 0.01MB
    wp0emmadvr254m_wfCrawlers: Données : 0.01MB + Index: 0.00MB
    wp0emmadvr254m_wfFileChanges: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_wfFileMods: Données : 1.91MB + Index: 0.40MB
    wp0emmadvr254m_wfHits: Données : 0.98MB + Index: 0.23MB
    wp0emmadvr254m_wfHoover: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_wfIssues: Données : 0.00MB + Index: 0.01MB
    wp0emmadvr254m_wfKnownFileList: Données : 0.97MB + Index: 0.12MB
    wp0emmadvr254m_wfLeechers: Données : 0.03MB + Index: 0.03MB
    wp0emmadvr254m_wfLiveTrafficHuman: Données : 0.01MB + Index: 0.01MB
    wp0emmadvr254m_wfLockedOut: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_wfLocs: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_wfLogins: Données : 0.05MB + Index: 0.02MB
    wp0emmadvr254m_wfNet404s: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_wfNotifications: Données : 0.01MB + Index: 0.00MB
    wp0emmadvr254m_wfPendingIssues: Données : 0.00MB + Index: 0.01MB
    wp0emmadvr254m_wfReverseCache: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_wfScanners: Données : 0.01MB + Index: 0.01MB
    wp0emmadvr254m_wfSNIPCache: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_wfStatus: Données : 0.20MB + Index: 0.08MB
    wp0emmadvr254m_wfThrottleLog: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_wfTrafficRates: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_wfVulnScanners: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_wysija_campaign: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_wysija_campaign_list: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_wysija_custom_field: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_wysija_email: Données : 0.66MB + Index: 0.00MB
    wp0emmadvr254m_wysija_email_user_stat: Données : 0.02MB + Index: 0.02MB
    wp0emmadvr254m_wysija_email_user_url: Données : 0.00MB + Index: 0.01MB
    wp0emmadvr254m_wysija_form: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_wysija_list: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_wysija_queue: Données : 0.00MB + Index: 0.01MB
    wp0emmadvr254m_wysija_url: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_wysija_url_mail: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_wysija_user: Données : 0.03MB + Index: 0.02MB
    wp0emmadvr254m_wysija_user_field: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_wysija_user_history: Données : 0.00MB + Index: 0.00MB
    wp0emmadvr254m_wysija_user_list: Données : 0.00MB + Index: 0.01MB
    wp0emmadvr254m_yoast_seo_links: Données : 0.01MB + Index: 0.01MB
    wp0emmadvr254m_yoast_seo_meta: Données : 0.00MB + Index: 0.00MB
    wp1conctmn825k_commentmeta: Données : 0.00MB + Index: 0.00MB
    wp1conctmn825k_comments: Données : 0.00MB + Index: 0.00MB
    wp1conctmn825k_links: Données : 0.00MB + Index: 0.00MB
    wp1conctmn825k_options: Données : 0.42MB + Index: 0.02MB
    wp1conctmn825k_postmeta: Données : 0.26MB + Index: 0.05MB
    wp1conctmn825k_posts: Données : 1.36MB + Index: 0.06MB
    wp1conctmn825k_termmeta: Données : 0.00MB + Index: 0.00MB
    wp1conctmn825k_terms: Données : 0.00MB + Index: 0.01MB
    wp1conctmn825k_term_relationships: Données : 0.00MB + Index: 0.01MB
    wp1conctmn825k_term_taxonomy: Données : 0.00MB + Index: 0.01MB
    wp1conctmn825k_usermeta: Données : 0.01MB + Index: 0.01MB
    wp1conctmn825k_users: Données : 0.00MB + Index: 0.01MB
    wp1conctmn825k_wfBadLeechers: Données : 0.00MB + Index: 0.00MB
    wp1conctmn825k_wfBlockedIPLog: Données : 0.00MB + Index: 0.00MB
    wp1conctmn825k_wfBlocks: Données : 0.00MB + Index: 0.00MB
    wp1conctmn825k_wfBlocksAdv: Données : 0.00MB + Index: 0.00MB
    wp1conctmn825k_wfConfig: Données : 0.01MB + Index: 0.01MB
    wp1conctmn825k_wfCrawlers: Données : 0.00MB + Index: 0.00MB
    wp1conctmn825k_wfFileMods: Données : 0.32MB + Index: 0.10MB
    wp1conctmn825k_wfHits: Données : 0.32MB + Index: 0.10MB
    wp1conctmn825k_wfHoover: Données : 0.00MB + Index: 0.00MB
    wp1conctmn825k_wfIssues: Données : 0.01MB + Index: 0.00MB
    wp1conctmn825k_wfLeechers: Données : 0.00MB + Index: 0.01MB
    wp1conctmn825k_wfLockedOut: Données : 0.00MB + Index: 0.00MB
    wp1conctmn825k_wfLocs: Données : 0.00MB + Index: 0.00MB
    wp1conctmn825k_wfLogins: Données : 0.00MB + Index: 0.00MB
    wp1conctmn825k_wfNet404s: Données : 0.00MB + Index: 0.00MB
    wp1conctmn825k_wfReverseCache: Données : 0.00MB + Index: 0.00MB
    wp1conctmn825k_wfScanners: Données : 0.00MB + Index: 0.00MB
    wp1conctmn825k_wfStatus: Données : 0.07MB + Index: 0.04MB
    wp1conctmn825k_wfThrottleLog: Données : 0.00MB + Index: 0.00MB
    wp1conctmn825k_wfVulnScanners: Données : 0.00MB + Index: 0.00MB
    wp1conctmn825k_yoast_seo_links: Données : 0.00MB + Index: 0.00MB
    wp1conctmn825k_yoast_seo_meta: Données : 0.00MB + Index: 0.00MB
    zdel_wor2493_commentmeta: Données : 0.00MB + Index: 0.01MB
    zdel_wor2493_comments: Données : 0.00MB + Index: 0.01MB
    zdel_wor2493_links: Données : 0.00MB + Index: 0.00MB
    zdel_wor2493_nf_objectmeta: Données : 0.00MB + Index: 0.00MB
    zdel_wor2493_nf_objects: Données : 0.00MB + Index: 0.00MB
    zdel_wor2493_nf_relationships: Données : 0.00MB + Index: 0.00MB
    zdel_wor2493_ninja_forms_fav_fields: Données : 0.02MB + Index: 0.00MB
    zdel_wor2493_ninja_forms_fields: Données : 0.01MB + Index: 0.00MB
    zdel_wor2493_options: Données : 0.38MB + Index: 0.03MB
    zdel_wor2493_postmeta: Données : 0.04MB + Index: 0.02MB
    zdel_wor2493_posts: Données : 0.08MB + Index: 0.02MB
    zdel_wor2493_terms: Données : 0.00MB + Index: 0.01MB
    zdel_wor2493_term_relationships: Données : 0.00MB + Index: 0.00MB
    zdel_wor2493_term_taxonomy: Données : 0.00MB + Index: 0.00MB
    zdel_wor2493_usermeta: Données : 0.00MB + Index: 0.01MB
    zdel_wor2493_users: Données : 0.00MB + Index: 0.00MB
    zdel_wor2493_woocommerce_api_keys: Données : 0.00MB + Index: 0.00MB
    zdel_wor2493_woocommerce_attribute_taxonomies: Données : 0.00MB + Index: 0.00MB
    zdel_wor2493_woocommerce_downloadable_product_permissions: Données : 0.00MB + Index: 0.00MB
    zdel_wor2493_woocommerce_order_itemmeta: Données : 0.00MB + Index: 0.00MB
    zdel_wor2493_woocommerce_order_items: Données : 0.00MB + Index: 0.00MB
    zdel_wor2493_woocommerce_tax_rates: Données : 0.00MB + Index: 0.00MB
    zdel_wor2493_woocommerce_tax_rate_locations: Données : 0.00MB + Index: 0.00MB
    zdel_wor2493_woocommerce_termmeta: Données : 0.00MB + Index: 0.01MB
    
    ### Post Type Counts ###
    
    acf: 1
    acf-field: 1
    acf-field-group: 1
    attachment: 297
    custom_css: 1
    mc4wp-form: 1
    nav_menu_item: 37
    oembed_cache: 2
    page: 24
    polylang_mo: 2
    post: 46
    product: 45
    product_variation: 133
    revision: 977
    shop_coupon: 14
    shop_order: 100
    shop_order_refund: 3
    wysijap: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    
    ### Active Plugins (33) ###
    
    Polylang: par Frédéric Demarle – 2.4.1
    Advanced Custom Fields: par Elliot Condon – 5.7.7
    Column Shortcodes: par Codepress – 1.0
    Duplicate Menu: par Jonathan Christopher – 0.2.1
    Duplicate Post: par Enrico Battocchi – 3.2.2
    Enable Media Replace: par ShortPixel – 3.2.7
    Jetpack par WordPress.com: par Automattic – 6.8
    WPBakery Visual Composer: par Michael M - WPBakery.com – 4.11.1
    Huge IT Lightbox: par Huge-IT – 2.1.0
    Limit Login Attempts: par Johan Eenfeldt – 1.7.1
    MailChimp for WordPress: par ibericode – 4.3.1
    MailChimp for WordPress - Top Bar: par ibericode – 1.3.2
    Order Delivery Date for WooCommerce (Lite version): par Tyche Softwares – 3.6 – Non testé avec la version active de WooCommerce
    Post Types Order: par Nsp Code – 1.9.3.9
    Q2W3 Fixed Widget: par Max Bond – 5.1.4
    Really Simple SSL: par Rogier Lankhorst
    Mark Wolters – 3.1.2
    
    Redirection: par John Godley – 3.6.3
    Regenerate Thumbnails: par Alex Mills (Viper007Bond) – 3.0.2
    SI Captcha Anti-Spam: par fastsecure – 3.0.3 – Non testé avec la version active de WooCommerce
    Smart Slider 3: par Nextend – 3.3.11
    Tag Pages: par Bjorn Wijers  – 1.0.1
    UpdraftPlus - Sauvegarde/Restauration: par UpdraftPlus.Com
    DavidAnderson – 1.15.5
    
    Checkout Field Editor for WooCommerce: par ThemeHiGH – 1.3.0
    Advanced Order Export For WooCommerce: par AlgolPlus – 2.0.1
    Hyyan WooCommerce Polylang Integration: par Hyyan Abo Fakher – 1.2.0 – Non testé avec la version active de WooCommerce
    WooCommerce Colors: par WooThemes – 1.0.7 – Non testé avec la version active de WooCommerce
    WooCommerce Customizer: par SkyVerge – 2.6.0 – Non testé avec la version active de WooCommerce
    WooCommerce: par Automattic – 3.5.2
    Wordfence Security: par Wordfence – 7.1.17
    Yoast SEO: par L’équipe Yoast – 9.2.1
    WP Fastest Cache: par Emre Vona – 0.8.8.8
    WP SEO Structured Data Schema: par WPSEMPlugins – 2.5.1
    WPS Hide Login: par WPServeur
    NicolasKulka
    tabrisrp – 1.5.1
    
    ### Settings ###
    
    API Enabled: ✔
    Force SSL: ✔
    Currency: EUR (€)
    Currency Position: right_space
    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)
    
    ### WC Pages ###
    
    Base de la boutique: #8 - /boutique/
    Panier: #9 - /panier/
    Validation de la commande: #10 - /commande/
    Mon compte: #11 - /mon-compte/
    Conditions générales de vente et d’utilisation: #16 - /cgv/
    
    ### Theme ###
    
    Name: Shopper Responsive WordPress Woocommerce Theme Child
    Version: 1.0.0
    Author URL: http://www.arbeca.me
    Child Theme: ✔
    Parent Theme Name: Shopper Responsive WordPress Woocommerce Theme
    Parent Theme Version: 2.0.5
    Parent Theme Author URL: http://www.dessign.net
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: shopperwootheme-child/woocommerce/archive-product.php version 2.0.0 est obsolète. La version du noyau est 3.4.0
    shopperwootheme-child/woocommerce/content-product.php version - est obsolète. La version du noyau est 3.4.0
    shopperwootheme-child/woocommerce/emails/customer-processing-order.php version 2.5.0 est obsolète. La version du noyau est 3.5.0
    shopperwootheme-child/woocommerce/single-product.php version - est obsolète. La version du noyau est 1.6.4
    
    Outdated Templates: ❌
    	

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Jesse Pearson (a11n)

    (@jessepearson)

    Automattic Happiness Engineer

    @arbeca You have two different versions of jQuery being loaded. Probably one from WordPress itself, and then one from the theme:

    
    <script type="text/javascript" src="https://www.emmaduvere.fr/web/wp-includes/js/jquery/jquery.js?ver=1.12.4"></script>
    
    
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
    

    You would need to hunt down which is loading the second one, as this is probably causing multiple issues. Being that it’s surrounded by theme CSS/JS files, I believe it’s coming from the theme itself.

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Thread Starter arbeca

    (@arbeca)

    Sorry for the late reply, I didn’t see the notifications for your answer.

    I will try to inactivate one of those lines, but I’m surprised since I have been using this theme for several years now and it used to work.

    I will let you know if this works. Thank you.

    Thread Starter arbeca

    (@arbeca)

    I tried to remove the duplicate line, but I got some other display issues (among which some were worse than the initial issue, eg the broken drop down menu). I resolved some of them with the CSS, but don’t have time for what’s left so I put it back the way it was until I have time, or when someone can solve the bugs for me.

    I guess you can mark this as resolved then 🙁
    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘t.addClass(…).block is not a function’ is closed to new replies.