I flow How to add a tab in product details page using Magento 2 admin panel step to add a custom tab

and I got this error enter image description here

my file struct enter image description here


<?xml version="1.0"?>
<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">

    <update handle="catalog_product_opengraph" />
    <update handle="page_calendar"/>
        <referenceBlock name="product.info.details">
            <block class="Magento\Catalog\Block\Product\View\Attributes" name="custom.tab" template="product/view/view.phtml" group="detailed_info">
                    <argument name="title" translate="true" xsi:type="string">Care</argument>


<h1><?php echo $product->getData('custom_tab');?></h1>

How Can I solve this error

1 Answer 1


Try to change attribute from string to text

<argument name="title" translate="true" xsi:type="text">Care</argument>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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