how fix invalid url in magento












0















Invalid base url type



Trace:
#0 C:xampphtdocsmagentoappcodecoreMageCoreModelStore.php(620): Mage::exception('Mage_Core', 'Invalid base ur...')
#1 C:xampphtdocsmagentoappMage.php(382): Mage_Core_Model_Store->getBaseUrl('validation', NULL)
#2 C:xampphtdocsmagentoappcodecoreMagePageBlockHtmlHead.php(250): Mage::getBaseUrl('validation')
#3 C:xampphtdocsmagentoappcodecoreMagePageBlockHtmlHead.php(206): Mage_Page_Block_Html_Head->_prepareStaticAndSkinElements('<link rel="styl...', Array, Array, NULL)
#4 C:xampphtdocsmagentoappdesignfrontendtemplatemelaMAG110227_1templatepagehtmlhead.phtml(63): Mage_Page_Block_Html_Head->getCssJsHtml()
#5 C:xampphtdocsmagentoappcodecoreMageCoreBlockTemplate.php(241): include('C:\xampp\htdocs...')
#6 C:xampphtdocsmagentoappcodecoreMageCoreBlockTemplate.php(272): Mage_Core_Block_Template->fetchView('frontend\templa...')
#7 C:xampphtdocsmagentoappcodecoreMageCoreBlockTemplate.php(286): Mage_Core_Block_Template->renderView()
#8 C:xampphtdocsmagentoappcodecoreMageCoreBlockAbstract.php(923): Mage_Core_Block_Template->_toHtml()
#9 C:xampphtdocsmagentoappcodecoreMageCoreBlockAbstract.php(641): Mage_Core_Block_Abstract->toHtml()
#10 C:xampphtdocsmagentoappcodecoreMageCoreBlockAbstract.php(585): Mage_Core_Block_Abstract->_getChildHtml('head', true)
#11 C:xampphtdocsmagentoappdesignfrontendtemplatemelaMAG110227_1templatepage1column.phtml(40): Mage_Core_Block_Abstract->getChildHtml('head')
#12 C:xampphtdocsmagentoappcodecoreMageCoreBlockTemplate.php(241): include('C:\xampp\htdocs...')
#13 C:xampphtdocsmagentoappcodecoreMageCoreBlockTemplate.php(272): Mage_Core_Block_Template->fetchView('frontend\templa...')
#14 C:xampphtdocsmagentoappcodecoreMageCoreBlockTemplate.php(286): Mage_Core_Block_Template->renderView()
#15 C:xampphtdocsmagentoappcodecoreMageCoreBlockAbstract.php(923): Mage_Core_Block_Template->_toHtml()
#16 C:xampphtdocsmagentoappcodecoreMageCoreModelLayout.php(556): Mage_Core_Block_Abstract->toHtml()
#17 C:xampphtdocsmagentoappcodelocalMageCoreControllerVarienAction.php(389): Mage_Core_Model_Layout->getOutput()
#18 C:xampphtdocsmagentoappcodecoreMageCmsHelperPage.php(137): Mage_Core_Controller_Varien_Action->renderLayout()
#19 C:xampphtdocsmagentoappcodecoreMageCmsHelperPage.php(52): Mage_Cms_Helper_Page->_renderPage(Object(Mage_Cms_IndexController), 'home')
#20 C:xampphtdocsmagentoappcodecoreMageCmscontrollersIndexController.php(45): Mage_Cms_Helper_Page->renderPage(Object(Mage_Cms_IndexController), 'home')
#21 C:xampphtdocsmagentoappcodelocalMageCoreControllerVarienAction.php(417): Mage_Cms_IndexController->indexAction()
#22 C:xampphtdocsmagentoappcodecoreMageCoreControllerVarienRouterStandard.php(254): Mage_Core_Controller_Varien_Action->dispatch('index')
#23 C:xampphtdocsmagentoappcodecoreMageCoreControllerVarienFront.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#24 C:xampphtdocsmagentoappcodecoreMageCoreModelApp.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#25 C:xampphtdocsmagentoappMage.php(683): Mage_Core_Model_App->run(Array)
#26 C:xampphtdocsmagentoindex.php(82): Mage::run('', 'store')
#27 {main}








share





























    0















    Invalid base url type



    Trace:
    #0 C:xampphtdocsmagentoappcodecoreMageCoreModelStore.php(620): Mage::exception('Mage_Core', 'Invalid base ur...')
    #1 C:xampphtdocsmagentoappMage.php(382): Mage_Core_Model_Store->getBaseUrl('validation', NULL)
    #2 C:xampphtdocsmagentoappcodecoreMagePageBlockHtmlHead.php(250): Mage::getBaseUrl('validation')
    #3 C:xampphtdocsmagentoappcodecoreMagePageBlockHtmlHead.php(206): Mage_Page_Block_Html_Head->_prepareStaticAndSkinElements('<link rel="styl...', Array, Array, NULL)
    #4 C:xampphtdocsmagentoappdesignfrontendtemplatemelaMAG110227_1templatepagehtmlhead.phtml(63): Mage_Page_Block_Html_Head->getCssJsHtml()
    #5 C:xampphtdocsmagentoappcodecoreMageCoreBlockTemplate.php(241): include('C:\xampp\htdocs...')
    #6 C:xampphtdocsmagentoappcodecoreMageCoreBlockTemplate.php(272): Mage_Core_Block_Template->fetchView('frontend\templa...')
    #7 C:xampphtdocsmagentoappcodecoreMageCoreBlockTemplate.php(286): Mage_Core_Block_Template->renderView()
    #8 C:xampphtdocsmagentoappcodecoreMageCoreBlockAbstract.php(923): Mage_Core_Block_Template->_toHtml()
    #9 C:xampphtdocsmagentoappcodecoreMageCoreBlockAbstract.php(641): Mage_Core_Block_Abstract->toHtml()
    #10 C:xampphtdocsmagentoappcodecoreMageCoreBlockAbstract.php(585): Mage_Core_Block_Abstract->_getChildHtml('head', true)
    #11 C:xampphtdocsmagentoappdesignfrontendtemplatemelaMAG110227_1templatepage1column.phtml(40): Mage_Core_Block_Abstract->getChildHtml('head')
    #12 C:xampphtdocsmagentoappcodecoreMageCoreBlockTemplate.php(241): include('C:\xampp\htdocs...')
    #13 C:xampphtdocsmagentoappcodecoreMageCoreBlockTemplate.php(272): Mage_Core_Block_Template->fetchView('frontend\templa...')
    #14 C:xampphtdocsmagentoappcodecoreMageCoreBlockTemplate.php(286): Mage_Core_Block_Template->renderView()
    #15 C:xampphtdocsmagentoappcodecoreMageCoreBlockAbstract.php(923): Mage_Core_Block_Template->_toHtml()
    #16 C:xampphtdocsmagentoappcodecoreMageCoreModelLayout.php(556): Mage_Core_Block_Abstract->toHtml()
    #17 C:xampphtdocsmagentoappcodelocalMageCoreControllerVarienAction.php(389): Mage_Core_Model_Layout->getOutput()
    #18 C:xampphtdocsmagentoappcodecoreMageCmsHelperPage.php(137): Mage_Core_Controller_Varien_Action->renderLayout()
    #19 C:xampphtdocsmagentoappcodecoreMageCmsHelperPage.php(52): Mage_Cms_Helper_Page->_renderPage(Object(Mage_Cms_IndexController), 'home')
    #20 C:xampphtdocsmagentoappcodecoreMageCmscontrollersIndexController.php(45): Mage_Cms_Helper_Page->renderPage(Object(Mage_Cms_IndexController), 'home')
    #21 C:xampphtdocsmagentoappcodelocalMageCoreControllerVarienAction.php(417): Mage_Cms_IndexController->indexAction()
    #22 C:xampphtdocsmagentoappcodecoreMageCoreControllerVarienRouterStandard.php(254): Mage_Core_Controller_Varien_Action->dispatch('index')
    #23 C:xampphtdocsmagentoappcodecoreMageCoreControllerVarienFront.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
    #24 C:xampphtdocsmagentoappcodecoreMageCoreModelApp.php(365): Mage_Core_Controller_Varien_Front->dispatch()
    #25 C:xampphtdocsmagentoappMage.php(683): Mage_Core_Model_App->run(Array)
    #26 C:xampphtdocsmagentoindex.php(82): Mage::run('', 'store')
    #27 {main}








    share



























      0












      0








      0








      Invalid base url type



      Trace:
      #0 C:xampphtdocsmagentoappcodecoreMageCoreModelStore.php(620): Mage::exception('Mage_Core', 'Invalid base ur...')
      #1 C:xampphtdocsmagentoappMage.php(382): Mage_Core_Model_Store->getBaseUrl('validation', NULL)
      #2 C:xampphtdocsmagentoappcodecoreMagePageBlockHtmlHead.php(250): Mage::getBaseUrl('validation')
      #3 C:xampphtdocsmagentoappcodecoreMagePageBlockHtmlHead.php(206): Mage_Page_Block_Html_Head->_prepareStaticAndSkinElements('<link rel="styl...', Array, Array, NULL)
      #4 C:xampphtdocsmagentoappdesignfrontendtemplatemelaMAG110227_1templatepagehtmlhead.phtml(63): Mage_Page_Block_Html_Head->getCssJsHtml()
      #5 C:xampphtdocsmagentoappcodecoreMageCoreBlockTemplate.php(241): include('C:\xampp\htdocs...')
      #6 C:xampphtdocsmagentoappcodecoreMageCoreBlockTemplate.php(272): Mage_Core_Block_Template->fetchView('frontend\templa...')
      #7 C:xampphtdocsmagentoappcodecoreMageCoreBlockTemplate.php(286): Mage_Core_Block_Template->renderView()
      #8 C:xampphtdocsmagentoappcodecoreMageCoreBlockAbstract.php(923): Mage_Core_Block_Template->_toHtml()
      #9 C:xampphtdocsmagentoappcodecoreMageCoreBlockAbstract.php(641): Mage_Core_Block_Abstract->toHtml()
      #10 C:xampphtdocsmagentoappcodecoreMageCoreBlockAbstract.php(585): Mage_Core_Block_Abstract->_getChildHtml('head', true)
      #11 C:xampphtdocsmagentoappdesignfrontendtemplatemelaMAG110227_1templatepage1column.phtml(40): Mage_Core_Block_Abstract->getChildHtml('head')
      #12 C:xampphtdocsmagentoappcodecoreMageCoreBlockTemplate.php(241): include('C:\xampp\htdocs...')
      #13 C:xampphtdocsmagentoappcodecoreMageCoreBlockTemplate.php(272): Mage_Core_Block_Template->fetchView('frontend\templa...')
      #14 C:xampphtdocsmagentoappcodecoreMageCoreBlockTemplate.php(286): Mage_Core_Block_Template->renderView()
      #15 C:xampphtdocsmagentoappcodecoreMageCoreBlockAbstract.php(923): Mage_Core_Block_Template->_toHtml()
      #16 C:xampphtdocsmagentoappcodecoreMageCoreModelLayout.php(556): Mage_Core_Block_Abstract->toHtml()
      #17 C:xampphtdocsmagentoappcodelocalMageCoreControllerVarienAction.php(389): Mage_Core_Model_Layout->getOutput()
      #18 C:xampphtdocsmagentoappcodecoreMageCmsHelperPage.php(137): Mage_Core_Controller_Varien_Action->renderLayout()
      #19 C:xampphtdocsmagentoappcodecoreMageCmsHelperPage.php(52): Mage_Cms_Helper_Page->_renderPage(Object(Mage_Cms_IndexController), 'home')
      #20 C:xampphtdocsmagentoappcodecoreMageCmscontrollersIndexController.php(45): Mage_Cms_Helper_Page->renderPage(Object(Mage_Cms_IndexController), 'home')
      #21 C:xampphtdocsmagentoappcodelocalMageCoreControllerVarienAction.php(417): Mage_Cms_IndexController->indexAction()
      #22 C:xampphtdocsmagentoappcodecoreMageCoreControllerVarienRouterStandard.php(254): Mage_Core_Controller_Varien_Action->dispatch('index')
      #23 C:xampphtdocsmagentoappcodecoreMageCoreControllerVarienFront.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
      #24 C:xampphtdocsmagentoappcodecoreMageCoreModelApp.php(365): Mage_Core_Controller_Varien_Front->dispatch()
      #25 C:xampphtdocsmagentoappMage.php(683): Mage_Core_Model_App->run(Array)
      #26 C:xampphtdocsmagentoindex.php(82): Mage::run('', 'store')
      #27 {main}








      share
















      Invalid base url type



      Trace:
      #0 C:xampphtdocsmagentoappcodecoreMageCoreModelStore.php(620): Mage::exception('Mage_Core', 'Invalid base ur...')
      #1 C:xampphtdocsmagentoappMage.php(382): Mage_Core_Model_Store->getBaseUrl('validation', NULL)
      #2 C:xampphtdocsmagentoappcodecoreMagePageBlockHtmlHead.php(250): Mage::getBaseUrl('validation')
      #3 C:xampphtdocsmagentoappcodecoreMagePageBlockHtmlHead.php(206): Mage_Page_Block_Html_Head->_prepareStaticAndSkinElements('<link rel="styl...', Array, Array, NULL)
      #4 C:xampphtdocsmagentoappdesignfrontendtemplatemelaMAG110227_1templatepagehtmlhead.phtml(63): Mage_Page_Block_Html_Head->getCssJsHtml()
      #5 C:xampphtdocsmagentoappcodecoreMageCoreBlockTemplate.php(241): include('C:\xampp\htdocs...')
      #6 C:xampphtdocsmagentoappcodecoreMageCoreBlockTemplate.php(272): Mage_Core_Block_Template->fetchView('frontend\templa...')
      #7 C:xampphtdocsmagentoappcodecoreMageCoreBlockTemplate.php(286): Mage_Core_Block_Template->renderView()
      #8 C:xampphtdocsmagentoappcodecoreMageCoreBlockAbstract.php(923): Mage_Core_Block_Template->_toHtml()
      #9 C:xampphtdocsmagentoappcodecoreMageCoreBlockAbstract.php(641): Mage_Core_Block_Abstract->toHtml()
      #10 C:xampphtdocsmagentoappcodecoreMageCoreBlockAbstract.php(585): Mage_Core_Block_Abstract->_getChildHtml('head', true)
      #11 C:xampphtdocsmagentoappdesignfrontendtemplatemelaMAG110227_1templatepage1column.phtml(40): Mage_Core_Block_Abstract->getChildHtml('head')
      #12 C:xampphtdocsmagentoappcodecoreMageCoreBlockTemplate.php(241): include('C:\xampp\htdocs...')
      #13 C:xampphtdocsmagentoappcodecoreMageCoreBlockTemplate.php(272): Mage_Core_Block_Template->fetchView('frontend\templa...')
      #14 C:xampphtdocsmagentoappcodecoreMageCoreBlockTemplate.php(286): Mage_Core_Block_Template->renderView()
      #15 C:xampphtdocsmagentoappcodecoreMageCoreBlockAbstract.php(923): Mage_Core_Block_Template->_toHtml()
      #16 C:xampphtdocsmagentoappcodecoreMageCoreModelLayout.php(556): Mage_Core_Block_Abstract->toHtml()
      #17 C:xampphtdocsmagentoappcodelocalMageCoreControllerVarienAction.php(389): Mage_Core_Model_Layout->getOutput()
      #18 C:xampphtdocsmagentoappcodecoreMageCmsHelperPage.php(137): Mage_Core_Controller_Varien_Action->renderLayout()
      #19 C:xampphtdocsmagentoappcodecoreMageCmsHelperPage.php(52): Mage_Cms_Helper_Page->_renderPage(Object(Mage_Cms_IndexController), 'home')
      #20 C:xampphtdocsmagentoappcodecoreMageCmscontrollersIndexController.php(45): Mage_Cms_Helper_Page->renderPage(Object(Mage_Cms_IndexController), 'home')
      #21 C:xampphtdocsmagentoappcodelocalMageCoreControllerVarienAction.php(417): Mage_Cms_IndexController->indexAction()
      #22 C:xampphtdocsmagentoappcodecoreMageCoreControllerVarienRouterStandard.php(254): Mage_Core_Controller_Varien_Action->dispatch('index')
      #23 C:xampphtdocsmagentoappcodecoreMageCoreControllerVarienFront.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
      #24 C:xampphtdocsmagentoappcodecoreMageCoreModelApp.php(365): Mage_Core_Controller_Varien_Front->dispatch()
      #25 C:xampphtdocsmagentoappMage.php(683): Mage_Core_Model_App->run(Array)
      #26 C:xampphtdocsmagentoindex.php(82): Mage::run('', 'store')
      #27 {main}






      magento2 error url





      share














      share












      share



      share








      edited 2 mins ago









      Shoaib Munir

      613317




      613317










      asked 6 mins ago









      samsam

      11




      11






















          1 Answer
          1






          active

          oldest

          votes


















          0














          It seems like the error posted is throwing an Invalid website id requested error, which is typically caused by deleting stores or content staging websites. To clean up these errors in the past, I have followed these steps:



          Make sure that these tables only reference valid websites/stores by deleting records that reference deleted stores and websites:





          • core_store

          • core_store_group

          • core_website


          In the catalog_product_website table, make sure that products are only associated with active websites. For example, to delete associations between all websites except website id 1, use the following SQL: DELETE FROM catalog_product_website WHERE website_id != 1





          share























            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%2f261335%2fhow-fix-invalid-url-in-magento%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            It seems like the error posted is throwing an Invalid website id requested error, which is typically caused by deleting stores or content staging websites. To clean up these errors in the past, I have followed these steps:



            Make sure that these tables only reference valid websites/stores by deleting records that reference deleted stores and websites:





            • core_store

            • core_store_group

            • core_website


            In the catalog_product_website table, make sure that products are only associated with active websites. For example, to delete associations between all websites except website id 1, use the following SQL: DELETE FROM catalog_product_website WHERE website_id != 1





            share




























              0














              It seems like the error posted is throwing an Invalid website id requested error, which is typically caused by deleting stores or content staging websites. To clean up these errors in the past, I have followed these steps:



              Make sure that these tables only reference valid websites/stores by deleting records that reference deleted stores and websites:





              • core_store

              • core_store_group

              • core_website


              In the catalog_product_website table, make sure that products are only associated with active websites. For example, to delete associations between all websites except website id 1, use the following SQL: DELETE FROM catalog_product_website WHERE website_id != 1





              share


























                0












                0








                0







                It seems like the error posted is throwing an Invalid website id requested error, which is typically caused by deleting stores or content staging websites. To clean up these errors in the past, I have followed these steps:



                Make sure that these tables only reference valid websites/stores by deleting records that reference deleted stores and websites:





                • core_store

                • core_store_group

                • core_website


                In the catalog_product_website table, make sure that products are only associated with active websites. For example, to delete associations between all websites except website id 1, use the following SQL: DELETE FROM catalog_product_website WHERE website_id != 1





                share













                It seems like the error posted is throwing an Invalid website id requested error, which is typically caused by deleting stores or content staging websites. To clean up these errors in the past, I have followed these steps:



                Make sure that these tables only reference valid websites/stores by deleting records that reference deleted stores and websites:





                • core_store

                • core_store_group

                • core_website


                In the catalog_product_website table, make sure that products are only associated with active websites. For example, to delete associations between all websites except website id 1, use the following SQL: DELETE FROM catalog_product_website WHERE website_id != 1






                share











                share


                share










                answered 1 min ago









                HIren KadivarHIren Kadivar

                516111




                516111






























                    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%2f261335%2fhow-fix-invalid-url-in-magento%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