Invalid URI error after migrating Magento and no underscore in URL












3















I've migrated my Magento CE 1.7.0.2. to a new domain and have updated the local.xml and core_config_data table, web/unsecure/base_url and web/secure/base_url now contain the right urls. (Installation 1)



However upon opening the main page of my store I do get the following error:



There has been an error processing your request



Invalid URI supplied



a:5:{i:0;s:20:"Invalid URI supplied";i:1;s:871:"#0 /home/my-domain.com/public_html/lib/Zend/Uri.php(143): Zend_Uri_Http->__construct('http', '//my-domain...')
#1 /home/my-domain.com/public_html/app/code/core/Mage/Core/Model/Store.php(726): Zend_Uri::factory('http://my-doma...')
#2 /home/my-domain.com/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(313): Mage_Core_Model_Store->isCurrentlySecure()
#3 /home/my-domain.com/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(161): Mage_Core_Controller_Varien_Front->_checkBaseUrl(Object(Mage_Core_Controller_Request_Http))
#4 /home/my-domain.com/public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#5 /home/my-domain.com/public_html/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#6 /home/my-domain.com/public_html/index.php(87): Mage::run('', 'store')
#7 {main}";s:3:"url";s:1:"/";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:7:"default";}


The url of my Magento installation contains dashes but no underscores.



I've successfully installed a clean Magento installation (Installation 2) on the same server using a second database. This installation runs without problems, settings of the web/unsecure/base_url and web/secure/base_url in the core_config_data table are equal.



I've also configured the clean installation (Installation 2) in such a way that it links to the database of the original Magento installation (Installation 1) surprisingly this works fine too.



I feel something is wrong with one of the Magento files of Installation 1. Anybody a clue what might cause installation 1 not to work properly?










share|improve this question



























    3















    I've migrated my Magento CE 1.7.0.2. to a new domain and have updated the local.xml and core_config_data table, web/unsecure/base_url and web/secure/base_url now contain the right urls. (Installation 1)



    However upon opening the main page of my store I do get the following error:



    There has been an error processing your request



    Invalid URI supplied



    a:5:{i:0;s:20:"Invalid URI supplied";i:1;s:871:"#0 /home/my-domain.com/public_html/lib/Zend/Uri.php(143): Zend_Uri_Http->__construct('http', '//my-domain...')
    #1 /home/my-domain.com/public_html/app/code/core/Mage/Core/Model/Store.php(726): Zend_Uri::factory('http://my-doma...')
    #2 /home/my-domain.com/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(313): Mage_Core_Model_Store->isCurrentlySecure()
    #3 /home/my-domain.com/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(161): Mage_Core_Controller_Varien_Front->_checkBaseUrl(Object(Mage_Core_Controller_Request_Http))
    #4 /home/my-domain.com/public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
    #5 /home/my-domain.com/public_html/app/Mage.php(683): Mage_Core_Model_App->run(Array)
    #6 /home/my-domain.com/public_html/index.php(87): Mage::run('', 'store')
    #7 {main}";s:3:"url";s:1:"/";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:7:"default";}


    The url of my Magento installation contains dashes but no underscores.



    I've successfully installed a clean Magento installation (Installation 2) on the same server using a second database. This installation runs without problems, settings of the web/unsecure/base_url and web/secure/base_url in the core_config_data table are equal.



    I've also configured the clean installation (Installation 2) in such a way that it links to the database of the original Magento installation (Installation 1) surprisingly this works fine too.



    I feel something is wrong with one of the Magento files of Installation 1. Anybody a clue what might cause installation 1 not to work properly?










    share|improve this question

























      3












      3








      3


      1






      I've migrated my Magento CE 1.7.0.2. to a new domain and have updated the local.xml and core_config_data table, web/unsecure/base_url and web/secure/base_url now contain the right urls. (Installation 1)



      However upon opening the main page of my store I do get the following error:



      There has been an error processing your request



      Invalid URI supplied



      a:5:{i:0;s:20:"Invalid URI supplied";i:1;s:871:"#0 /home/my-domain.com/public_html/lib/Zend/Uri.php(143): Zend_Uri_Http->__construct('http', '//my-domain...')
      #1 /home/my-domain.com/public_html/app/code/core/Mage/Core/Model/Store.php(726): Zend_Uri::factory('http://my-doma...')
      #2 /home/my-domain.com/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(313): Mage_Core_Model_Store->isCurrentlySecure()
      #3 /home/my-domain.com/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(161): Mage_Core_Controller_Varien_Front->_checkBaseUrl(Object(Mage_Core_Controller_Request_Http))
      #4 /home/my-domain.com/public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
      #5 /home/my-domain.com/public_html/app/Mage.php(683): Mage_Core_Model_App->run(Array)
      #6 /home/my-domain.com/public_html/index.php(87): Mage::run('', 'store')
      #7 {main}";s:3:"url";s:1:"/";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:7:"default";}


      The url of my Magento installation contains dashes but no underscores.



      I've successfully installed a clean Magento installation (Installation 2) on the same server using a second database. This installation runs without problems, settings of the web/unsecure/base_url and web/secure/base_url in the core_config_data table are equal.



      I've also configured the clean installation (Installation 2) in such a way that it links to the database of the original Magento installation (Installation 1) surprisingly this works fine too.



      I feel something is wrong with one of the Magento files of Installation 1. Anybody a clue what might cause installation 1 not to work properly?










      share|improve this question














      I've migrated my Magento CE 1.7.0.2. to a new domain and have updated the local.xml and core_config_data table, web/unsecure/base_url and web/secure/base_url now contain the right urls. (Installation 1)



      However upon opening the main page of my store I do get the following error:



      There has been an error processing your request



      Invalid URI supplied



      a:5:{i:0;s:20:"Invalid URI supplied";i:1;s:871:"#0 /home/my-domain.com/public_html/lib/Zend/Uri.php(143): Zend_Uri_Http->__construct('http', '//my-domain...')
      #1 /home/my-domain.com/public_html/app/code/core/Mage/Core/Model/Store.php(726): Zend_Uri::factory('http://my-doma...')
      #2 /home/my-domain.com/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(313): Mage_Core_Model_Store->isCurrentlySecure()
      #3 /home/my-domain.com/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(161): Mage_Core_Controller_Varien_Front->_checkBaseUrl(Object(Mage_Core_Controller_Request_Http))
      #4 /home/my-domain.com/public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
      #5 /home/my-domain.com/public_html/app/Mage.php(683): Mage_Core_Model_App->run(Array)
      #6 /home/my-domain.com/public_html/index.php(87): Mage::run('', 'store')
      #7 {main}";s:3:"url";s:1:"/";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:7:"default";}


      The url of my Magento installation contains dashes but no underscores.



      I've successfully installed a clean Magento installation (Installation 2) on the same server using a second database. This installation runs without problems, settings of the web/unsecure/base_url and web/secure/base_url in the core_config_data table are equal.



      I've also configured the clean installation (Installation 2) in such a way that it links to the database of the original Magento installation (Installation 1) surprisingly this works fine too.



      I feel something is wrong with one of the Magento files of Installation 1. Anybody a clue what might cause installation 1 not to work properly?







      ce-1.7.0.2 migration server






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jul 15 '14 at 10:33









      TrendyTTrendyT

      1613




      1613






















          3 Answers
          3






          active

          oldest

          votes


















          6














          Check any whitespace or new line character on core_config_data table entries for base_url fields (web/unsecure/base_url, web/secure/base_url, web/unsecure/base_url, web/secure/base_url). I encountered this once and that's how I've resolved it.



          Also another error that you may get because of this mistake is



          Warning: Header may not contain more than a single header, new line detected  in lib/Zend/Controller/Response/Abstract.php on line 363


          I would like to add this as comment but I don't have enough reputation to do so.






          share|improve this answer

































            0














            I had the same issue and my URL didn't have an underscore "_" in it.
            So the solution was to erase the var/cache folder contents and also the var/session folder content. Then refresh your page and that should do it.






            share|improve this answer































              0














              Spent quite some time resolving this issue today. The Magento 2 site we were working on would not load the admin area and was exhausting all available memory. The URL was edited in the DB and had a line break after the domain name.



              Check the URLS in web/unsecure/base_url & web/secure/base_url



              Make sure they are clean with no spaces etc.






              share|improve this answer








              New contributor




              Puremedia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.




















                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%2f28966%2finvalid-uri-error-after-migrating-magento-and-no-underscore-in-url%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









                6














                Check any whitespace or new line character on core_config_data table entries for base_url fields (web/unsecure/base_url, web/secure/base_url, web/unsecure/base_url, web/secure/base_url). I encountered this once and that's how I've resolved it.



                Also another error that you may get because of this mistake is



                Warning: Header may not contain more than a single header, new line detected  in lib/Zend/Controller/Response/Abstract.php on line 363


                I would like to add this as comment but I don't have enough reputation to do so.






                share|improve this answer






























                  6














                  Check any whitespace or new line character on core_config_data table entries for base_url fields (web/unsecure/base_url, web/secure/base_url, web/unsecure/base_url, web/secure/base_url). I encountered this once and that's how I've resolved it.



                  Also another error that you may get because of this mistake is



                  Warning: Header may not contain more than a single header, new line detected  in lib/Zend/Controller/Response/Abstract.php on line 363


                  I would like to add this as comment but I don't have enough reputation to do so.






                  share|improve this answer




























                    6












                    6








                    6







                    Check any whitespace or new line character on core_config_data table entries for base_url fields (web/unsecure/base_url, web/secure/base_url, web/unsecure/base_url, web/secure/base_url). I encountered this once and that's how I've resolved it.



                    Also another error that you may get because of this mistake is



                    Warning: Header may not contain more than a single header, new line detected  in lib/Zend/Controller/Response/Abstract.php on line 363


                    I would like to add this as comment but I don't have enough reputation to do so.






                    share|improve this answer















                    Check any whitespace or new line character on core_config_data table entries for base_url fields (web/unsecure/base_url, web/secure/base_url, web/unsecure/base_url, web/secure/base_url). I encountered this once and that's how I've resolved it.



                    Also another error that you may get because of this mistake is



                    Warning: Header may not contain more than a single header, new line detected  in lib/Zend/Controller/Response/Abstract.php on line 363


                    I would like to add this as comment but I don't have enough reputation to do so.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Aug 11 '14 at 23:23

























                    answered Aug 11 '14 at 9:02









                    phagentophagento

                    38428




                    38428

























                        0














                        I had the same issue and my URL didn't have an underscore "_" in it.
                        So the solution was to erase the var/cache folder contents and also the var/session folder content. Then refresh your page and that should do it.






                        share|improve this answer




























                          0














                          I had the same issue and my URL didn't have an underscore "_" in it.
                          So the solution was to erase the var/cache folder contents and also the var/session folder content. Then refresh your page and that should do it.






                          share|improve this answer


























                            0












                            0








                            0







                            I had the same issue and my URL didn't have an underscore "_" in it.
                            So the solution was to erase the var/cache folder contents and also the var/session folder content. Then refresh your page and that should do it.






                            share|improve this answer













                            I had the same issue and my URL didn't have an underscore "_" in it.
                            So the solution was to erase the var/cache folder contents and also the var/session folder content. Then refresh your page and that should do it.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Dec 22 '15 at 0:56









                            LordcuzLordcuz

                            112




                            112























                                0














                                Spent quite some time resolving this issue today. The Magento 2 site we were working on would not load the admin area and was exhausting all available memory. The URL was edited in the DB and had a line break after the domain name.



                                Check the URLS in web/unsecure/base_url & web/secure/base_url



                                Make sure they are clean with no spaces etc.






                                share|improve this answer








                                New contributor




                                Puremedia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                Check out our Code of Conduct.

























                                  0














                                  Spent quite some time resolving this issue today. The Magento 2 site we were working on would not load the admin area and was exhausting all available memory. The URL was edited in the DB and had a line break after the domain name.



                                  Check the URLS in web/unsecure/base_url & web/secure/base_url



                                  Make sure they are clean with no spaces etc.






                                  share|improve this answer








                                  New contributor




                                  Puremedia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                  Check out our Code of Conduct.























                                    0












                                    0








                                    0







                                    Spent quite some time resolving this issue today. The Magento 2 site we were working on would not load the admin area and was exhausting all available memory. The URL was edited in the DB and had a line break after the domain name.



                                    Check the URLS in web/unsecure/base_url & web/secure/base_url



                                    Make sure they are clean with no spaces etc.






                                    share|improve this answer








                                    New contributor




                                    Puremedia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                    Check out our Code of Conduct.










                                    Spent quite some time resolving this issue today. The Magento 2 site we were working on would not load the admin area and was exhausting all available memory. The URL was edited in the DB and had a line break after the domain name.



                                    Check the URLS in web/unsecure/base_url & web/secure/base_url



                                    Make sure they are clean with no spaces etc.







                                    share|improve this answer








                                    New contributor




                                    Puremedia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                    Check out our Code of Conduct.









                                    share|improve this answer



                                    share|improve this answer






                                    New contributor




                                    Puremedia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                    Check out our Code of Conduct.









                                    answered 25 mins ago









                                    PuremediaPuremedia

                                    1




                                    1




                                    New contributor




                                    Puremedia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                    Check out our Code of Conduct.





                                    New contributor





                                    Puremedia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                    Check out our Code of Conduct.






                                    Puremedia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                    Check out our Code of Conduct.






























                                        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%2f28966%2finvalid-uri-error-after-migrating-magento-and-no-underscore-in-url%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