• Resolved fabiobcosta

    (@fabiobcosta)


    i`m getting this error at wordpress admin page after updating my woocommerce version to 3.9.1. I have WooCommerce PayPal Checkout Gateway version 1.6.19 instaled and active.

    the error message:

    Warning: Use of undefined constant WC_VERSION – assumed ‘WC_VERSION’ (this will throw an Error in a future version of PHP) in /home1/lobosa17/public_html/homologacao.lobosadventure.com.br/wp-content/plugins/woocommerce-gateway-paypal-express-checkout/includes/class-wc-gateway-ppec-plugin.php on line 138

Viewing 6 replies - 1 through 6 (of 6 total)
  • +1 I got this after updating WooCommerce PayPal Checkout.

    constant WC_VERSION - assumed 'WC_VERSION' (this will throw an Error in a future version of PHP) in .../wp-content/plugins/woocommerce-gateway-paypal-express-checkout/includes/class-wc-gateway-ppec-plugin.php on line 138

    got same problem It must be bug in the recent 1.6.19 update.

    Thread Starter fabiobcosta

    (@fabiobcosta)

    Hey there, my error message is gone! Im not sure why but ive tried this way: First i finaly followed the paypal checkout express warning, changing settings on “smart payment buttons” checkbox item. After that i went to update the woocommerce version and i didn`t receive the error message anymore!

    Let me know if this works for you guys too!

    Plugin Support jessepearson

    (@jessepearson)

    Automattic Happiness Engineer

    @fabiobcosta It’s odd that you are receiving such a notice, the PayPal Checkout extension must be being loaded before WooCommerce does, so the constant is not defined. That is all I can think in this instance, since the code is actually correct.

    I do see in the code where checks are out of order, but that shouldn’t matter in this case. I have reported this here:
    https://github.com/woocommerce/woocommerce-gateway-paypal-express-checkout/issues/680

    Would you mind going to WooCommerce > Status, then using the button near the top left to copy the System Status Report then paste it here for me?

    Thread Starter fabiobcosta

    (@fabiobcosta)

    Sure Jesse, thanks for your repply! Anyway, im not receiving that error anymore, dont know wy it appears before and dont know wy its gonne! ??

    Folows:

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://homologacao.lobosadventure.com.br
    Site address (URL): https://homologacao.lobosadventure.com.br
    WC Version: 3.9.2
    REST API Version: ? 1.0.7
    Log Directory Writable: ?
    WP Version: 5.3.2
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: ?
    WP Cron: ?
    Language: pt_BR
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.2.26
    PHP Post Max Size: 260 MB
    PHP Time Limit: 0
    PHP Max Input Vars: 1000
    cURL Version: 7.67.0
    OpenSSL/1.1.1d
    
    SUHOSIN Installed: –
    MySQL Version: 5.7.23-23
    Max Upload Size: 256 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 3.8.1
    WC Database Prefix: wp_
    Tamanho total do banco de dados: 49.64MB
    Tamanho dos dados do banco de dados: 45.21MB
    Tamanho do índice do banco de dado: 4.43MB
    wp_woocommerce_sessions: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
    wp_woocommerce_api_keys: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
    wp_woocommerce_attribute_taxonomies: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
    wp_woocommerce_downloadable_product_permissions: Dados: 0.02MB + índex: 0.06MB + mecanismo InnoDB
    wp_woocommerce_order_items: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
    wp_woocommerce_order_itemmeta: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
    wp_woocommerce_tax_rates: Dados: 0.02MB + índex: 0.06MB + mecanismo InnoDB
    wp_woocommerce_tax_rate_locations: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
    wp_woocommerce_shipping_zones: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_woocommerce_shipping_zone_locations: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
    wp_woocommerce_shipping_zone_methods: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_woocommerce_payment_tokens: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
    wp_woocommerce_payment_tokenmeta: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
    wp_woocommerce_log: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
    wp_actionscheduler_actions: Dados: 0.00MB + índex: 0.02MB + mecanismo MyISAM
    wp_actionscheduler_claims: Dados: 0.00MB + índex: 0.00MB + mecanismo MyISAM
    wp_actionscheduler_groups: Dados: 0.00MB + índex: 0.01MB + mecanismo MyISAM
    wp_actionscheduler_logs: Dados: 0.00MB + índex: 0.00MB + mecanismo MyISAM
    wp_commentmeta: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
    wp_comments: Dados: 0.02MB + índex: 0.09MB + mecanismo InnoDB
    wp_failed_jobs: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_limb_gallery_albums: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
    wp_limb_gallery_albumscontent: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
    wp_limb_gallery_comments: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
    wp_limb_gallery_galleries: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
    wp_limb_gallery_galleriescontent: Dados: 0.06MB + índex: 0.02MB + mecanismo InnoDB
    wp_limb_gallery_settings: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_limb_gallery_shortcodes: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_limb_gallery_themes: Dados: 0.05MB + índex: 0.02MB + mecanismo InnoDB
    wp_links: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
    wp_litespeed_img_optm: Dados: 0.00MB + índex: 0.00MB + mecanismo MyISAM
    wp_litespeed_optimizer: Dados: 0.00MB + índex: 0.00MB + mecanismo MyISAM
    wp_mailchimp_carts: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_mailchimp_jobs: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_options: Dados: 3.42MB + índex: 0.09MB + mecanismo InnoDB
    wp_postmeta: Dados: 14.52MB + índex: 2.03MB + mecanismo InnoDB
    wp_posts: Dados: 20.38MB + índex: 0.20MB + mecanismo InnoDB
    wp_queue: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_sbi_instagram_feeds_posts: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
    wp_sbi_instagram_posts: Dados: 0.42MB + índex: 0.00MB + mecanismo InnoDB
    wp_termmeta: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
    wp_terms: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
    wp_term_relationships: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
    wp_term_taxonomy: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
    wp_usermeta: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
    wp_users: Dados: 0.02MB + índex: 0.05MB + mecanismo InnoDB
    wp_wc_admin_notes: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_wc_admin_note_actions: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
    wp_wc_category_lookup: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_wc_customer_lookup: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
    wp_wc_download_log: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
    wp_wc_order_coupon_lookup: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
    wp_wc_order_product_lookup: Dados: 0.02MB + índex: 0.06MB + mecanismo InnoDB
    wp_wc_order_stats: Dados: 0.02MB + índex: 0.05MB + mecanismo InnoDB
    wp_wc_order_tax_lookup: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB
    wp_wc_product_meta_lookup: Dados: 0.02MB + índex: 0.09MB + mecanismo InnoDB
    wp_wc_tax_rate_classes: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
    wp_wc_webhooks: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
    wp_wfblockediplog: Dados: 0.00MB + índex: 0.00MB + mecanismo MyISAM
    wp_wfblocks7: Dados: 0.00MB + índex: 0.00MB + mecanismo MyISAM
    wp_wfconfig: Dados: 1.38MB + índex: 0.01MB + mecanismo MyISAM
    wp_wfcrawlers: Dados: 0.00MB + índex: 0.00MB + mecanismo MyISAM
    wp_wffilechanges: Dados: 0.00MB + índex: 0.00MB + mecanismo MyISAM
    wp_wffilemods: Dados: 2.47MB + índex: 0.54MB + mecanismo MyISAM
    wp_wfhits: Dados: 0.03MB + índex: 0.01MB + mecanismo MyISAM
    wp_wfhoover: Dados: 0.00MB + índex: 0.00MB + mecanismo MyISAM
    wp_wfissues: Dados: 0.03MB + índex: 0.01MB + mecanismo MyISAM
    wp_wfknownfilelist: Dados: 1.24MB + índex: 0.16MB + mecanismo MyISAM
    wp_wflivetraffichuman: Dados: 0.00MB + índex: 0.00MB + mecanismo MyISAM
    wp_wflocs: Dados: 0.00MB + índex: 0.00MB + mecanismo MyISAM
    wp_wflogins: Dados: 0.02MB + índex: 0.01MB + mecanismo MyISAM
    wp_wfls_2fa_secrets: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB
    wp_wfls_settings: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB
    wp_wfnotifications: Dados: 0.00MB + índex: 0.00MB + mecanismo MyISAM
    wp_wfpendingissues: Dados: 0.00MB + índex: 0.00MB + mecanismo MyISAM
    wp_wfreversecache: Dados: 0.00MB + índex: 0.00MB + mecanismo MyISAM
    wp_wfsnipcache: Dados: 0.00MB + índex: 0.00MB + mecanismo MyISAM
    wp_wfstatus: Dados: 0.23MB + índex: 0.09MB + mecanismo MyISAM
    wp_wftrafficrates: Dados: 0.00MB + índex: 0.00MB + mecanismo MyISAM
    
    ### Post Type Counts ###
    
    _light_image_gallery: 1
    attachment: 156
    custom_css: 2
    custom-css-js: 3
    nav_menu_item: 14
    page: 12
    portfolio: 4
    post: 14
    product: 1
    revision: 455
    shop_order: 1
    ticket: 1
    wpcf7_contact_form: 2
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?Mensagens de erro n?o devem ser mostradas para visitantes.
    
    ### Active Plugins (31) ###
    
    Advanced Custom Fields PRO: por Elliot Condon – 5.8.7
    All-in-One WP Migration: por ServMask – 6.55
    Breadcrumb NavXT: por John Havlik – 6.4.0
    Child Theme Configurator: por Lilaea Media – 2.5.2
    Contact Form 7: por Takayuki Miyoshi – 5.1.6
    Simple Custom CSS and JS: por SilkyPress.com – 3.29
    Smash Balloon Custom Facebook Feed: por Smash Balloon – 2.12.3
    Custom Sidebars by ProteusThemes: por ProteusThemes – 1.0.1
    Smash Balloon Instagram Feed: por Smash Balloon – 2.2
    Jetpack por WordPress.com: por Automattic – 8.2
    Limb Gallery: por Limb – 1.4.4
    Tradu??o (Loco): por Tim Whitlock – 2.3.1
    Mailchimp for WooCommerce: por Mailchimp – 2.3.2
    Portfolio Post Type: por Devin Price – 1.0.0
    ProteusThemes Shortcodes: por ProteusThemes – 1.7.3
    Really Simple SSL: por Rogier Lankhorst
    Mark Wolters – 3.2.9
    
    Rede WooCommerce: por Rede – 1.0.0 – N?o testado com a vers?o ativa do WooCommerce
    Shop as Client for WooCommerce - PRO add-on: por Webdados – 1.5.3
    Shop as Client for WooCommerce: por Webdados – 1.5.3
    Page Builder da SiteOrigin: por SiteOrigin – 2.10.14
    SiteOrigin Widgets Bundle: por SiteOrigin – 1.16.0
    T(-) Countdown: por twinpictures – 2.4.7
    WooCommerce PayPal Checkout Gateway: por WooCommerce – 1.6.19
    WooCommerce TM Extra Product Options: por themeComplete – 4.9.7 – N?o testado com a vers?o ativa do WooCommerce
    WooCommerce: por Automattic – 3.9.2
    Wordfence Security: por Wordfence – 7.4.6
    WP Featherlight: por Cipher – 1.3.0
    WP Mail SMTP: por WPForms – 1.8.1
    WP Rollback: por Impress.org – 1.7.0
    WP Super Cache: por Automattic – 1.7.1
    YITH Event Tickets for WooCommerce Premium: por YITH – 1.3.6 – N?o testado com a vers?o ativa do WooCommerce
    
    ### Inactive Plugins (0) ###
    
    ### Dropin Plugins (1) ###
    
    advanced-cache.php: advanced-cache.php
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: BRL (R$)
    Currency Position: left
    Thousand Separator: .
    Decimal Separator: ,
    Number of Decimals: 2
    Taxonomies: Product Types: appointment (appointment)
    external (external)
    grouped (grouped)
    registrations (registrations)
    simple (simple)
    ticket-event (ticket-event)
    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 da loja: #825 - /shop/
    Carrinho: #826 - /shop/carrinho/
    Finalizar compra: #827 - /shop/checkout/
    Minha conta: #828 - /shop/area-do-associado/
    Termos e condi??es: #3 - /politica-de-privacidade/
    
    ### Theme ###
    
    Name: Adrenaline Child Theme
    Version: 1.0.0.1575925333
    Author URL: 
    Child Theme: ?
    Parent Theme Name: Adrenaline PT
    Parent Theme Version: 1.8.2
    Parent Theme Author URL: https://www.proteusthemes.com/
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: /home1/lobosa17/public_html/homologacao.lobosadventure.com.br/wp-content/plugins/woocommerce-tm-extra-product-options/templates/cart/cart-item-data.php
    
    ### Action Scheduler ###
    
    Complete: 1
    Oldest: 2020-02-13 10:58:58 -0300
    Newest: 2020-02-13 10:58:58 -0300
    
    

    Thanks again for your support!

    Plugin Support jessepearson

    (@jessepearson)

    Automattic Happiness Engineer

    @fabiobcosta The error itself was happening during an update process. Once the plugin and its database entries are updated the process would no longer run. The process most likely completed, and/or whatever was causing the conflict stopped, so the notice is no longer showing.

    The developers have also fixed the code so something like this shouldn’t happen in the future, so I am going to set this thread to resolved now ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘woocommerce update error’ is closed to new replies.