Skip to main content
added 613 characters in body
Source Link

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="Magedelight_Bundlediscountsrc="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": "[email protected]"
    }
  ],
  "autoload": {
    "files": [
      "registration.php"
    ],
    "psr-4": {
      "namespace\\modulename\\": ""
    }
  }

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="Magedelight_Bundlediscount::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>

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": "[email protected]"
    }
  ],
  "autoload": {
    "files": [
      "registration.php"
    ],
    "psr-4": {
      "namespace\\modulename\\": ""
    }
  }
Source Link

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="Magedelight_Bundlediscount::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>