LinkNacional / wc_cielo_payment_gateway

GNU General Public License v3.0
2 stars 0 forks source link

Logger está sendo chamada de forma incorreta #108

Open emanuellopess opened 3 days ago

emanuellopess commented 3 days ago

Erro ocorre quando pagamento para rede woocommerce está habilitado, ao tentar salvar as configurações ocorre o seguinte erro:

Fatal error: Uncaught Error: Call to a member function log() on null in /var/www/html/wp-content/plugins/lkn-wc-gateway-cielo/includes/LknWCGatewayCieloDebit.php:347 Stack trace: #0 /var/www/html/wp-content/plugins/lkn-wc-gateway-cielo/includes/LknWCGatewayCieloDebit.php(83): Lkn\WCCieloPaymentGateway\Includes\LknWCGatewayCieloDebit->generate_debit_auth_token() #1 /var/www/html/wp-content/plugins/lkn-wc-gateway-cielo/includes/LknWcCieloDebitBlocks.php(14): Lkn\WCCieloPaymentGateway\Includes\LknWCGatewayCieloDebit->__construct() #2 /var/www/html/wp-content/plugins/woocommerce/src/Blocks/Integrations/IntegrationRegistry.php(53): Lkn\WCCieloPaymentGateway\Includes\LknWcCieloDebitBlocks->initialize() #3 /var/www/html/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Blocks\Integrations\IntegrationRegistry->initialize('') #4 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #5 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #6 /var/www/html/wp-settings.php(704): do_action('init') #7 /var/www/html/wp-config.php(149): require_once('/var/www/html/w...') #8 /var/www/html/wp-load.php(50): require_once('/var/www/html/w...') #9 /var/www/html/wp-admin/admin.php(34): require_once('/var/www/html/w...') #10 {main} thrown in /var/www/html/wp-content/plugins/lkn-wc-gateway-cielo/includes/LknWCGatewayCieloDebit.php on line 347