Docker PHP-FPM 8.2 Undefined constant GuzzleHttp\Client::VERSION
When trying to upload custom font, I encounter an uncaught error. I've tried checking on forums but can't quite find the exact issue. I've tried to disable W3 Total Cache and uploading custom font worked. Is there a setting I need to do on that plugin?
Do advice thanks~
NOTICE: PHP message: PHP Fatal error: Uncaught Error: Undefined constant GuzzleHttp\Client::VERSION in /var/www/html/wp-content/plugins/brizy-pro/vendor/guzzlehttp/guzzle/src/functions.php:136
Stack trace:
#0 /var/www/html/wp-content/plugins/w3-total-cache/vendor/aws/aws-sdk-php/src/functions.php(300): GuzzleHttp\default_user_agent()
#1 /var/www/html/wp-content/plugins/w3-total-cache/vendor/aws/aws-sdk-php/src/Credentials/InstanceProfileProvider.php(263): Aws\default_user_agent()
#2 /var/www/html/wp-content/plugins/w3-total-cache/vendor/aws/aws-sdk-php/src/Credentials/InstanceProfileProvider.php(113): Aws\Credentials\InstanceProfileProvider->request('api/token', 'PUT', Array)
#3 [internal function]: Aws\Credentials\InstanceProfileProvider->Aws\Credentials\{closure}()
#4 /var/www/html/wp-content/plugins/w3-total-cache/vendor/guzzlehttp/promises/src/Coroutine.php(72): Generator->current()
#5 /var/www/html/wp-content/plugins/w3-total-cache/vendor/guzzlehttp/promises/src/Coroutine.php(83): GuzzleHttp\Promise\Coroutine->__construct(Object(Closure))
#6 /var/www/html/wp-content/plugins/w3-total-cache/vendor/aws/aws-sdk-php/src/Credentials/InstanceProfileProvider.php(107): GuzzleHttp\Promise\Coroutine::of(Object(Closure))
#7 /var/www/html/wp-content/plugins/w3-total-cache/vendor/guzzlehttp/promises/src/Promise.php(209): Aws\Credentials\InstanceProfileProvider->__invoke(Object(Aws\Exception\CredentialsException))
#8 /var/www/html/wp-content/plugins/w3-total-cache/vendor/guzzlehttp/promises/src/Promise.php(174): GuzzleHttp\Promise\Promise::callHandler(2, Object(Aws\Exception\CredentialsException), NULL)
#9 /var/www/html/wp-content/plugins/w3-total-cache/vendor/guzzlehttp/promises/src/RejectedPromise.php(49): GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}(Object(Aws\Exception\CredentialsException))
#10 /var/www/html/wp-content/plugins/w3-total-cache/vendor/guzzlehttp/promises/src/TaskQueue.php(52): GuzzleHttp\Promise\RejectedPromise::GuzzleHttp\Promise\{closure}()
#11 /var/www/html/wp-content/plugins/w3-total-cache/vendor/guzzlehttp/promises/src/Promise.php(251): GuzzleHttp\Promise\TaskQueue->run(true)
#12 /var/www/html/wp-content/plugins/w3-total-cache/vendor/guzzlehttp/promises/src/Promise.php(227): GuzzleHttp\Promise\Promise->invokeWaitFn()
#13 /var/www/html/wp-content/plugins/w3-total-cache/vendor/guzzlehttp/promises/src/Promise.php(272): GuzzleHttp\Promise\Promise->waitIfPending()
#14 /var/www/html/wp-content/plugins/w3-total-cache/vendor/guzzlehttp/promises/src/Promise.php(229): GuzzleHttp\Promise\Promise->invokeWaitList()
#15 /var/www/html/wp-content/plugins/w3-total-cache/vendor/guzzlehttp/promises/src/Promise.php(69): GuzzleHttp\Promise\Promise->waitIfPending()
#16 /var/www/html/wp-content/plugins/w3-total-cache/vendor/aws/aws-sdk-php/src/AwsClientTrait.php(58): GuzzleHttp\Promise\Promise->wait()
#17 /var/www/html/wp-content/plugins/w3-total-cache/vendor/aws/aws-sdk-php/src/AwsClientTrait.php(86): Aws\AwsClient->execute(Object(Aws\Command))
#18 /var/www/html/wp-content/plugins/w3-total-cache/CdnEngine_Mirror_CloudFront.php(307): Aws\AwsClient->__call('listDistributio...', Array)
#19 /var/www/html/wp-content/plugins/w3-total-cache/CdnEngine_Mirror_CloudFront.php(69): W3TC\CdnEngine_Mirror_CloudFront->_get_distribution()
#20 /var/www/html/wp-content/plugins/w3-total-cache/Cdn_Core.php(279): W3TC\CdnEngine_Mirror_CloudFront->purge(Array, Array)
#21 /var/www/html/wp-content/plugins/w3-total-cache/Cdn_Plugin.php(242): W3TC\Cdn_Core->purge(Array, Array)
#22 /var/www/html/wp-includes/class-wp-hook.php(326): W3TC\Cdn_Plugin->update_attachment_metadata(Array)
#23 /var/www/html/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
#24 /var/www/html/wp-includes/post.php(6579): apply_filters('wp_update_attac...', Array, 2727)
#25 /var/www/html/wp-admin/includes/media.php(517): wp_update_attachment_metadata(2727, Array)
#26 /var/www/html/wp-content/plugins/brizy/admin/fonts/manager.php(211): media_handle_sideload(Array, 2726, 'Attached font f...')
#27 /var/www/html/wp-content/plugins/brizy/admin/fonts/api.php(111): Brizy_Admin_Fonts_Manager->createFont('pu2Cc7RyAKw0', 'Alliance', Array, 'uploaded')
#28 /var/www/html/wp-includes/class-wp-hook.php(324): Brizy_Admin_Fonts_Api->actionCreateFont('')
#29 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#30 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#31 /var/www/html/wp-admin/admin-ajax.php(192): do_action('wp_ajax_brizy-c...')
#32 {main}
thrown in /var/www/html/wp-content/plugins/brizy-pro/vendor/guzzlehttp/guzzle/src/functions.php on line 136
0
-
Hi Kawai,
Thank you for contacting us.
Could you please temporarily disable JS/CSS minification and hit Empty All Caches and see if this makes any difference.

Otherwise, please also reach out to W3 Total Cache so they can be aware of this issue and possibly offer a solution.
Best regards,
Ariel H.0
Please sign in to leave a comment.
Comments
1 comment