Magento 2 My Orders->Order Shipments->Track this shipment results in Invalid method error





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







1















(magento 2.0.10) My Orders->Order Shipments->Track this shipment->after click.



Invalid method MagentoFrameworkViewElementTemplate::formatDeliveryDateTime(Array
(
[0] => 2016-11-22
[1] => 13:20:00
)
)
0 /usr/local/nginx/html/vendor/magento/module-shipping/view/frontend/templates/tracking/details.phtml(80): MagentoFrameworkDataObject->__call('formatDeliveryD...', Array)
1 /usr/local/nginx/html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/usr/local/ngin...')
2 /usr/local/nginx/html/vendor/magento/framework/View/Element/Template.php(255): MagentoFrameworkViewTemplateEnginePhp->render(Object(MagentoFrameworkViewElementTemplate), '/usr/local/ngin...', Array)
3 /usr/local/nginx/html/vendor/magento/framework/View/Element/Template.php(279): MagentoFrameworkViewElementTemplate->fetchView('/usr/local/ngin...')
4 /usr/local/nginx/html/vendor/magento/framework/View/Element/AbstractBlock.php(657): MagentoFrameworkViewElementTemplate->_toHtml()
5 /usr/local/nginx/html/vendor/magento/framework/View/Layout.php(542): MagentoFrameworkViewElementAbstractBlock->toHtml()




Can you help me?
I am a beginner(Green hand), please give me answer in detail.



Thanks.










share|improve this question
















bumped to the homepage by Community 2 days ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • were there any customization's made in the shipping module?

    – Deepika Janiyani
    Nov 23 '16 at 9:37











  • Tracking XML URL :onlinetools.ups.com/ups.app/xml/Track

    – shuidaan
    Nov 24 '16 at 4:57











  • could you give me the configure? about UPS shipping methods.

    – shuidaan
    Nov 24 '16 at 5:05


















1















(magento 2.0.10) My Orders->Order Shipments->Track this shipment->after click.



Invalid method MagentoFrameworkViewElementTemplate::formatDeliveryDateTime(Array
(
[0] => 2016-11-22
[1] => 13:20:00
)
)
0 /usr/local/nginx/html/vendor/magento/module-shipping/view/frontend/templates/tracking/details.phtml(80): MagentoFrameworkDataObject->__call('formatDeliveryD...', Array)
1 /usr/local/nginx/html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/usr/local/ngin...')
2 /usr/local/nginx/html/vendor/magento/framework/View/Element/Template.php(255): MagentoFrameworkViewTemplateEnginePhp->render(Object(MagentoFrameworkViewElementTemplate), '/usr/local/ngin...', Array)
3 /usr/local/nginx/html/vendor/magento/framework/View/Element/Template.php(279): MagentoFrameworkViewElementTemplate->fetchView('/usr/local/ngin...')
4 /usr/local/nginx/html/vendor/magento/framework/View/Element/AbstractBlock.php(657): MagentoFrameworkViewElementTemplate->_toHtml()
5 /usr/local/nginx/html/vendor/magento/framework/View/Layout.php(542): MagentoFrameworkViewElementAbstractBlock->toHtml()




Can you help me?
I am a beginner(Green hand), please give me answer in detail.



Thanks.










share|improve this question
















bumped to the homepage by Community 2 days ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • were there any customization's made in the shipping module?

    – Deepika Janiyani
    Nov 23 '16 at 9:37











  • Tracking XML URL :onlinetools.ups.com/ups.app/xml/Track

    – shuidaan
    Nov 24 '16 at 4:57











  • could you give me the configure? about UPS shipping methods.

    – shuidaan
    Nov 24 '16 at 5:05














1












1








1








(magento 2.0.10) My Orders->Order Shipments->Track this shipment->after click.



Invalid method MagentoFrameworkViewElementTemplate::formatDeliveryDateTime(Array
(
[0] => 2016-11-22
[1] => 13:20:00
)
)
0 /usr/local/nginx/html/vendor/magento/module-shipping/view/frontend/templates/tracking/details.phtml(80): MagentoFrameworkDataObject->__call('formatDeliveryD...', Array)
1 /usr/local/nginx/html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/usr/local/ngin...')
2 /usr/local/nginx/html/vendor/magento/framework/View/Element/Template.php(255): MagentoFrameworkViewTemplateEnginePhp->render(Object(MagentoFrameworkViewElementTemplate), '/usr/local/ngin...', Array)
3 /usr/local/nginx/html/vendor/magento/framework/View/Element/Template.php(279): MagentoFrameworkViewElementTemplate->fetchView('/usr/local/ngin...')
4 /usr/local/nginx/html/vendor/magento/framework/View/Element/AbstractBlock.php(657): MagentoFrameworkViewElementTemplate->_toHtml()
5 /usr/local/nginx/html/vendor/magento/framework/View/Layout.php(542): MagentoFrameworkViewElementAbstractBlock->toHtml()




Can you help me?
I am a beginner(Green hand), please give me answer in detail.



Thanks.










share|improve this question
















(magento 2.0.10) My Orders->Order Shipments->Track this shipment->after click.



Invalid method MagentoFrameworkViewElementTemplate::formatDeliveryDateTime(Array
(
[0] => 2016-11-22
[1] => 13:20:00
)
)
0 /usr/local/nginx/html/vendor/magento/module-shipping/view/frontend/templates/tracking/details.phtml(80): MagentoFrameworkDataObject->__call('formatDeliveryD...', Array)
1 /usr/local/nginx/html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/usr/local/ngin...')
2 /usr/local/nginx/html/vendor/magento/framework/View/Element/Template.php(255): MagentoFrameworkViewTemplateEnginePhp->render(Object(MagentoFrameworkViewElementTemplate), '/usr/local/ngin...', Array)
3 /usr/local/nginx/html/vendor/magento/framework/View/Element/Template.php(279): MagentoFrameworkViewElementTemplate->fetchView('/usr/local/ngin...')
4 /usr/local/nginx/html/vendor/magento/framework/View/Element/AbstractBlock.php(657): MagentoFrameworkViewElementTemplate->_toHtml()
5 /usr/local/nginx/html/vendor/magento/framework/View/Layout.php(542): MagentoFrameworkViewElementAbstractBlock->toHtml()




Can you help me?
I am a beginner(Green hand), please give me answer in detail.



Thanks.







magento2 shipping-methods methods






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 23 '16 at 10:58









Ronak Chauhan

4,27611449




4,27611449










asked Nov 23 '16 at 9:20









shuidaanshuidaan

62




62





bumped to the homepage by Community 2 days ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 2 days ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • were there any customization's made in the shipping module?

    – Deepika Janiyani
    Nov 23 '16 at 9:37











  • Tracking XML URL :onlinetools.ups.com/ups.app/xml/Track

    – shuidaan
    Nov 24 '16 at 4:57











  • could you give me the configure? about UPS shipping methods.

    – shuidaan
    Nov 24 '16 at 5:05



















  • were there any customization's made in the shipping module?

    – Deepika Janiyani
    Nov 23 '16 at 9:37











  • Tracking XML URL :onlinetools.ups.com/ups.app/xml/Track

    – shuidaan
    Nov 24 '16 at 4:57











  • could you give me the configure? about UPS shipping methods.

    – shuidaan
    Nov 24 '16 at 5:05

















were there any customization's made in the shipping module?

– Deepika Janiyani
Nov 23 '16 at 9:37





were there any customization's made in the shipping module?

– Deepika Janiyani
Nov 23 '16 at 9:37













Tracking XML URL :onlinetools.ups.com/ups.app/xml/Track

– shuidaan
Nov 24 '16 at 4:57





Tracking XML URL :onlinetools.ups.com/ups.app/xml/Track

– shuidaan
Nov 24 '16 at 4:57













could you give me the configure? about UPS shipping methods.

– shuidaan
Nov 24 '16 at 5:05





could you give me the configure? about UPS shipping methods.

– shuidaan
Nov 24 '16 at 5:05










2 Answers
2






active

oldest

votes


















0














It looks like you can't access the block for some reason. In a pinch, you could try accessing the class directly.



In vendor/magento/module-shipping/view/frontend/templates/tracking/details.phtml, around line 80:



<?php /* @noEscape */ echo $block->formatDeliveryDateTime($track->getDeliverydate(), $track->getDeliverytime()); ?>



Replace with:



<?php /* @noEscape */ echo MagentoShippingBlockTracking::formatDeliveryDateTime($track->getDeliverydate(), $track->getDeliverytime()); ?>



This is NOT the ideal solution here but should make it work until you figure it out.






share|improve this answer
























  • class is wrong . use - MagentoShippingBlockTrackingPopup

    – Ahmad Vaqas Khan
    Nov 29 '17 at 11:20



















0














This is a Magento 2 bug.



If you look for function formatDeliveryDateTime inside file vendor/magento/module-shipping/view/frontend/templates/tracking/details.phtml whose block is MagentoFrameworkViewElementTemplate



Use below block function



$blockObj = $block->getLayout()->createBlock('MagentoShippingBlockTrackingPopup');


Replace :



echo $block->formatDeliveryDateTime($track->getDeliverydate(), $track->getDeliverytime());


By



echo $blockObj->formatDeliveryDateTime($track->getDeliverydate(), $track->getDeliverytime());





share|improve this answer
























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "479"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f147075%2fmagento-2-my-orders-order-shipments-track-this-shipment-results-in-invalid-met%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    It looks like you can't access the block for some reason. In a pinch, you could try accessing the class directly.



    In vendor/magento/module-shipping/view/frontend/templates/tracking/details.phtml, around line 80:



    <?php /* @noEscape */ echo $block->formatDeliveryDateTime($track->getDeliverydate(), $track->getDeliverytime()); ?>



    Replace with:



    <?php /* @noEscape */ echo MagentoShippingBlockTracking::formatDeliveryDateTime($track->getDeliverydate(), $track->getDeliverytime()); ?>



    This is NOT the ideal solution here but should make it work until you figure it out.






    share|improve this answer
























    • class is wrong . use - MagentoShippingBlockTrackingPopup

      – Ahmad Vaqas Khan
      Nov 29 '17 at 11:20
















    0














    It looks like you can't access the block for some reason. In a pinch, you could try accessing the class directly.



    In vendor/magento/module-shipping/view/frontend/templates/tracking/details.phtml, around line 80:



    <?php /* @noEscape */ echo $block->formatDeliveryDateTime($track->getDeliverydate(), $track->getDeliverytime()); ?>



    Replace with:



    <?php /* @noEscape */ echo MagentoShippingBlockTracking::formatDeliveryDateTime($track->getDeliverydate(), $track->getDeliverytime()); ?>



    This is NOT the ideal solution here but should make it work until you figure it out.






    share|improve this answer
























    • class is wrong . use - MagentoShippingBlockTrackingPopup

      – Ahmad Vaqas Khan
      Nov 29 '17 at 11:20














    0












    0








    0







    It looks like you can't access the block for some reason. In a pinch, you could try accessing the class directly.



    In vendor/magento/module-shipping/view/frontend/templates/tracking/details.phtml, around line 80:



    <?php /* @noEscape */ echo $block->formatDeliveryDateTime($track->getDeliverydate(), $track->getDeliverytime()); ?>



    Replace with:



    <?php /* @noEscape */ echo MagentoShippingBlockTracking::formatDeliveryDateTime($track->getDeliverydate(), $track->getDeliverytime()); ?>



    This is NOT the ideal solution here but should make it work until you figure it out.






    share|improve this answer













    It looks like you can't access the block for some reason. In a pinch, you could try accessing the class directly.



    In vendor/magento/module-shipping/view/frontend/templates/tracking/details.phtml, around line 80:



    <?php /* @noEscape */ echo $block->formatDeliveryDateTime($track->getDeliverydate(), $track->getDeliverytime()); ?>



    Replace with:



    <?php /* @noEscape */ echo MagentoShippingBlockTracking::formatDeliveryDateTime($track->getDeliverydate(), $track->getDeliverytime()); ?>



    This is NOT the ideal solution here but should make it work until you figure it out.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Dec 30 '16 at 14:01









    seanbreedenseanbreeden

    2,7131323




    2,7131323













    • class is wrong . use - MagentoShippingBlockTrackingPopup

      – Ahmad Vaqas Khan
      Nov 29 '17 at 11:20



















    • class is wrong . use - MagentoShippingBlockTrackingPopup

      – Ahmad Vaqas Khan
      Nov 29 '17 at 11:20

















    class is wrong . use - MagentoShippingBlockTrackingPopup

    – Ahmad Vaqas Khan
    Nov 29 '17 at 11:20





    class is wrong . use - MagentoShippingBlockTrackingPopup

    – Ahmad Vaqas Khan
    Nov 29 '17 at 11:20













    0














    This is a Magento 2 bug.



    If you look for function formatDeliveryDateTime inside file vendor/magento/module-shipping/view/frontend/templates/tracking/details.phtml whose block is MagentoFrameworkViewElementTemplate



    Use below block function



    $blockObj = $block->getLayout()->createBlock('MagentoShippingBlockTrackingPopup');


    Replace :



    echo $block->formatDeliveryDateTime($track->getDeliverydate(), $track->getDeliverytime());


    By



    echo $blockObj->formatDeliveryDateTime($track->getDeliverydate(), $track->getDeliverytime());





    share|improve this answer




























      0














      This is a Magento 2 bug.



      If you look for function formatDeliveryDateTime inside file vendor/magento/module-shipping/view/frontend/templates/tracking/details.phtml whose block is MagentoFrameworkViewElementTemplate



      Use below block function



      $blockObj = $block->getLayout()->createBlock('MagentoShippingBlockTrackingPopup');


      Replace :



      echo $block->formatDeliveryDateTime($track->getDeliverydate(), $track->getDeliverytime());


      By



      echo $blockObj->formatDeliveryDateTime($track->getDeliverydate(), $track->getDeliverytime());





      share|improve this answer


























        0












        0








        0







        This is a Magento 2 bug.



        If you look for function formatDeliveryDateTime inside file vendor/magento/module-shipping/view/frontend/templates/tracking/details.phtml whose block is MagentoFrameworkViewElementTemplate



        Use below block function



        $blockObj = $block->getLayout()->createBlock('MagentoShippingBlockTrackingPopup');


        Replace :



        echo $block->formatDeliveryDateTime($track->getDeliverydate(), $track->getDeliverytime());


        By



        echo $blockObj->formatDeliveryDateTime($track->getDeliverydate(), $track->getDeliverytime());





        share|improve this answer













        This is a Magento 2 bug.



        If you look for function formatDeliveryDateTime inside file vendor/magento/module-shipping/view/frontend/templates/tracking/details.phtml whose block is MagentoFrameworkViewElementTemplate



        Use below block function



        $blockObj = $block->getLayout()->createBlock('MagentoShippingBlockTrackingPopup');


        Replace :



        echo $block->formatDeliveryDateTime($track->getDeliverydate(), $track->getDeliverytime());


        By



        echo $blockObj->formatDeliveryDateTime($track->getDeliverydate(), $track->getDeliverytime());






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 29 '17 at 11:11









        Ahmad Vaqas KhanAhmad Vaqas Khan

        665716




        665716






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Magento Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f147075%2fmagento-2-my-orders-order-shipments-track-this-shipment-results-in-invalid-met%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            What other Star Trek series did the main TNG cast show up in?

            Berlina muro

            Berlina aerponto