Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dfoxwd

    (@dfoxwd)

    Was able to put a fix inside

    wp-content/plugins/woocommerce/src/Internal/DependencyManagement/AbstractServiceProvider.php

    At line 99 after the $class variable declaration:

    
    $instance = new \ReflectionClass($class);
    
    if (!$instance->hasMethod(Definition::INJECTION_METHOD)) {
    	return null;
    }
    

    It just check if the init method is in the reflection class, if not returns null.

    Semms like the exception is not thrown any more.

    • This reply was modified 4 years, 7 months ago by dfoxwd.

    Hello,

    Sorry to resume this topic, but i’m currently on WordPress 5.8 and have only Woocommerce and Storefront theme enabled at the moment.

    Currently on localhost environment, WSL1 Debianm php7.3, and all other plugins are disabled.

    ( ! ) ReflectionException: Method Automattic\WooCommerce\Proxies\LegacyProxy::init() does not exist in /wp-content/plugins/woocommerce/src/Internal/DependencyManagement/AbstractServiceProvider.php on line 100

    I’getting the following exception everywhere.

    Tried with a fresh wp install by creating a new empty database and enabling woocommerce only. As soon as woocommerce is enabled I get the exception above.

    Woocommerce gets enabled and the exception occurs at every page load.

    System report:

    
    ### WordPress Environment ###
    
    WordPress address (URL): http://wp-dev.vm
    Site address (URL): http://wp-dev.vm
    WC Version: 5.6.0
    REST API Version: ✔ 5.6.0
    WC Blocks Version: ✔ 5.5.1
    Action Scheduler Version: ✔ 3.2.1
    WC Admin Version: ✔ 2.5.1
    Log Directory Writable: ✔
    WP Version: 5.8
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ✔
    Language: it_IT
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache/2.4.38 (Debian)
    PHP Version: 7.3.29-1+0~20210701.86+debian10~1.gbp7ad6eb
    PHP Post Max Size: 8 MB
    PHP Time Limit: 0
    PHP Max Input Vars: 1000
    cURL Version: 7.64.0
    OpenSSL/1.1.1d
    
    SUHOSIN Installed: –
    MySQL Version: 5.7.30
    Max Upload Size: 2 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 5.6.0
    WC Database Prefix: wp_
    Dimensione totale database: 2.65MB
    Dimensione dati database: 1.25MB
    Dimensione indice database: 1.40MB
    wp_woocommerce_sessions: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_woocommerce_api_keys: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wp_woocommerce_attribute_taxonomies: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_woocommerce_downloadable_product_permissions: Dati: 0.02MB + indice: 0.06MB + motore InnoDB
    wp_woocommerce_order_items: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_woocommerce_order_itemmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wp_woocommerce_tax_rates: Dati: 0.02MB + indice: 0.06MB + motore InnoDB
    wp_woocommerce_tax_rate_locations: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wp_woocommerce_shipping_zones: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wp_woocommerce_shipping_zone_locations: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wp_woocommerce_shipping_zone_methods: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wp_woocommerce_payment_tokens: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_woocommerce_payment_tokenmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wp_woocommerce_log: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_actionscheduler_actions: Dati: 0.02MB + indice: 0.13MB + motore InnoDB
    wp_actionscheduler_claims: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_actionscheduler_groups: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_actionscheduler_logs: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wp_commentmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wp_comments: Dati: 0.02MB + indice: 0.09MB + motore InnoDB
    wp_links: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_options: Dati: 0.38MB + indice: 0.03MB + motore InnoDB
    wp_postmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wp_posts: Dati: 0.02MB + indice: 0.06MB + motore InnoDB
    wp_termmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wp_terms: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wp_term_relationships: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_term_taxonomy: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wp_usermeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wp_users: Dati: 0.02MB + indice: 0.05MB + motore InnoDB
    wp_wc_admin_notes: Dati: 0.05MB + indice: 0.00MB + motore InnoDB
    wp_wc_admin_note_actions: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_wc_category_lookup: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wp_wc_customer_lookup: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wp_wc_download_log: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wp_wc_order_coupon_lookup: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wp_wc_order_product_lookup: Dati: 0.02MB + indice: 0.06MB + motore InnoDB
    wp_wc_order_stats: Dati: 0.02MB + indice: 0.05MB + motore InnoDB
    wp_wc_order_tax_lookup: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wp_wc_product_meta_lookup: Dati: 0.02MB + indice: 0.09MB + motore InnoDB
    wp_wc_reserved_stock: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wp_wc_tax_rate_classes: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wp_wc_webhooks: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    
    ### Post Type Counts ###
    
    attachment: 1
    page: 7
    post: 2
    
    ### Security ###
    
    Secure connection (HTTPS): ❌
    					Il tuo negozio non utilizza HTTPS. Scopri di più su HTTPS e certificati SSL .
    Hide errors from visitors: ✔
    
    ### Active Plugins (1) ###
    
    WooCommerce: by Automattic – 5.6.0
    
    ### Inactive Plugins (7) ###
    
    Contact Form 7: by Takayuki Miyoshi – 5.4.2
    Elementor: by Elementor.com – 3.4.2
    Elementor Pro: by Elementor.com – 3.3.1
    EWave - Manallarte data architecture: by E-Wave – 1.0.0
    EWave - Manallarte main website data architecture: by E-Wave – 1.0.0
    Flamingo: by Takayuki Miyoshi – 2.2.2
    Gutenberg: by Gutenberg Team – 11.3.0
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: USD ($)
    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 WooCommerce.com: –
    
    ### WC Pages ###
    
    Shop base: #6 - /negozio/
    Carrello: #7 - /carrello/
    Pagamento: #8 - /pagamento/
    Il mio account: #9 - /mio-account/
    Termini e condizioni: ❌ La pagina non è impostata
    
    ### Theme ###
    
    Name: Storefront
    Version: 3.8.1
    Author URL: https://woocommerce.com/
    Child Theme: ❌ – Se stai modificando WooCommerce o un tema genitore che non hai costruito personalmente
    ti consigliamo di utilizzare un tema child. Vedi: Come creare un tema child
    
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: –
    
    ### Action Scheduler ###
    
    Completato: 2
    Oldest: 2021-08-22 16:25:59 +0200
    Newest: 2021-08-22 16:27:24 +0200
    
    ### Status report information ###
    
    Generated at: 2021-08-22 16:27:49 +02:00
    
Viewing 2 replies - 1 through 2 (of 2 total)