Fatal error: Uncaught TypeError: Argument 1 passed to












1















I just cloned a project from git, everyting ok, when i enter to a module name kardex i found this error, the thing is that this error only appears to me in my project, not happen in another cloned project from my team. I upgrade my project, compile and delete cache but not works, thanks for the help.



PHP Fatal error: Uncaught TypeError: Argument 1 passed to ArkixkardexControllerAdminhtmlInventoryIndex::__construct() must be an  
instance of MagentoBackendAppActionContext, instance of MagentoFrameworkObjectManagerObjectManager given, called in C:laragonwwwbabaluvendormagentoframeworkObjectManagerFactoryAbstractFactory.php on line 93 and defined in C:laragonwwwbabaluappcodeArkixKardexControllerAdminhtmlInventoryIndex.php:23
Stack trace:
#0 C:laragonwwwbabaluvendormagentoframeworkObjectManagerFactoryAbstractFactory.php(93): ArkixkardexControllerAdminhtmlInventoryIndex->__construct(Object(MagentoFrameworkObjectManagerObjectManager))
#1 C:laragonwwwbabaluvendormagentoframeworkObjectManagerFactoryCompiled.php(88): MagentoFrameworkObjectManagerFactoryAbstractFactory->createObject('Arkix\Kardex\Co...', Array)
#2 C:laragonwwwbabaluvendormagentoframeworkObjectManagerObjectManager.php(57): MagentoFrameworkObjectManagerFactoryCompiled->create('Arkix\Kardex\Co in C:laragonwwwbabaluappcodeArkixKardexControllerAdminhtmlInventoryIndex.php on line 23


this is my controller, i´m using magento 2.1, the error appears in the line 23 but i don´t know.



<?php

namespace ArkixkardexControllerAdminhtmlInventory;

use MagentoBackendAppAction;
use MagentoBackendAppActionContext;
use MagentoFrameworkViewResultPageFactory;

class Index extends Action
{
/**
* @var PageFactory
*/
protected $resultPageFactory;

/**
* @param Context $context
* @param PageFactory $resultPageFactory
*/
public function __construct(
Context $context,
PageFactory $resultPageFactory
) {
parent::__construct($context);
$this->resultPageFactory = $resultPageFactory;
}

/**
* Index action
*
* @return MagentoBackendModelViewResultPage
*/
public function execute()
{
/** @var MagentoBackendModelViewResultPage $resultPage */
$resultPage = $this->resultPageFactory->create();

$resultPage->addBreadcrumb(__('Kardex'), __('Kardex'));
$resultPage->addBreadcrumb(__('Kardex'), __('Kardex'));
$resultPage->getConfig()->getTitle()->prepend(__('Kardex'));

return $resultPage;
}

/**
* @return bool
*/
protected function _isAllowed()
{
return $this->_authorization->isAllowed('Arkix_Kardex::kardex_inventory');
}
}









share|improve this question




















  • 1





    remove/rename generated folder at magento's root.

    – Vivek Kumar
    Jan 9 at 21:02











  • You namespace has a misspelling

    – Bare Feet
    Jan 11 at 13:37
















1















I just cloned a project from git, everyting ok, when i enter to a module name kardex i found this error, the thing is that this error only appears to me in my project, not happen in another cloned project from my team. I upgrade my project, compile and delete cache but not works, thanks for the help.



PHP Fatal error: Uncaught TypeError: Argument 1 passed to ArkixkardexControllerAdminhtmlInventoryIndex::__construct() must be an  
instance of MagentoBackendAppActionContext, instance of MagentoFrameworkObjectManagerObjectManager given, called in C:laragonwwwbabaluvendormagentoframeworkObjectManagerFactoryAbstractFactory.php on line 93 and defined in C:laragonwwwbabaluappcodeArkixKardexControllerAdminhtmlInventoryIndex.php:23
Stack trace:
#0 C:laragonwwwbabaluvendormagentoframeworkObjectManagerFactoryAbstractFactory.php(93): ArkixkardexControllerAdminhtmlInventoryIndex->__construct(Object(MagentoFrameworkObjectManagerObjectManager))
#1 C:laragonwwwbabaluvendormagentoframeworkObjectManagerFactoryCompiled.php(88): MagentoFrameworkObjectManagerFactoryAbstractFactory->createObject('Arkix\Kardex\Co...', Array)
#2 C:laragonwwwbabaluvendormagentoframeworkObjectManagerObjectManager.php(57): MagentoFrameworkObjectManagerFactoryCompiled->create('Arkix\Kardex\Co in C:laragonwwwbabaluappcodeArkixKardexControllerAdminhtmlInventoryIndex.php on line 23


this is my controller, i´m using magento 2.1, the error appears in the line 23 but i don´t know.



<?php

namespace ArkixkardexControllerAdminhtmlInventory;

use MagentoBackendAppAction;
use MagentoBackendAppActionContext;
use MagentoFrameworkViewResultPageFactory;

class Index extends Action
{
/**
* @var PageFactory
*/
protected $resultPageFactory;

/**
* @param Context $context
* @param PageFactory $resultPageFactory
*/
public function __construct(
Context $context,
PageFactory $resultPageFactory
) {
parent::__construct($context);
$this->resultPageFactory = $resultPageFactory;
}

/**
* Index action
*
* @return MagentoBackendModelViewResultPage
*/
public function execute()
{
/** @var MagentoBackendModelViewResultPage $resultPage */
$resultPage = $this->resultPageFactory->create();

$resultPage->addBreadcrumb(__('Kardex'), __('Kardex'));
$resultPage->addBreadcrumb(__('Kardex'), __('Kardex'));
$resultPage->getConfig()->getTitle()->prepend(__('Kardex'));

return $resultPage;
}

/**
* @return bool
*/
protected function _isAllowed()
{
return $this->_authorization->isAllowed('Arkix_Kardex::kardex_inventory');
}
}









share|improve this question




















  • 1





    remove/rename generated folder at magento's root.

    – Vivek Kumar
    Jan 9 at 21:02











  • You namespace has a misspelling

    – Bare Feet
    Jan 11 at 13:37














1












1








1


0






I just cloned a project from git, everyting ok, when i enter to a module name kardex i found this error, the thing is that this error only appears to me in my project, not happen in another cloned project from my team. I upgrade my project, compile and delete cache but not works, thanks for the help.



PHP Fatal error: Uncaught TypeError: Argument 1 passed to ArkixkardexControllerAdminhtmlInventoryIndex::__construct() must be an  
instance of MagentoBackendAppActionContext, instance of MagentoFrameworkObjectManagerObjectManager given, called in C:laragonwwwbabaluvendormagentoframeworkObjectManagerFactoryAbstractFactory.php on line 93 and defined in C:laragonwwwbabaluappcodeArkixKardexControllerAdminhtmlInventoryIndex.php:23
Stack trace:
#0 C:laragonwwwbabaluvendormagentoframeworkObjectManagerFactoryAbstractFactory.php(93): ArkixkardexControllerAdminhtmlInventoryIndex->__construct(Object(MagentoFrameworkObjectManagerObjectManager))
#1 C:laragonwwwbabaluvendormagentoframeworkObjectManagerFactoryCompiled.php(88): MagentoFrameworkObjectManagerFactoryAbstractFactory->createObject('Arkix\Kardex\Co...', Array)
#2 C:laragonwwwbabaluvendormagentoframeworkObjectManagerObjectManager.php(57): MagentoFrameworkObjectManagerFactoryCompiled->create('Arkix\Kardex\Co in C:laragonwwwbabaluappcodeArkixKardexControllerAdminhtmlInventoryIndex.php on line 23


this is my controller, i´m using magento 2.1, the error appears in the line 23 but i don´t know.



<?php

namespace ArkixkardexControllerAdminhtmlInventory;

use MagentoBackendAppAction;
use MagentoBackendAppActionContext;
use MagentoFrameworkViewResultPageFactory;

class Index extends Action
{
/**
* @var PageFactory
*/
protected $resultPageFactory;

/**
* @param Context $context
* @param PageFactory $resultPageFactory
*/
public function __construct(
Context $context,
PageFactory $resultPageFactory
) {
parent::__construct($context);
$this->resultPageFactory = $resultPageFactory;
}

/**
* Index action
*
* @return MagentoBackendModelViewResultPage
*/
public function execute()
{
/** @var MagentoBackendModelViewResultPage $resultPage */
$resultPage = $this->resultPageFactory->create();

$resultPage->addBreadcrumb(__('Kardex'), __('Kardex'));
$resultPage->addBreadcrumb(__('Kardex'), __('Kardex'));
$resultPage->getConfig()->getTitle()->prepend(__('Kardex'));

return $resultPage;
}

/**
* @return bool
*/
protected function _isAllowed()
{
return $this->_authorization->isAllowed('Arkix_Kardex::kardex_inventory');
}
}









share|improve this question
















I just cloned a project from git, everyting ok, when i enter to a module name kardex i found this error, the thing is that this error only appears to me in my project, not happen in another cloned project from my team. I upgrade my project, compile and delete cache but not works, thanks for the help.



PHP Fatal error: Uncaught TypeError: Argument 1 passed to ArkixkardexControllerAdminhtmlInventoryIndex::__construct() must be an  
instance of MagentoBackendAppActionContext, instance of MagentoFrameworkObjectManagerObjectManager given, called in C:laragonwwwbabaluvendormagentoframeworkObjectManagerFactoryAbstractFactory.php on line 93 and defined in C:laragonwwwbabaluappcodeArkixKardexControllerAdminhtmlInventoryIndex.php:23
Stack trace:
#0 C:laragonwwwbabaluvendormagentoframeworkObjectManagerFactoryAbstractFactory.php(93): ArkixkardexControllerAdminhtmlInventoryIndex->__construct(Object(MagentoFrameworkObjectManagerObjectManager))
#1 C:laragonwwwbabaluvendormagentoframeworkObjectManagerFactoryCompiled.php(88): MagentoFrameworkObjectManagerFactoryAbstractFactory->createObject('Arkix\Kardex\Co...', Array)
#2 C:laragonwwwbabaluvendormagentoframeworkObjectManagerObjectManager.php(57): MagentoFrameworkObjectManagerFactoryCompiled->create('Arkix\Kardex\Co in C:laragonwwwbabaluappcodeArkixKardexControllerAdminhtmlInventoryIndex.php on line 23


this is my controller, i´m using magento 2.1, the error appears in the line 23 but i don´t know.



<?php

namespace ArkixkardexControllerAdminhtmlInventory;

use MagentoBackendAppAction;
use MagentoBackendAppActionContext;
use MagentoFrameworkViewResultPageFactory;

class Index extends Action
{
/**
* @var PageFactory
*/
protected $resultPageFactory;

/**
* @param Context $context
* @param PageFactory $resultPageFactory
*/
public function __construct(
Context $context,
PageFactory $resultPageFactory
) {
parent::__construct($context);
$this->resultPageFactory = $resultPageFactory;
}

/**
* Index action
*
* @return MagentoBackendModelViewResultPage
*/
public function execute()
{
/** @var MagentoBackendModelViewResultPage $resultPage */
$resultPage = $this->resultPageFactory->create();

$resultPage->addBreadcrumb(__('Kardex'), __('Kardex'));
$resultPage->addBreadcrumb(__('Kardex'), __('Kardex'));
$resultPage->getConfig()->getTitle()->prepend(__('Kardex'));

return $resultPage;
}

/**
* @return bool
*/
protected function _isAllowed()
{
return $this->_authorization->isAllowed('Arkix_Kardex::kardex_inventory');
}
}






magento-2.1 php






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 11 at 13:17









Siarhey Uchukhlebau

9,65692858




9,65692858










asked Jan 9 at 20:58









Alejandro DuqueAlejandro Duque

61




61








  • 1





    remove/rename generated folder at magento's root.

    – Vivek Kumar
    Jan 9 at 21:02











  • You namespace has a misspelling

    – Bare Feet
    Jan 11 at 13:37














  • 1





    remove/rename generated folder at magento's root.

    – Vivek Kumar
    Jan 9 at 21:02











  • You namespace has a misspelling

    – Bare Feet
    Jan 11 at 13:37








1




1





remove/rename generated folder at magento's root.

– Vivek Kumar
Jan 9 at 21:02





remove/rename generated folder at magento's root.

– Vivek Kumar
Jan 9 at 21:02













You namespace has a misspelling

– Bare Feet
Jan 11 at 13:37





You namespace has a misspelling

– Bare Feet
Jan 11 at 13:37










3 Answers
3






active

oldest

votes


















0














it was caused by you modify construct of that controller.
Use command compile to solve it:



php bin/magento setup:di:compile





share|improve this answer
























  • thanks for answer, I upgrade my project, compile and delete cache but not works.

    – Alejandro Duque
    Jan 10 at 23:04











  • can you tell me version magento2? also, please add your controller in here to view.

    – the light
    Jan 11 at 1:53





















0














Try to change namespace from:



namespace ArkixkardexControllerAdminhtmlInventory;


to:



namespace ArkixKardexControllerAdminhtmlInventory;





share|improve this answer
























  • i´m going to try out your suggestion Siarhey, thanks for answer.

    – Alejandro Duque
    Jan 11 at 14:53



















0














This is my controller, i´m using magento 2.1, the error appears in the line 23 but i don´t know.



<?php

namespace ArkixkardexControllerAdminhtmlInventory;

use MagentoBackendAppAction;
use MagentoBackendAppActionContext;
use MagentoFrameworkViewResultPageFactory;

class Index extends Action
{
/**
* @var PageFactory
*/
protected $resultPageFactory;

/**
* @param Context $context
* @param PageFactory $resultPageFactory
*/
public function __construct(
Context $context,
PageFactory $resultPageFactory
) {
parent::__construct($context);
$this->resultPageFactory = $resultPageFactory;
}

/**
* Index action
*
* @return MagentoBackendModelViewResultPage
*/
public function execute()
{
/** @var MagentoBackendModelViewResultPage $resultPage */
$resultPage = $this->resultPageFactory->create();

$resultPage->addBreadcrumb(__('Kardex'), __('Kardex'));
$resultPage->addBreadcrumb(__('Kardex'), __('Kardex'));
$resultPage->getConfig()->getTitle()->prepend(__('Kardex'));

return $resultPage;
}

/**
* @return bool
*/
protected function _isAllowed()
{
return $this->_authorization->isAllowed('Arkix_Kardex::kardex_inventory');
}
}





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%2f257304%2ffatal-error-uncaught-typeerror-argument-1-passed-to%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    it was caused by you modify construct of that controller.
    Use command compile to solve it:



    php bin/magento setup:di:compile





    share|improve this answer
























    • thanks for answer, I upgrade my project, compile and delete cache but not works.

      – Alejandro Duque
      Jan 10 at 23:04











    • can you tell me version magento2? also, please add your controller in here to view.

      – the light
      Jan 11 at 1:53


















    0














    it was caused by you modify construct of that controller.
    Use command compile to solve it:



    php bin/magento setup:di:compile





    share|improve this answer
























    • thanks for answer, I upgrade my project, compile and delete cache but not works.

      – Alejandro Duque
      Jan 10 at 23:04











    • can you tell me version magento2? also, please add your controller in here to view.

      – the light
      Jan 11 at 1:53
















    0












    0








    0







    it was caused by you modify construct of that controller.
    Use command compile to solve it:



    php bin/magento setup:di:compile





    share|improve this answer













    it was caused by you modify construct of that controller.
    Use command compile to solve it:



    php bin/magento setup:di:compile






    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Jan 10 at 7:26









    the lightthe light

    314




    314













    • thanks for answer, I upgrade my project, compile and delete cache but not works.

      – Alejandro Duque
      Jan 10 at 23:04











    • can you tell me version magento2? also, please add your controller in here to view.

      – the light
      Jan 11 at 1:53





















    • thanks for answer, I upgrade my project, compile and delete cache but not works.

      – Alejandro Duque
      Jan 10 at 23:04











    • can you tell me version magento2? also, please add your controller in here to view.

      – the light
      Jan 11 at 1:53



















    thanks for answer, I upgrade my project, compile and delete cache but not works.

    – Alejandro Duque
    Jan 10 at 23:04





    thanks for answer, I upgrade my project, compile and delete cache but not works.

    – Alejandro Duque
    Jan 10 at 23:04













    can you tell me version magento2? also, please add your controller in here to view.

    – the light
    Jan 11 at 1:53







    can you tell me version magento2? also, please add your controller in here to view.

    – the light
    Jan 11 at 1:53















    0














    Try to change namespace from:



    namespace ArkixkardexControllerAdminhtmlInventory;


    to:



    namespace ArkixKardexControllerAdminhtmlInventory;





    share|improve this answer
























    • i´m going to try out your suggestion Siarhey, thanks for answer.

      – Alejandro Duque
      Jan 11 at 14:53
















    0














    Try to change namespace from:



    namespace ArkixkardexControllerAdminhtmlInventory;


    to:



    namespace ArkixKardexControllerAdminhtmlInventory;





    share|improve this answer
























    • i´m going to try out your suggestion Siarhey, thanks for answer.

      – Alejandro Duque
      Jan 11 at 14:53














    0












    0








    0







    Try to change namespace from:



    namespace ArkixkardexControllerAdminhtmlInventory;


    to:



    namespace ArkixKardexControllerAdminhtmlInventory;





    share|improve this answer













    Try to change namespace from:



    namespace ArkixkardexControllerAdminhtmlInventory;


    to:



    namespace ArkixKardexControllerAdminhtmlInventory;






    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Jan 11 at 13:27









    Siarhey UchukhlebauSiarhey Uchukhlebau

    9,65692858




    9,65692858













    • i´m going to try out your suggestion Siarhey, thanks for answer.

      – Alejandro Duque
      Jan 11 at 14:53



















    • i´m going to try out your suggestion Siarhey, thanks for answer.

      – Alejandro Duque
      Jan 11 at 14:53

















    i´m going to try out your suggestion Siarhey, thanks for answer.

    – Alejandro Duque
    Jan 11 at 14:53





    i´m going to try out your suggestion Siarhey, thanks for answer.

    – Alejandro Duque
    Jan 11 at 14:53











    0














    This is my controller, i´m using magento 2.1, the error appears in the line 23 but i don´t know.



    <?php

    namespace ArkixkardexControllerAdminhtmlInventory;

    use MagentoBackendAppAction;
    use MagentoBackendAppActionContext;
    use MagentoFrameworkViewResultPageFactory;

    class Index extends Action
    {
    /**
    * @var PageFactory
    */
    protected $resultPageFactory;

    /**
    * @param Context $context
    * @param PageFactory $resultPageFactory
    */
    public function __construct(
    Context $context,
    PageFactory $resultPageFactory
    ) {
    parent::__construct($context);
    $this->resultPageFactory = $resultPageFactory;
    }

    /**
    * Index action
    *
    * @return MagentoBackendModelViewResultPage
    */
    public function execute()
    {
    /** @var MagentoBackendModelViewResultPage $resultPage */
    $resultPage = $this->resultPageFactory->create();

    $resultPage->addBreadcrumb(__('Kardex'), __('Kardex'));
    $resultPage->addBreadcrumb(__('Kardex'), __('Kardex'));
    $resultPage->getConfig()->getTitle()->prepend(__('Kardex'));

    return $resultPage;
    }

    /**
    * @return bool
    */
    protected function _isAllowed()
    {
    return $this->_authorization->isAllowed('Arkix_Kardex::kardex_inventory');
    }
    }





    share|improve this answer






























      0














      This is my controller, i´m using magento 2.1, the error appears in the line 23 but i don´t know.



      <?php

      namespace ArkixkardexControllerAdminhtmlInventory;

      use MagentoBackendAppAction;
      use MagentoBackendAppActionContext;
      use MagentoFrameworkViewResultPageFactory;

      class Index extends Action
      {
      /**
      * @var PageFactory
      */
      protected $resultPageFactory;

      /**
      * @param Context $context
      * @param PageFactory $resultPageFactory
      */
      public function __construct(
      Context $context,
      PageFactory $resultPageFactory
      ) {
      parent::__construct($context);
      $this->resultPageFactory = $resultPageFactory;
      }

      /**
      * Index action
      *
      * @return MagentoBackendModelViewResultPage
      */
      public function execute()
      {
      /** @var MagentoBackendModelViewResultPage $resultPage */
      $resultPage = $this->resultPageFactory->create();

      $resultPage->addBreadcrumb(__('Kardex'), __('Kardex'));
      $resultPage->addBreadcrumb(__('Kardex'), __('Kardex'));
      $resultPage->getConfig()->getTitle()->prepend(__('Kardex'));

      return $resultPage;
      }

      /**
      * @return bool
      */
      protected function _isAllowed()
      {
      return $this->_authorization->isAllowed('Arkix_Kardex::kardex_inventory');
      }
      }





      share|improve this answer




























        0












        0








        0







        This is my controller, i´m using magento 2.1, the error appears in the line 23 but i don´t know.



        <?php

        namespace ArkixkardexControllerAdminhtmlInventory;

        use MagentoBackendAppAction;
        use MagentoBackendAppActionContext;
        use MagentoFrameworkViewResultPageFactory;

        class Index extends Action
        {
        /**
        * @var PageFactory
        */
        protected $resultPageFactory;

        /**
        * @param Context $context
        * @param PageFactory $resultPageFactory
        */
        public function __construct(
        Context $context,
        PageFactory $resultPageFactory
        ) {
        parent::__construct($context);
        $this->resultPageFactory = $resultPageFactory;
        }

        /**
        * Index action
        *
        * @return MagentoBackendModelViewResultPage
        */
        public function execute()
        {
        /** @var MagentoBackendModelViewResultPage $resultPage */
        $resultPage = $this->resultPageFactory->create();

        $resultPage->addBreadcrumb(__('Kardex'), __('Kardex'));
        $resultPage->addBreadcrumb(__('Kardex'), __('Kardex'));
        $resultPage->getConfig()->getTitle()->prepend(__('Kardex'));

        return $resultPage;
        }

        /**
        * @return bool
        */
        protected function _isAllowed()
        {
        return $this->_authorization->isAllowed('Arkix_Kardex::kardex_inventory');
        }
        }





        share|improve this answer















        This is my controller, i´m using magento 2.1, the error appears in the line 23 but i don´t know.



        <?php

        namespace ArkixkardexControllerAdminhtmlInventory;

        use MagentoBackendAppAction;
        use MagentoBackendAppActionContext;
        use MagentoFrameworkViewResultPageFactory;

        class Index extends Action
        {
        /**
        * @var PageFactory
        */
        protected $resultPageFactory;

        /**
        * @param Context $context
        * @param PageFactory $resultPageFactory
        */
        public function __construct(
        Context $context,
        PageFactory $resultPageFactory
        ) {
        parent::__construct($context);
        $this->resultPageFactory = $resultPageFactory;
        }

        /**
        * Index action
        *
        * @return MagentoBackendModelViewResultPage
        */
        public function execute()
        {
        /** @var MagentoBackendModelViewResultPage $resultPage */
        $resultPage = $this->resultPageFactory->create();

        $resultPage->addBreadcrumb(__('Kardex'), __('Kardex'));
        $resultPage->addBreadcrumb(__('Kardex'), __('Kardex'));
        $resultPage->getConfig()->getTitle()->prepend(__('Kardex'));

        return $resultPage;
        }

        /**
        * @return bool
        */
        protected function _isAllowed()
        {
        return $this->_authorization->isAllowed('Arkix_Kardex::kardex_inventory');
        }
        }






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 41 mins ago









        Teja Bhagavan Kollepara

        2,94841847




        2,94841847










        answered Jan 11 at 13:05









        Alejandro DuqueAlejandro Duque

        61




        61






























            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%2f257304%2ffatal-error-uncaught-typeerror-argument-1-passed-to%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

            Magento 2 controller redirect on button click in phtml file

            Polycentropodidae