• This plugin started to generate this error this week.
    (When I disable the plugin, the problem doesn’t happen)
    This error makes the Avada fusion slider not load
    it happens only in the page that has the slider with WooCommerce code block of featured products.

    I will keep disabled for now.

    Uncaught ReferenceError: ga is not defined
    at HTMLDocument.<anonymous> ((index):1247)
    at i (jquery.js?ver=1.12.4-wp:2)
    at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)
    at Function.ready (jquery.js?ver=1.12.4-wp:2)
    at HTMLDocument.J (jquery.js?ver=1.12.4-wp:2)
    (anonymous) @ (index):1247
    i @ jquery.js?ver=1.12.4-wp:2
    fireWith @ jquery.js?ver=1.12.4-wp:2
    ready @ jquery.js?ver=1.12.4-wp:2
    J @ jquery.js?ver=1.12.4-wp:2

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

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

    (@rynald0s)

    Automattic Happiness Engineer

    Hi @yanchile!

    What version of the plugin are you currently running?

    Also, can you please paste your sites’ status report here?

    Thanks!

    Thread Starter User90812849801925124

    (@yanchile)

    Hi @rynald0s
    Thank you,
    I am running Versión 1.4.14

    
    ### WordPress Environment ###
    
    WC Version: 3.7.1
    REST API Version: ? 1.0.2
    Log Directory Writable: ?
    WP Version: 5.2.4
    WP Multisite: –
    WP Memory Limit: 300 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: es_ES
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.1.32 - Recomendamos usar la versión 7.2 o superior de PHP para un mayor rendimiento y seguridad. Cómo actualizar tu versión de PHP
    PHP Post Max Size: 100 MB
    PHP Time Limit: 200
    PHP Max Input Vars: 3000
    cURL Version: 7.66.0
    OpenSSL/1.0.2t
    
    SUHOSIN Installed: –
    MySQL Version: 5.7.28
    Max Upload Size: 100 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 3.7.1
    WC Database Prefix: axoea_
    MaxMind GeoIP Database: ?
    Tama?o total de la base de datos: 264.10MB
    Tama?o de los datos de la base de datos: 244.81MB
    Tama?o del índice de la base de datos: 19.29MB
    axoea_woocommerce_sessions: Datos: 0.14MB + índice: 0.01MB + Motor MyISAM
    axoea_woocommerce_api_keys: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_woocommerce_attribute_taxonomies: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_woocommerce_downloadable_product_permissions: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_woocommerce_order_items: Datos: 0.03MB + índice: 0.02MB + Motor MyISAM
    axoea_woocommerce_order_itemmeta: Datos: 0.23MB + índice: 0.19MB + Motor MyISAM
    axoea_woocommerce_tax_rates: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_woocommerce_tax_rate_locations: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_woocommerce_shipping_zones: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_woocommerce_shipping_zone_locations: Datos: 0.00MB + índice: 0.01MB + Motor MyISAM
    axoea_woocommerce_shipping_zone_methods: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_woocommerce_payment_tokens: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_woocommerce_payment_tokenmeta: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_woocommerce_log: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_aiowps_events: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_aiowps_failed_logins: Datos: 0.01MB + índice: 0.00MB + Motor MyISAM
    axoea_aiowps_global_meta: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_aiowps_login_activity: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_aiowps_login_lockdown: Datos: 0.01MB + índice: 0.00MB + Motor MyISAM
    axoea_aiowps_permanent_block: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_commentmeta: Datos: 0.00MB + índice: 0.01MB + Motor MyISAM
    axoea_comments: Datos: 0.68MB + índice: 0.46MB + Motor MyISAM
    axoea_ewwwio_images: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_intel_entity_attr: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_intel_submission: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_intel_value_str: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_intel_visitor: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_intel_visitor_identifier: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_layerslider: Datos: 0.01MB + índice: 0.00MB + Motor MyISAM
    axoea_layerslider_revisions: Datos: 0.01MB + índice: 0.00MB + Motor MyISAM
    axoea_links: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_options: Datos: 6.20MB + índice: 0.13MB + Motor MyISAM
    axoea_postmeta: Datos: 216.76MB + índice: 6.71MB + Motor MyISAM
    axoea_posts: Datos: 5.51MB + índice: 1.04MB + Motor MyISAM
    axoea_revslider_css: Datos: 0.09MB + índice: 0.00MB + Motor MyISAM
    axoea_revslider_layer_animations: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_revslider_navigations: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_revslider_sliders: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_revslider_slides: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_revslider_static_slides: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_termmeta: Datos: 0.05MB + índice: 0.03MB + Motor MyISAM
    axoea_terms: Datos: 0.01MB + índice: 0.04MB + Motor MyISAM
    axoea_term_relationships: Datos: 0.09MB + índice: 0.20MB + Motor MyISAM
    axoea_term_taxonomy: Datos: 0.02MB + índice: 0.03MB + Motor MyISAM
    axoea_usermeta: Datos: 0.05MB + índice: 0.05MB + Motor MyISAM
    axoea_users: Datos: 0.01MB + índice: 0.01MB + Motor MyISAM
    axoea_wc_admin_notes: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_wc_admin_note_actions: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_wc_category_lookup: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_wc_customer_lookup: Datos: 0.01MB + índice: 0.02MB + Motor MyISAM
    axoea_wc_download_log: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_wc_gpf_render_cache: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_wc_order_coupon_lookup: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_wc_order_product_lookup: Datos: 0.02MB + índice: 0.02MB + Motor MyISAM
    axoea_wc_order_stats: Datos: 0.02MB + índice: 0.02MB + Motor MyISAM
    axoea_wc_order_tax_lookup: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_wc_product_meta_lookup: Datos: 0.03MB + índice: 0.07MB + Motor MyISAM
    axoea_wc_tax_rate_classes: Datos: 0.00MB + índice: 0.01MB + Motor MyISAM
    axoea_wc_webhooks: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_wfBlockedIPLog: Datos: 0.03MB + índice: 0.02MB + Motor MyISAM
    axoea_wfBlocks7: Datos: 0.02MB + índice: 0.02MB + Motor MyISAM
    axoea_wfConfig: Datos: 1.21MB + índice: 0.01MB + Motor MyISAM
    axoea_wfCrawlers: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_wfFileChanges: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_wfFileMods: Datos: 3.63MB + índice: 0.70MB + Motor MyISAM
    axoea_wfHits: Datos: 0.18MB + índice: 0.03MB + Motor MyISAM
    axoea_wfHoover: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_wfIssues: Datos: 0.02MB + índice: 0.01MB + Motor MyISAM
    axoea_wfKnownFileList: Datos: 2.06MB + índice: 0.21MB + Motor MyISAM
    axoea_wfLiveTrafficHuman: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_wfLocs: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_wfLogins: Datos: 0.15MB + índice: 0.04MB + Motor MyISAM
    axoea_wfls_2fa_secrets: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    axoea_wfls_settings: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    axoea_wfNotifications: Datos: 0.02MB + índice: 0.00MB + Motor MyISAM
    axoea_wfPendingIssues: Datos: 0.00MB + índice: 0.01MB + Motor MyISAM
    axoea_wfReverseCache: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_wfSNIPCache: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_wfStatus: Datos: 0.17MB + índice: 0.07MB + Motor MyISAM
    axoea_wfTrafficRates: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_woocommerce_gpf_google_taxonomy: Datos: 0.89MB + índice: 0.00MB + Motor MyISAM
    axoea_wps_hit: Datos: 0.01MB + índice: 0.04MB + Motor MyISAM
    axoea_wps_index: Datos: 6.15MB + índice: 8.86MB + Motor MyISAM
    axoea_wps_key: Datos: 0.04MB + índice: 0.08MB + Motor MyISAM
    axoea_wps_object_type: Datos: 0.00MB + índice: 0.01MB + Motor MyISAM
    axoea_wps_query: Datos: 0.00MB + índice: 0.01MB + Motor MyISAM
    axoea_wps_uri: Datos: 0.07MB + índice: 0.01MB + Motor MyISAM
    axoea_wps_user_agent: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM
    axoea_yoast_seo_links: Datos: 0.10MB + índice: 0.02MB + Motor MyISAM
    axoea_yoast_seo_meta: Datos: 0.03MB + índice: 0.04MB + Motor MyISAM
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (23) ###
    
    Advanced noCaptcha & invisible Captcha: por Shamim Hasan – 5.5 – No probado con la versión activa de WooCommerce
    Contact Form 7: por Takayuki Miyoshi – 5.1.4
    Disable XML-RPC: por Philip Erb – 1.0.1
    Fusion Builder: por ThemeFusion – 2.1
    Fusion Core: por ThemeFusion – 4.1
    Loco Translate: por Tim Whitlock – 2.3.1
    Post SMTP: por Yehuda Hassine – 2.0.6
    Really Simple SSL: por Rogier Lankhorst
    Mark Wolters – 3.2.6
    
    UpdraftPlus - Backup/Restore: por UpdraftPlus.Com
    DavidAnderson – 2.16.15.1
    
    WooCommerce Blocks: por Automattic – 2.4.3
    WooCommerce Admin: por WooCommerce – 0.20.1
    WooCommerce Chilean Peso + Chilean States: por Cristian Tala Sánchez  – 2.5.12.2 – No probado con la versión activa de WooCommerce
    Woocommerce Google Merchant Center Customer Reviews: por WebPerfect.com – 1.0
    WooCommerce Google Product Feed: por Ademti Software Ltd. – 7.8.8 – No probado con la versión activa de WooCommerce
    Transbank Webpay Plus: por Transbank – 2.3.1 – No probado con la versión activa de WooCommerce
    WooCommerce: por Automattic – 3.7.1
    Wordfence Security: por Wordfence – 7.4.0
    WP Fastest Cache Premium: por Emre Vona – 1.5.5
    WP Fastest Cache: por Emre Vona – 0.8.9.9
    Enlaces Personalizados a Galerías WP: por johnogg – 1.12
    SEOPress PRO: por Benjamin Denis – 3.7.2
    SEOPress: por Benjamin Denis – 3.7.2
    YITH WooCommerce Name Your Price: por YITH – 1.1.7
    
    ### Inactive Plugins (3) ###
    
    Duplicate Post: por Enrico Battocchi – 3.2.3
    Regenerate Thumbnails: por Alex Mills (Viper007Bond) – 3.1.1
    WooCommerce Google Analytics Integration: por WooCommerce – 1.4.14
    
    ### Settings ###
    
    API Enabled: ?
    Force SSL: –
    Currency: CLP ($)
    Currency Position: left
    Thousand Separator: .
    Decimal Separator: .
    Number of Decimals: 0
    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 WooCommerce.com: –
    
    ### WC Pages ###
    
    Base de la tienda: #18658 - /producto/
    Carrito: #7 - /carro/
    Finalizar compra: #8 - /caja/
    Mi cuenta: #9 - /my-account/
    Términos y condiciones: #2106 - /terminos-y-condiciones/
    
    ### Theme ###
    
    Name: Avada Child
    Version: 1.0.0
    Author URL: https://theme-fusion.com
    Child Theme: ?
    Parent Theme Name: Avada
    Parent Theme Version: 6.1.0
    Parent Theme Author URL: https://themeforest.net/user/ThemeFusion
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: Avada/woocommerce/cart/cart.php
    Avada/woocommerce/checkout/form-pay.php
    Avada/woocommerce/checkout/review-order.php
    Avada/woocommerce/checkout/thankyou.php
    La  version 3.6.0 de Avada-Child-Theme/woocommerce/emails/admin-cancelled-order.php está obsoleta. La versión del núcleo es la 3.7.0
    La  version 3.5.0 de Avada-Child-Theme/woocommerce/emails/admin-failed-order.php está obsoleta. La versión del núcleo es la 3.7.0
    La  version 3.5.0 de Avada-Child-Theme/woocommerce/emails/admin-new-order.php está obsoleta. La versión del núcleo es la 3.7.0
    La  version 3.5.0 de Avada-Child-Theme/woocommerce/emails/customer-completed-order.php está obsoleta. La versión del núcleo es la 3.7.0
    La  version 3.5.0 de Avada-Child-Theme/woocommerce/emails/customer-invoice.php está obsoleta. La versión del núcleo es la 3.7.0
    La  version 3.5.2 de Avada-Child-Theme/woocommerce/emails/customer-new-account.php está obsoleta. La versión del núcleo es la 3.7.0
    La  version 3.6.0 de Avada-Child-Theme/woocommerce/emails/customer-note.php está obsoleta. La versión del núcleo es la 3.7.0
    La  version 3.5.0 de Avada-Child-Theme/woocommerce/emails/customer-on-hold-order.php está obsoleta. La versión del núcleo es la 3.7.0
    La  version 3.5.4 de Avada-Child-Theme/woocommerce/emails/customer-processing-order.php está obsoleta. La versión del núcleo es la 3.7.0
    La  version 3.5.0 de Avada-Child-Theme/woocommerce/emails/customer-refunded-order.php está obsoleta. La versión del núcleo es la 3.7.0
    La  version 3.5.0 de Avada-Child-Theme/woocommerce/emails/customer-reset-password.php está obsoleta. La versión del núcleo es la 3.7.0
    Avada-Child-Theme/woocommerce/emails/email-addresses.php
    Avada-Child-Theme/woocommerce/emails/email-customer-details.php
    Avada-Child-Theme/woocommerce/emails/email-downloads.php
    La  version 2.3.0 de Avada-Child-Theme/woocommerce/emails/email-footer.php está obsoleta. La versión del núcleo es la 3.7.0
    Avada-Child-Theme/woocommerce/emails/email-header.php
    La  version 3.3.1 de Avada-Child-Theme/woocommerce/emails/email-order-details.php está obsoleta. La versión del núcleo es la 3.7.0
    La  version 3.5.0 de Avada-Child-Theme/woocommerce/emails/email-order-items.php está obsoleta. La versión del núcleo es la 3.7.0
    Avada-Child-Theme/woocommerce/emails/email-styles.php
    La  version 3.6.0 de Avada-Child-Theme/woocommerce/emails/plain/admin-cancelled-order.php está obsoleta. La versión del núcleo es la 3.7.0
    La  version 3.5.0 de Avada-Child-Theme/woocommerce/emails/plain/admin-failed-order.php está obsoleta. La versión del núcleo es la 3.7.0
    La  version 3.5.0 de Avada-Child-Theme/woocommerce/emails/plain/admin-new-order.php está obsoleta. La versión del núcleo es la 3.7.0
    La  version 3.5.0 de Avada-Child-Theme/woocommerce/emails/plain/customer-completed-order.php está obsoleta. La versión del núcleo es la 3.7.0
    La  version 3.5.0 de Avada-Child-Theme/woocommerce/emails/plain/customer-invoice.php está obsoleta. La versión del núcleo es la 3.7.0
    La  version 3.5.2 de Avada-Child-Theme/woocommerce/emails/plain/customer-new-account.php está obsoleta. La versión del núcleo es la 3.7.0
    La  version 3.5.0 de Avada-Child-Theme/woocommerce/emails/plain/customer-note.php está obsoleta. La versión del núcleo es la 3.7.0
    La  version 3.5.0 de Avada-Child-Theme/woocommerce/emails/plain/customer-on-hold-order.php está obsoleta. La versión del núcleo es la 3.7.0
    La  version 3.5.4 de Avada-Child-Theme/woocommerce/emails/plain/customer-processing-order.php está obsoleta. La versión del núcleo es la 3.7.0
    La  version 3.5.0 de Avada-Child-Theme/woocommerce/emails/plain/customer-refunded-order.php está obsoleta. La versión del núcleo es la 3.7.0
    La  version 3.5.0 de Avada-Child-Theme/woocommerce/emails/plain/customer-reset-password.php está obsoleta. La versión del núcleo es la 3.7.0
    Avada-Child-Theme/woocommerce/emails/plain/email-addresses.php
    Avada-Child-Theme/woocommerce/emails/plain/email-customer-details.php
    Avada-Child-Theme/woocommerce/emails/plain/email-downloads.php
    La  version 3.5.0 de Avada-Child-Theme/woocommerce/emails/plain/email-order-details.php está obsoleta. La versión del núcleo es la 3.7.0
    La  version 3.2.0 de Avada-Child-Theme/woocommerce/emails/plain/email-order-items.php está obsoleta. La versión del núcleo es la 3.7.0
    Avada/woocommerce/loop/loop-start.php
    Avada/woocommerce/single-product/add-to-cart/variable.php
    Avada/woocommerce/single-product/short-description.php
    Avada/woocommerce/single-product/tabs/additional-information.php
    Avada/woocommerce/single-product/tabs/description.php
    
    Outdated Templates: ?
    					
    					
    						Aprende cómo actualizar
    
    ### WooCommerce Google Product Feed fields ###
    
    Product description: Main product description (full preferred) plus variation description.
    Availability: Defaults to "in stock".
    Condition: Defaults to "new".
    Brand: Defaults to "LIVINGSTORE".
    Product Type: Pre-populates from product_cat taxonomy.
    Google Product Category: Defaults to "Furniture".
    Adult content: Defaults to "no".
    
    ### WooCommerce Google Product Feed options ###
    
    Include variations in feed: Enabled
    Send item_group_id: Enabled
    
    ### Action Scheduler ###
    
    Complete: 1.489
    Oldest: 2019-09-22 13:05:22 +0000
    Newest: 2019-10-23 11:59:26 +0000
    
    Pending: 2
    Oldest: 2019-10-23 12:59:26 +0000
    Newest: 2019-10-23 12:59:26 +0000
    
    Canceled: 0
    Oldest: –
    Newest: –
    
    In-progress: 0
    Oldest: –
    Newest: –
    
    Failed: 0
    Oldest: –
    Newest: –
    
    
    Plugin Author Michael K

    (@mikkamp)

    Automattic Happiness Engineer

    Hi there,

    Thanks for sending that through. In the System Status Report it mentions you are using a caching plugin. That plugin has the option to minify or combine JavaScript. Are you using that in the plugin?

    The way the Analytics plugin works, it initially includes the tracking script which will define the variable ga in the header. Then it will have some additional JavaScript which is added to the footer, which will use the previously defined variable ga.

    Based on the error it looks like the part in the header is either not loaded correctly, or loaded at a different time / later. This is something which can be caused by minification or combining JavaScript. Can you check if disabling this works. If it does them you might want to find a way to exclude the scripts from the plugin to make sure they aren’t changed in any way.

    Thread Starter User90812849801925124

    (@yanchile)

    Hi Michael,

    Thank you for your prompt reply.

    Yes, I use wp fastest cache pro with all minification options activated.
    But I tried everything.
    I disabled the caching plugin, I cleared the cache, I rebooted the server, I disabled several other plugins, and the only thing that produces the error is GA Plugin.
    When I disable GA Plugin everything works well.
    With GA activated and with WP Fastest Cache disabled, It produces the same problema.

    by the way, I have used both plugins together without any problem for months, but this past week after some update the problem started.

    Plugin Author Michael K

    (@mikkamp)

    Automattic Happiness Engineer

    Hi,

    Do you recall what was updated in the last week, to see if you can revert just that change to narrow down what might be causing the issue?

    Alternatively do you have a staging/test site where you can demonstrate how the code is being added to the page? From the error it still does look like the code is loaded in the wrong order but it would be easier to look at a live example.

    A staging site could also be used for doing a complete conflict test, like the one that’s described here: https://docs.woocommerce.com/document/how-to-test-for-conflicts/

    Thread Starter User90812849801925124

    (@yanchile)

    Hi Michael,

    I do not recall what was updated the last week.
    But everything gets updated once a week.

    My solution was to disable the plugin, the google tracking code was added manually and I started to use google tag manager.

    We are seeing a similar issue on https://www.curiouschef.com/. On Safari and Firefox, the “ga is not defined” issue is preventing other scripts from loading occasionally (when it is not cached / first page load).

    We have disabled our JS minification plugin, Autoptimize and are still seeing this issue.

    Looking forward to your reply!
    Sophia

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Uncaught ReferenceError: ga is not defined’ is closed to new replies.