0

Magento marketplace is rejecting my module giving the reason but I do not know how to overcome this issue I tested EQP everything but did not find the error please suggest if anyone has solved this.

Issue :-

enter image description here

  • Have you contact them again? – Amit Bera Jun 5 '18 at 11:04
  • @Manish have you fixed this issue ? – Dharmendra Jadav Sep 20 '18 at 10:16
  • I am getting same issue while upload extension on marketplace – Dharmendra Jadav Sep 20 '18 at 10:16
  • Hi @DharmendraJadav I have added my answer. – Manish Goswami Sep 20 '18 at 10:22
  • You can remove cache from block class if required. – Manish Goswami Sep 20 '18 at 10:23
1

This error occurred if xml file has cacheable="false" exist.

<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
    <link src="Namespace_Modulename::js/cart-promotions.js"/>
</head>
<body>
    <referenceContainer name="content">
        <block class="Namesapce\Modulename\Block\Class" name="test" template="test.phtml" cacheable="false" after="-">
        </block>
    </referenceContainer> 
</body>

Your composer.json file also support php [ 7.1 ]

{
  "name": "namespace/modulename",
  "description": "Description module in Magento2",
  "require": {
    "php": "~5.5.22|~5.6.0|7.0.2|7.0.4|~7.0.6|~7.1.0"
  },
  "type": "magento2-module",
  "license": "GPL-3.0",
  "version": "1.0.4",
  "authors": [
    {
      "name": "DJ",
      "email": "info@namespace.com"
    }
  ],
  "autoload": {
    "files": [
      "registration.php"
    ],
    "psr-4": {
      "namespace\\modulename\\": ""
    }
  }
  • I have no any cacheable="false" in my xml – Dharmendra Jadav Sep 20 '18 at 10:23
  • Still facing issue – Dharmendra Jadav Sep 20 '18 at 10:23
  • Please check you composer.json file. – Manish Goswami Sep 20 '18 at 10:24
  • Hi @DharmendraJadav please inform me if you are still facing the issue. – Manish Goswami Sep 20 '18 at 10:29
  • Could you please give me composer.json – Dharmendra Jadav Sep 20 '18 at 10:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.