Skip to content

XML Error: “Element ‘publisher’, attribute ‘queue’: The attribute ‘queue’ is not allowed. ” in Module magento/module-negotiable-quote

I started to have this error when logging into the Magento storefront (url= /customer/account/loginPost/referer/):

    1 exception(s):
Exception #0 (MagentoFrameworkExceptionLocalizedException): The XML in file "/var/www/html/vendor/magento/module-negotiable-quote/etc/queue_publisher.xml" is invalid:
Element 'publisher', attribute 'queue': The attribute 'queue' is not allowed.
Line: 20
The xml was: 
15: * from Adobe.
16: */
17:-->
18:<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework-message-queue:etc/publisher.xsd">
19:    <publisher topic="negotiable.quote.price.updated" queue="negotiable_quote_price_update"/>
20:</config>
21:

Verify the XML and try again.

Exception #0 (MagentoFrameworkExceptionLocalizedException): The XML in file "/var/www/html/vendor/magento/module-negotiable-quote/etc/queue_publisher.xml" is invalid:
Element 'publisher', attribute 'queue': The attribute 'queue' is not allowed.
Line: 20
The xml was: 
15: * from Adobe.
16: */
17:-->
18:<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework-message-queue:etc/publisher.xsd">
19:    <publisher topic="negotiable.quote.price.updated" queue="negotiable_quote_price_update"/>
20:</config>
21:

Verify the XML and try again.
<pre>#1 MagentoFrameworkConfigReaderFilesystem->read() called at [vendor/magento/framework-message-queue/Publisher/Config/CompositeReader.php:61]

I don’t understand what changed, I don’t think the issue is the xsd files in framework-message-queue such as src/vendor/magento/framework-message-queue/etc/publisher.xsd because i didn’t touch that part and it is everything ootb, I didn’t override these xml.

I tried removing the vendor folder after resetting my current branch to a previous version that worked and then hit ‘composer install’ (with or without removing composer.lock) but that didnt work, I used these commands after every step i tried:

bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:flush

I’m using ddev version v1.24.4 and these modules:

"require": {
        "ext-json": "*",
        "ext-openssl": "*",
        "avadim/fast-excel-reader": "^2.14",
        "aws/aws-sdk-php": "^3.304",
        "colinmollenhour/php-redis-session-abstract": "^2.0",
        "elgentos/regenerate-catalog-urls": "^0.4.5",
        "fastly/magento2": "^1.2",
        "league/csv": "^9.16.0",
        "magento/extension-b2b": "^1.5",
        "magento/magento-cloud-metapackage": ">=2.4.8 <2.4.9",
        "magento/marketplace-eqp": "^4.0",
        "magento/module-upward-connector": "^2.0",
        "magento/product-enterprise-edition": "2.4.8-p2",
        "phpro/mage2-module-scheduler": "^8.0",
        "symfony/validator": "^6.4"
    },

What could be the issue? I prefer to leave reinstalling my project as my last resort

Thank you for your support