0

This question might be asked here before. I have checked many threads but couldn't find a solution for my problem. I have a custom Magento 2.1.7 theme. In my website the success/error messages not showing. Initially, I thought it would be the issue of my custom theme. Then I switched the design to default 'luma' theme. Now also the success/error message not showing. Can any one help me to sort it out?

Edit *

I could find that message wrapper is loading, but the message texts are not fetching. I am here attaching the out put html of message wrapper

    <div class="page messages"><div data-placeholder="messages"></div>
<div data-bind="scope: 'messages'">
    <div data-bind="foreach: { data: cookieMessages, as: 'message' }" class="messages">
        <div data-bind="attr: {
            class: 'message-' + message.type + ' ' + message.type + ' message',
            'data-ui-id': 'message-' + message.type
        }">
            <div data-bind="html: message.text"></div>
        </div>
    </div>
    <div data-bind="foreach: { data: messages().messages, as: 'message' }" class="messages">
        <div data-bind="attr: {
            class: 'message-' + message.type + ' ' + message.type + ' message',
            'data-ui-id': 'message-' + message.type
        }">
            <div data-bind="html: message.text"></div>
        </div>
    </div>
</div>
<script type="text/x-magento-init">
    {
        "*": {
            "Magento_Ui/js/core/app": {
                "components": {
                        "messages": {
                            "component": "Magento_Theme/js/view/messages"
                        }
                    }
                }
            }
    }
</script>
</div>
  • disable the full page cache in back end and check whether it's working or not – Jeeva Chezhiyan Oct 10 '17 at 6:50
  • I have disabled the full page cache with command line and it was already disabled. Still couldn't get the messages. – hakkim Oct 17 '17 at 10:37

Your Answer

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

Browse other questions tagged or ask your own question.