Teplitsa / Leyka

Плагин для WordPress, упрощающий сбор, управление и отчетность по онлайн-пожертвованиям, Leyka - Crowdfunding Fundraising and Donations Management System
https://leyka.org
GNU General Public License v2.0
84 stars 51 forks source link

Исправляет ошибку Call to undefined function GuzzleHttp\Promise\unwrap() #412

Closed campusboy87 closed 1 year ago

campusboy87 commented 1 year ago

Если включить web-аналитику, как на скриншоте ниже image то во фронте на странице любой компании получим фатальную ошибку:

Fatal error: Uncaught Error: Call to undefined function GuzzleHttp\Promise\unwrap() in ...\wp-content\plugins\leyka\vendor\theiconic\php-ga-measurement-protocol\src\Network\HttpClient.php:51 
Stack trace: 
#0 ...\wp-includes\class-wp-hook.php(308): TheIconic\Tracking\GoogleAnalytics\Network\HttpClient->__destruct() 
#1 ...\wp-includes\class-wp-hook.php(332): WP_Hook->apply_filters('', Array) 
#2 ...\wp-includes\plugin.php(517): WP_Hook->do_action(Array) 
#3 ...\wp-includes\general-template.php(3049): do_action('wp_head') 
#4 ...\wp-includes\template-canvas.php(17): wp_head() 
#5 ...\wp-includes\template-loader.php(106): include('F:\\serverl6\\www...') 
#6 ...\wp-blog-header.php(19): require_once('F:\\serverl6\\www...') 
#7 ...\index.php(17): require('F:\\serverl6\\www...') 
#8 {main} thrown in ...\wp-content\plugins\leyka\vendor\theiconic\php-ga-measurement-protocol\src\Network\HttpClient.php on line 51

Внесённые правки устраняют проблему.