• Resolved djuanes

    (@djuanes)


    Hi:

    Everytime i add a product to cart i get this error message:

    2017/04/14 00:46:15 [error] 24995#24995: *75 FastCGI sent in stderr: "PHP message: id was called incorrectly. No se debería acceder a las propiedades del producto directamente.. This message was added in version 3.0" while reading response header from upstream, client: 79.155.203.114, server: , request: "POST /tienda/?wc-ajax=add_to_cart HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.1-fpm.sock:", host: "ortofarma.es", referrer: "https://ortofarma.es/tienda/"

    and when i want to remove item from cart( woo floating cart plugin ) i get this error message:

    2017/04/14 00:46:50 [error] 24995#24995: *75 FastCGI sent in stderr: "PHP message: id was called incorrectly. No se debería acceder a las propiedades del producto directamente.. This message was added in version 3.0" while reading response header from upstream, client: 79.155.203.114, server: , request: "POST /tienda/?wc-ajax=get_refreshed_fragments HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.1-fpm.sock:", host: "ortofarma.es", referrer: "https://ortofarma.es/tienda/"

    
    ### WordPress Environment ###
    
    Home URL: https://ortofarma.es
    Site URL: https://ortofarma.es
    WC Version: 3.0.2
    Log Directory Writable: ?
    WP Version: 4.7.3
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: es_ES
    
    ### Server Environment ###
    
    Server Info: nginx/1.11.9
    PHP Version: 7.1.4-1+deb.sury.org~xenial+1
    PHP Post Max Size: 64 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.47.0
    OpenSSL/1.0.2g
    
    SUHOSIN Installed: –
    Max Upload Size: 64 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 3.0.2
    WC Database Prefix: wp_
    woocommerce_sessions: ?
    woocommerce_api_keys: ?
    woocommerce_attribute_taxonomies: ?
    woocommerce_downloadable_product_permissions: ?
    woocommerce_order_items: ?
    woocommerce_order_itemmeta: ?
    woocommerce_tax_rates: ?
    woocommerce_tax_rate_locations: ?
    woocommerce_shipping_zones: ?
    woocommerce_shipping_zone_locations: ?
    woocommerce_shipping_zone_methods: ?
    woocommerce_payment_tokens: ?
    woocommerce_payment_tokenmeta: ?
    MaxMind GeoIP Database: ?
    
    ### Security ###
    
    Secure connection (HTTPS): ?Tu tienda no está usando HTTPS. Aprende más sobre HTTPS y los certificados SSL.
    Hide errors from visitors: ?
    
    ### Active Plugins (56) ###
    
    Gravity Forms: por rocketgenius – 2.2.1.2
    All In One Schema.org Rich Snippets: por Brainstorm Force – 1.5.1
    Payment Gateway Based Fees and Discounts for WooCommerce: por Algoritmika Ltd – 2.1.1
    Aviso de Cookie: por dFactory – 1.2.38
    Custom Related Products for WooCommerce: por Scott Nelle – 1.3
    Display Widgets: por Strategy11 – 2.05
    Easy Testimonials: por Gold Plugins – 2.2.3
    FacetWP - Facet Stack: por David Cramer – 1.0
    FacetWP - Cache: por FacetWP
    LLC – 1.3.2
    
    FacetWP: por FacetWP
    LLC – 2.8.4
    
    Favicon by RealFaviconGenerator: por Philippe Bernard – 1.3.10
    Genesis Connect for WooCommerce: por StudioPress – 0.9.9
    Genesis Extender: por The Cobalt Apps Team – 1.7.4
    Genesis Responsive Slider: por StudioPress – 0.9.5
    Genesis Simple Sidebars: por StudioPress – 2.1.0
    Genesis Translations: por ThemeMix
    Remkus de Vries – 2.4.1
    
    Google Analytics for WordPress by MonsterInsights: por MonsterInsights – 6.1.7
    Gravity Forms Survey Add-On: por Rocketgenius – 3.2
    Imagify: por WP Media – 1.6.4
    Loco Translate: por Tim Whitlock – 2.0.13
    Magic Zoom Plus for WooCommerce: por Magic Toolbox – 6.5.7
    Iconos de menú: por Dzikri Aziz – 0.10.2
    Nginx Cache: por Till Krüss – 1.0.2
    Google Analytics for WordPress: por praveenchauhan1984 – 1.1
    Redis Object Cache: por Till Krüss – 1.3.5
    RedSys Gateway for WooCommerce Pro: por codection – 2.5.2
    Regenerate Thumbnails: por Alex Mills (Viper007Bond) – 2.2.6
    Simple Social Icons: por Nathan Rice – 2.0.1
    String Locator: por Clorith – 2.1.2
    Super Socializer: por Team Heateor – 7.8.19
    TinyMCE Advanced: por Andrew Ozz – 4.4.3
    UpdraftPlus - Backup/Restore: por UpdraftPlus.Com
    DavidAnderson – 2.12.40.21
    
    Widget Clone: por 93digital – 1.1
    Woo Floating Cart: por XplodedThemes – 1.0.8.5
    WooCommerce Composite Products: por WooThemes – 3.9.1
    WooCommerce Expand Tabs: por Diana Burduja – 1.4
    WooCommerce AdWords Conversion Tracking: por Wolf+B?r GmbH – 1.3.5
    WooCommerce Google Analytics Pro: por SkyVerge – 1.2.0
    WooCommerce Order Status Manager: por SkyVerge – 1.7.0
    WooCommerce Product Add-ons: por WooCommerce – 2.8.1
    WooCommerce Product Bundles: por WooThemes – 5.2.1
    WooCommerce Google Product Feed: por Lee Willis – 7.0.7
    WooCommerce Tab Manager: por SkyVerge – 1.8.0
    WooCommerce: por Automattic – 3.0.2 – 3.0.3 está disponible
    WooSidebars: por WooThemes – 1.4.3
    WooCommerce Helper: por WooCommerce – 1.7.2 – Red habilitado
    Yoast SEO: por Equipo Yoast – 4.6
    WP-Optimize: por David Anderson
    Ruhani Rabin
    Team Updraft – 2.1.1
    
    Yoast SEO: WooCommerce: por Equipo Yoast – 4.6
    XO10 - WooCommerce Categories widget: por Walter Lee – 2.0
    YITH WooCommerce Advanced Reviews Premium: por YITHEMES – 1.4.1
    YITH WooCommerce Ajax Search Premium: por YITHEMES – 1.5.3
    YITH WooCommerce Brands Add-on Premium: por Yithemes – 1.1.0
    YITH WooCommerce Bulk Product Editing Premium: por YITHEMES – 1.2.0
    YITH WooCommerce Email Templates Premium: por YITHEMES – 1.3.1
    YITH WooCommerce Review Reminder Premium: por YITHEMES – 1.3.0
    
    ### Settings ###
    
    API Enabled: ?
    Force SSL: –
    Currency: EUR (€)
    Currency Position: right
    Thousand Separator: .
    Decimal Separator: ,
    Number of Decimals: 2
    Taxonomies: Product Types: bundle (bundle)
    composite (composite)
    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 tienda: #7 - /tienda/
    Carrito: #8 - /carro/
    Finalizar compra: #9 - /finalizar-compra/
    Mi cuenta: #10 - /mi-cuenta/
    
    ### Theme ###
    
    Name: Envy Pro
    Version: 1.3.0
    Author URL: https://www.jonbarratt.com
    Child Theme: ?
    Parent Theme Name: Genesis
    Parent Theme Version: 2.4.2
    Parent Theme Author URL: https://www.studiopress.com/
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: envy-pro/woocommerce/checkout/review-order.php
    

    I’m experiencing issues for adding and removing products for ajax woo floating cart plugin.

    any idea?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Under WC 2.6.x, code could get a product id using:
    $product_id = $product->id;
    This is “accessing the object properties directly”. This is now deprecated and gives the message you are seeing.

    From WC 3.0, the code to use instead is:
    $product_id = $product->get_id();

    So, one of your plugins or theme has not been updated to use the new method and remain compatible with WC.

    I can’t tell which one it is. I can see your theme is up-to-date, but make sure all your plugins are up-to-date. If so, you’ll need to deactivate them selectively, and switch to the default theme if necessary, testing each time, to be able to identify which software element has not yet been updated by its authors.

    Thread Starter djuanes

    (@djuanes)

    I’ve used String Locator Plugin and replaced string “$product->id;” by “$product->get_id();” at all plugins and now i get not error messages.

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wc-ajax=add_to_cart and wc-ajax=get_refreshed_fragments errors’ is closed to new replies.