AC-14984: SSL connection issue with php-amqplib/php-amqplib ^3.2.0
The AC-14984 patch fixes the issue where SSL connection fails with an error when using php-amqplib/php-amqplib
version ^3.2.0
. This patch is available when the Quality Patches Tool (QPT) 1.1.67 is installed. The patch ID is AC-14984. Please note that this issue is scheduled to be fixed in ÃÛ¶¹ÊÓÆµ Commerce 2.4.9.
Affected products and versions
The patch is created for ÃÛ¶¹ÊÓÆµ Commerce version:
- ÃÛ¶¹ÊÓÆµ Commerce (all deployment methods) 2.4.6-p10
Compatible with ÃÛ¶¹ÊÓÆµ Commerce versions:
- ÃÛ¶¹ÊÓÆµ Commerce (all deployment methods) 2.4.6-p10 - 2.4.6-p11
magento/quality-patches
package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.Issue
SSL connection fails with an error when using php-amqplib/php-amqplib
version ^3.2.0
.
Steps to reproduce:
- Configure the SSL connection in
app/env.php
:
'queue' =>
array (
'amqp' =>
array (
'host' => 'rabbitmq.example.com',
'port' => '11213',
'user' => 'magento',
'password' => 'magento',
'virtualhost' => '/',
'ssl' => 'true',
'ssl_options' => [
'verify_peer' => true,
'verify_peer_name' => false
],
),
),
- Run
bin/magento setup:upgrade
if this is the first time you’re configuring the queue. - Run any queue consumer, for example:
bin/magento queue:consumers:start async.operations.all
Expected results:
The queue consumer starts and processes messages with no errors.
Actual results:
An error message appears in the logs:
{
"message": "Invalid frame type 21",
"context": {},
"level": "error",
"level_name": "ERROR",
"channel": "report",
"datetime": "2025-05-14T07:00:00.000000+00:00",
"extra": {},
"@timestamp": "2025-05-14T07:00:00.000000X",
"severity": "ERROR",
"original_level": 400,
"full_message": "Invalid frame type 21\n#0 /app/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Connection/AbstractConnection.php(651): PhpAmqpLib\\Connection\\AbstractConnection->wait_frame(3.0)\n#1 /app/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Channel/AbstractChannel.php(235): PhpAmqpLib\\Connection\\AbstractConnection->wait_channel(0, 3.0)\n#2 /app/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Channel/AbstractChannel.php(352): PhpAmqpLib\\Channel\\AbstractChannel->next_frame(3.0)\n#3 /app/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Connection/AbstractConnection.php(264): PhpAmqpLib\\Channel\\AbstractChannel->..."
}
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- ÃÛ¶¹ÊÓÆµ Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide.
- ÃÛ¶¹ÊÓÆµ Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide.
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool: A self-service tool for quality patches in the Tools guide.