Class Mage not found in Magento 2Magento 2: to use or not to use the ObjectManager directly?Class 'Mage_Affiliate_Helper_Data' not foundMagento_Db_Adapter_Pdo_Mysql not found in Resource.phpMagento Fatal Error Class 'Zend_Cache' not foundFatal error: Class 'Zend_Log' not found in Checkoutlib class not foundPHP Fatal error: Class 'Aschroder_SMTPPro_Model_Mysql4_Setup' not foundMagento2 Fatal error: Interface 'Iterator' not foundgetting Fatal error: Class 'IntlDateFormatter' not found in magento 2.1.8Getting Fatal error: Class 'IntlDateFormatter' not found in Magento2Fatal error: Class 'GT_Speed_Helper_Data' not found

Mathematica equivalent of a curl snippet

Is the Amazon rainforest the "world's lungs"?

Was a star-crossed lover

Find feasible point in polynomial time in linear programming

What stops you from using fixed income in developing countries?

Pen test results for web application include a file from a forbidden directory that is not even used or referenced

How to emphasise the insignificance of someone/thing – besides using "klein"

How to pass 2>/dev/null as a variable?

Should I use the words "pyromancy" and "necromancy" even if they don't mean what people think they do?

Can MuseScore be used programmatically?

Why is getting a PhD considered "financially irresponsible" by some people?

Talk interpreter

Unlock your Lock

How could a self contained organic body propel itself in space

Half filled water bottle

Cooking Scrambled Eggs ends up with excess liquid

GDPR: What happens to deleted contacts re-entered through imports

Fan speed and power consumption

Should an STL container avoid copying elements into themselves when the container is copied into itself?

Is a memoized pure function itself considered pure?

The term Feed-forward and its meaning?

rationalizing sieges in a modern/near-future setting

Finding square root without division and initial guess

Poor error handling: Throw inside Finally



Class Mage not found in Magento 2


Magento 2: to use or not to use the ObjectManager directly?Class 'Mage_Affiliate_Helper_Data' not foundMagento_Db_Adapter_Pdo_Mysql not found in Resource.phpMagento Fatal Error Class 'Zend_Cache' not foundFatal error: Class 'Zend_Log' not found in Checkoutlib class not foundPHP Fatal error: Class 'Aschroder_SMTPPro_Model_Mysql4_Setup' not foundMagento2 Fatal error: Interface 'Iterator' not foundgetting Fatal error: Class 'IntlDateFormatter' not found in magento 2.1.8Getting Fatal error: Class 'IntlDateFormatter' not found in Magento2Fatal error: Class 'GT_Speed_Helper_Data' not found






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








3















I'm new to Magento 2.




Fatal error: Class 'Mage' not found in vendormagentomodule-themeviewbasetemplatesroot.phtml on line 23




Can anybody tell me how to solve this?










share|improve this question


























  • Please add more details, you should add more code lines.

    – Khoa TruongDinh
    Aug 2 '16 at 6:00











  • plz show your root.phtml file tomore debug

    – Rakesh Jesadiya
    Aug 2 '16 at 6:07

















3















I'm new to Magento 2.




Fatal error: Class 'Mage' not found in vendormagentomodule-themeviewbasetemplatesroot.phtml on line 23




Can anybody tell me how to solve this?










share|improve this question


























  • Please add more details, you should add more code lines.

    – Khoa TruongDinh
    Aug 2 '16 at 6:00











  • plz show your root.phtml file tomore debug

    – Rakesh Jesadiya
    Aug 2 '16 at 6:07













3












3








3


1






I'm new to Magento 2.




Fatal error: Class 'Mage' not found in vendormagentomodule-themeviewbasetemplatesroot.phtml on line 23




Can anybody tell me how to solve this?










share|improve this question
















I'm new to Magento 2.




Fatal error: Class 'Mage' not found in vendormagentomodule-themeviewbasetemplatesroot.phtml on line 23




Can anybody tell me how to solve this?







magento2 php fatal-error






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 2 '16 at 6:34









Amit Bera

63.2k16 gold badges85 silver badges183 bronze badges




63.2k16 gold badges85 silver badges183 bronze badges










asked Aug 2 '16 at 5:58









Ankit ShahAnkit Shah

5,16212 gold badges78 silver badges149 bronze badges




5,16212 gold badges78 silver badges149 bronze badges















  • Please add more details, you should add more code lines.

    – Khoa TruongDinh
    Aug 2 '16 at 6:00











  • plz show your root.phtml file tomore debug

    – Rakesh Jesadiya
    Aug 2 '16 at 6:07

















  • Please add more details, you should add more code lines.

    – Khoa TruongDinh
    Aug 2 '16 at 6:00











  • plz show your root.phtml file tomore debug

    – Rakesh Jesadiya
    Aug 2 '16 at 6:07
















Please add more details, you should add more code lines.

– Khoa TruongDinh
Aug 2 '16 at 6:00





Please add more details, you should add more code lines.

– Khoa TruongDinh
Aug 2 '16 at 6:00













plz show your root.phtml file tomore debug

– Rakesh Jesadiya
Aug 2 '16 at 6:07





plz show your root.phtml file tomore debug

– Rakesh Jesadiya
Aug 2 '16 at 6:07










3 Answers
3






active

oldest

votes


















3















Mage is deprecated in Magento2.



Magento2, not using factory Patten types like Mage::getModel ,Mage::getsingleton() etc



It now uses the class nameSpace concept



To learn more about how to use ObjectManager in Magento 2, checkout these links:



  • alan storm blog

  • Magento 2: to use or not to use the ObjectManager directly?





share|improve this answer


































    3















    It looks like the theme you installed is not compatible with Magento 2.

    Aparently it has a Mage::...() call in one of the files.






    share|improve this answer
































      0















      in magento 2 call the model any where



      $objectManager = MagentoFrameworkAppObjectManager::getInstance();
      $model = $objectManager->create('NamespaceModulenameModelModulename');





      share|improve this answer

























      • Don't use the ObjectManager directly magento.stackexchange.com/a/117103/5972

        – Niels
        Aug 28 '18 at 8:51













      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%2f128497%2fclass-mage-not-found-in-magento-2%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









      3















      Mage is deprecated in Magento2.



      Magento2, not using factory Patten types like Mage::getModel ,Mage::getsingleton() etc



      It now uses the class nameSpace concept



      To learn more about how to use ObjectManager in Magento 2, checkout these links:



      • alan storm blog

      • Magento 2: to use or not to use the ObjectManager directly?





      share|improve this answer































        3















        Mage is deprecated in Magento2.



        Magento2, not using factory Patten types like Mage::getModel ,Mage::getsingleton() etc



        It now uses the class nameSpace concept



        To learn more about how to use ObjectManager in Magento 2, checkout these links:



        • alan storm blog

        • Magento 2: to use or not to use the ObjectManager directly?





        share|improve this answer





























          3














          3










          3









          Mage is deprecated in Magento2.



          Magento2, not using factory Patten types like Mage::getModel ,Mage::getsingleton() etc



          It now uses the class nameSpace concept



          To learn more about how to use ObjectManager in Magento 2, checkout these links:



          • alan storm blog

          • Magento 2: to use or not to use the ObjectManager directly?





          share|improve this answer















          Mage is deprecated in Magento2.



          Magento2, not using factory Patten types like Mage::getModel ,Mage::getsingleton() etc



          It now uses the class nameSpace concept



          To learn more about how to use ObjectManager in Magento 2, checkout these links:



          • alan storm blog

          • Magento 2: to use or not to use the ObjectManager directly?






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Aug 15 at 3:19









          joeybab3

          699 bronze badges




          699 bronze badges










          answered Aug 2 '16 at 6:07









          Amit BeraAmit Bera

          63.2k16 gold badges85 silver badges183 bronze badges




          63.2k16 gold badges85 silver badges183 bronze badges


























              3















              It looks like the theme you installed is not compatible with Magento 2.

              Aparently it has a Mage::...() call in one of the files.






              share|improve this answer





























                3















                It looks like the theme you installed is not compatible with Magento 2.

                Aparently it has a Mage::...() call in one of the files.






                share|improve this answer



























                  3














                  3










                  3









                  It looks like the theme you installed is not compatible with Magento 2.

                  Aparently it has a Mage::...() call in one of the files.






                  share|improve this answer













                  It looks like the theme you installed is not compatible with Magento 2.

                  Aparently it has a Mage::...() call in one of the files.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Aug 2 '16 at 6:06









                  MariusMarius

                  172k30 gold badges334 silver badges709 bronze badges




                  172k30 gold badges334 silver badges709 bronze badges
























                      0















                      in magento 2 call the model any where



                      $objectManager = MagentoFrameworkAppObjectManager::getInstance();
                      $model = $objectManager->create('NamespaceModulenameModelModulename');





                      share|improve this answer

























                      • Don't use the ObjectManager directly magento.stackexchange.com/a/117103/5972

                        – Niels
                        Aug 28 '18 at 8:51















                      0















                      in magento 2 call the model any where



                      $objectManager = MagentoFrameworkAppObjectManager::getInstance();
                      $model = $objectManager->create('NamespaceModulenameModelModulename');





                      share|improve this answer

























                      • Don't use the ObjectManager directly magento.stackexchange.com/a/117103/5972

                        – Niels
                        Aug 28 '18 at 8:51













                      0














                      0










                      0









                      in magento 2 call the model any where



                      $objectManager = MagentoFrameworkAppObjectManager::getInstance();
                      $model = $objectManager->create('NamespaceModulenameModelModulename');





                      share|improve this answer













                      in magento 2 call the model any where



                      $objectManager = MagentoFrameworkAppObjectManager::getInstance();
                      $model = $objectManager->create('NamespaceModulenameModelModulename');






                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Aug 28 '18 at 8:48









                      Hafiz ArslanHafiz Arslan

                      3601 silver badge18 bronze badges




                      3601 silver badge18 bronze badges















                      • Don't use the ObjectManager directly magento.stackexchange.com/a/117103/5972

                        – Niels
                        Aug 28 '18 at 8:51

















                      • Don't use the ObjectManager directly magento.stackexchange.com/a/117103/5972

                        – Niels
                        Aug 28 '18 at 8:51
















                      Don't use the ObjectManager directly magento.stackexchange.com/a/117103/5972

                      – Niels
                      Aug 28 '18 at 8:51





                      Don't use the ObjectManager directly magento.stackexchange.com/a/117103/5972

                      – Niels
                      Aug 28 '18 at 8:51

















                      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%2f128497%2fclass-mage-not-found-in-magento-2%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

                      Grendel Contents Story Scholarship Depictions Notes References Navigation menu10.1093/notesj/gjn112Berserkeree

                      Area configuration aggregation error after install Porto themeMagento 2.1 CE Installed but front/backend not loading/workingCSS not loading on page within Magento 2 pageCannot install module in Magento 2no commands defined in the “setup” namespace. in Magento2Magento 2: Static files are present but shows 404Why do i have to always run the commands to clean cache in Magento 2.1.8?Failure reason: 'Unable to unserialize value.'Error 500 after magento migrationIn production mode the site does not loadMagento 2 : Error 500 after installing

                      Middle Expansion Olielle Resaix Definition: Uttering songs of triumph shouting with joy triumphant exulting Sejunction Journal 붙다 달 고급 품목 외출 The stretch trades the screeching tin. Definition: The act of speaking with a drawl a drawl Cough Sand Definition: An uproar a quarrel a noisy outbreak Shake Iron Publicize Horse House Baby 사과 Resaix Flaggy Jelly Temporary Unequaled Puppet A drop in the bucket Shrew 성격 회원 성질 미팅 The burn frames the tacky quality. Materialistic The smoke reduces the way. Yammoe Nondescript Cheek 얼굴 배 약하다 날리다 타다 The illegal country shows the iron. Help Rule Drearien Smoke Teaching Meaty Wasp Abraham Lincoln Jaws 진심 수리하다 Size Cork Idea Convert Think Lark John Lennon 거울 청소 군 추천하다 아이스크림