Varien_Autoload not found in mage.php on line 54












2















I completed my website and before launch, I needed to transfer my website to another domain. As soon as I transferred the files, and opened the new website, it started showing me



Fatal error : Class Varien_Autoload not found in mage.php on line 54


I don't know where it went wrong, and am really in a helpless state right now. I searched on internet, but everywhere they say to disable compilation. The website already had compilation disabled. I also checked for the include path by putting the below code in mage.php above Varien_Autoload::register();



var_dump(get_include_path());


And I got this path as in result:



string(81) "/home/pavaiyacart/public_html/main/includes/src:.:/usr/lib/php:/usr/local/lib/php" 









share|improve this question























  • Did you find and replace your old base URL with the new base URL in you sql dumb of the database?

    – pontikos
    Oct 29 '16 at 0:11











  • No, I don't have any idea about that. Although I have solved the issue by reconstructing the whole site from scratch again. But I have saved that previous data and I would love to resolve its issue. Will Check what you pointed and will notify you soon. Could be of help to someone else.

    – Mohammad Anas Siddiquei
    Oct 29 '16 at 18:28
















2















I completed my website and before launch, I needed to transfer my website to another domain. As soon as I transferred the files, and opened the new website, it started showing me



Fatal error : Class Varien_Autoload not found in mage.php on line 54


I don't know where it went wrong, and am really in a helpless state right now. I searched on internet, but everywhere they say to disable compilation. The website already had compilation disabled. I also checked for the include path by putting the below code in mage.php above Varien_Autoload::register();



var_dump(get_include_path());


And I got this path as in result:



string(81) "/home/pavaiyacart/public_html/main/includes/src:.:/usr/lib/php:/usr/local/lib/php" 









share|improve this question























  • Did you find and replace your old base URL with the new base URL in you sql dumb of the database?

    – pontikos
    Oct 29 '16 at 0:11











  • No, I don't have any idea about that. Although I have solved the issue by reconstructing the whole site from scratch again. But I have saved that previous data and I would love to resolve its issue. Will Check what you pointed and will notify you soon. Could be of help to someone else.

    – Mohammad Anas Siddiquei
    Oct 29 '16 at 18:28














2












2








2








I completed my website and before launch, I needed to transfer my website to another domain. As soon as I transferred the files, and opened the new website, it started showing me



Fatal error : Class Varien_Autoload not found in mage.php on line 54


I don't know where it went wrong, and am really in a helpless state right now. I searched on internet, but everywhere they say to disable compilation. The website already had compilation disabled. I also checked for the include path by putting the below code in mage.php above Varien_Autoload::register();



var_dump(get_include_path());


And I got this path as in result:



string(81) "/home/pavaiyacart/public_html/main/includes/src:.:/usr/lib/php:/usr/local/lib/php" 









share|improve this question














I completed my website and before launch, I needed to transfer my website to another domain. As soon as I transferred the files, and opened the new website, it started showing me



Fatal error : Class Varien_Autoload not found in mage.php on line 54


I don't know where it went wrong, and am really in a helpless state right now. I searched on internet, but everywhere they say to disable compilation. The website already had compilation disabled. I also checked for the include path by putting the below code in mage.php above Varien_Autoload::register();



var_dump(get_include_path());


And I got this path as in result:



string(81) "/home/pavaiyacart/public_html/main/includes/src:.:/usr/lib/php:/usr/local/lib/php" 






magento-1.9 varien-autoload






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Oct 28 '16 at 14:53









Mohammad Anas SiddiqueiMohammad Anas Siddiquei

479




479













  • Did you find and replace your old base URL with the new base URL in you sql dumb of the database?

    – pontikos
    Oct 29 '16 at 0:11











  • No, I don't have any idea about that. Although I have solved the issue by reconstructing the whole site from scratch again. But I have saved that previous data and I would love to resolve its issue. Will Check what you pointed and will notify you soon. Could be of help to someone else.

    – Mohammad Anas Siddiquei
    Oct 29 '16 at 18:28



















  • Did you find and replace your old base URL with the new base URL in you sql dumb of the database?

    – pontikos
    Oct 29 '16 at 0:11











  • No, I don't have any idea about that. Although I have solved the issue by reconstructing the whole site from scratch again. But I have saved that previous data and I would love to resolve its issue. Will Check what you pointed and will notify you soon. Could be of help to someone else.

    – Mohammad Anas Siddiquei
    Oct 29 '16 at 18:28

















Did you find and replace your old base URL with the new base URL in you sql dumb of the database?

– pontikos
Oct 29 '16 at 0:11





Did you find and replace your old base URL with the new base URL in you sql dumb of the database?

– pontikos
Oct 29 '16 at 0:11













No, I don't have any idea about that. Although I have solved the issue by reconstructing the whole site from scratch again. But I have saved that previous data and I would love to resolve its issue. Will Check what you pointed and will notify you soon. Could be of help to someone else.

– Mohammad Anas Siddiquei
Oct 29 '16 at 18:28





No, I don't have any idea about that. Although I have solved the issue by reconstructing the whole site from scratch again. But I have saved that previous data and I would love to resolve its issue. Will Check what you pointed and will notify you soon. Could be of help to someone else.

– Mohammad Anas Siddiquei
Oct 29 '16 at 18:28










2 Answers
2






active

oldest

votes


















1














Let's say I have a Magento site on a development server and I installed and access it through



myserver.com/projects/project-a


then I want to move it to productions.



1st. I would zip or download all files (don't miss the .htaccess).



2nd. I would take an SQL dump from phpmyadmin (remember to disable foreign key checks)



3rd. I have to open my backup.sql dump with a text editor. (I use notepad++ for small files or vim from Linux command line for large ones).
Now let us say my production domain is myawesomesite.com.
I have to find in the editor



myserver.com/projects/project-a


and replace it with



myawesomesite.com


don't include in your search and replace any http:// and remember to include www. if this is your preferred domain.



4th. Import the dump to a fresh database



5th copy/unzip the files to production/



6th Go app/etc/local.xml and edit the database connection settings.



Feel free to ask or search for any further questions.






share|improve this answer


























  • Currently I am busy in configuring and giving final touch to this website which caused the above error. It's live now. Once I get over this, I will surely follow these steps and will let you know about the results. Thanks a lot buddy!

    – Mohammad Anas Siddiquei
    Oct 29 '16 at 18:48



















0














This error happens when one enables the magento's compiler. For example, you are moving your site from link1.com to link2.com. The file location on the server of link1.com is public_html/link1/... and file locations for link2.com is public_html/link2/...
So when you compiler is enable, your Magento setup will be looking for the absolute path stored in your magento rather rather looking for the path using the BaseUrl.
You can check if compiler is enable or disable in the includes/config.php file in root directory. if everything is commented then compiler is disable otherwise it's enabled.



So, in this case you want to disable the compiler using one of the following method.



Choose one of the following Solutions




  1. run command "php -f shell/compiler.php disable" in your Magento install root folder.

  2. manually comment every line in Magento_root_directory/includes/config.php file.


Let me know if you need more help.





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%2f143193%2fvarien-autoload-not-found-in-mage-php-on-line-54%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    Let's say I have a Magento site on a development server and I installed and access it through



    myserver.com/projects/project-a


    then I want to move it to productions.



    1st. I would zip or download all files (don't miss the .htaccess).



    2nd. I would take an SQL dump from phpmyadmin (remember to disable foreign key checks)



    3rd. I have to open my backup.sql dump with a text editor. (I use notepad++ for small files or vim from Linux command line for large ones).
    Now let us say my production domain is myawesomesite.com.
    I have to find in the editor



    myserver.com/projects/project-a


    and replace it with



    myawesomesite.com


    don't include in your search and replace any http:// and remember to include www. if this is your preferred domain.



    4th. Import the dump to a fresh database



    5th copy/unzip the files to production/



    6th Go app/etc/local.xml and edit the database connection settings.



    Feel free to ask or search for any further questions.






    share|improve this answer


























    • Currently I am busy in configuring and giving final touch to this website which caused the above error. It's live now. Once I get over this, I will surely follow these steps and will let you know about the results. Thanks a lot buddy!

      – Mohammad Anas Siddiquei
      Oct 29 '16 at 18:48
















    1














    Let's say I have a Magento site on a development server and I installed and access it through



    myserver.com/projects/project-a


    then I want to move it to productions.



    1st. I would zip or download all files (don't miss the .htaccess).



    2nd. I would take an SQL dump from phpmyadmin (remember to disable foreign key checks)



    3rd. I have to open my backup.sql dump with a text editor. (I use notepad++ for small files or vim from Linux command line for large ones).
    Now let us say my production domain is myawesomesite.com.
    I have to find in the editor



    myserver.com/projects/project-a


    and replace it with



    myawesomesite.com


    don't include in your search and replace any http:// and remember to include www. if this is your preferred domain.



    4th. Import the dump to a fresh database



    5th copy/unzip the files to production/



    6th Go app/etc/local.xml and edit the database connection settings.



    Feel free to ask or search for any further questions.






    share|improve this answer


























    • Currently I am busy in configuring and giving final touch to this website which caused the above error. It's live now. Once I get over this, I will surely follow these steps and will let you know about the results. Thanks a lot buddy!

      – Mohammad Anas Siddiquei
      Oct 29 '16 at 18:48














    1












    1








    1







    Let's say I have a Magento site on a development server and I installed and access it through



    myserver.com/projects/project-a


    then I want to move it to productions.



    1st. I would zip or download all files (don't miss the .htaccess).



    2nd. I would take an SQL dump from phpmyadmin (remember to disable foreign key checks)



    3rd. I have to open my backup.sql dump with a text editor. (I use notepad++ for small files or vim from Linux command line for large ones).
    Now let us say my production domain is myawesomesite.com.
    I have to find in the editor



    myserver.com/projects/project-a


    and replace it with



    myawesomesite.com


    don't include in your search and replace any http:// and remember to include www. if this is your preferred domain.



    4th. Import the dump to a fresh database



    5th copy/unzip the files to production/



    6th Go app/etc/local.xml and edit the database connection settings.



    Feel free to ask or search for any further questions.






    share|improve this answer















    Let's say I have a Magento site on a development server and I installed and access it through



    myserver.com/projects/project-a


    then I want to move it to productions.



    1st. I would zip or download all files (don't miss the .htaccess).



    2nd. I would take an SQL dump from phpmyadmin (remember to disable foreign key checks)



    3rd. I have to open my backup.sql dump with a text editor. (I use notepad++ for small files or vim from Linux command line for large ones).
    Now let us say my production domain is myawesomesite.com.
    I have to find in the editor



    myserver.com/projects/project-a


    and replace it with



    myawesomesite.com


    don't include in your search and replace any http:// and remember to include www. if this is your preferred domain.



    4th. Import the dump to a fresh database



    5th copy/unzip the files to production/



    6th Go app/etc/local.xml and edit the database connection settings.



    Feel free to ask or search for any further questions.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Mar 9 '18 at 7:26









    Mohit Kumar Arora

    6,35841532




    6,35841532










    answered Oct 29 '16 at 18:36









    pontikospontikos

    1243




    1243













    • Currently I am busy in configuring and giving final touch to this website which caused the above error. It's live now. Once I get over this, I will surely follow these steps and will let you know about the results. Thanks a lot buddy!

      – Mohammad Anas Siddiquei
      Oct 29 '16 at 18:48



















    • Currently I am busy in configuring and giving final touch to this website which caused the above error. It's live now. Once I get over this, I will surely follow these steps and will let you know about the results. Thanks a lot buddy!

      – Mohammad Anas Siddiquei
      Oct 29 '16 at 18:48

















    Currently I am busy in configuring and giving final touch to this website which caused the above error. It's live now. Once I get over this, I will surely follow these steps and will let you know about the results. Thanks a lot buddy!

    – Mohammad Anas Siddiquei
    Oct 29 '16 at 18:48





    Currently I am busy in configuring and giving final touch to this website which caused the above error. It's live now. Once I get over this, I will surely follow these steps and will let you know about the results. Thanks a lot buddy!

    – Mohammad Anas Siddiquei
    Oct 29 '16 at 18:48













    0














    This error happens when one enables the magento's compiler. For example, you are moving your site from link1.com to link2.com. The file location on the server of link1.com is public_html/link1/... and file locations for link2.com is public_html/link2/...
    So when you compiler is enable, your Magento setup will be looking for the absolute path stored in your magento rather rather looking for the path using the BaseUrl.
    You can check if compiler is enable or disable in the includes/config.php file in root directory. if everything is commented then compiler is disable otherwise it's enabled.



    So, in this case you want to disable the compiler using one of the following method.



    Choose one of the following Solutions




    1. run command "php -f shell/compiler.php disable" in your Magento install root folder.

    2. manually comment every line in Magento_root_directory/includes/config.php file.


    Let me know if you need more help.





    share




























      0














      This error happens when one enables the magento's compiler. For example, you are moving your site from link1.com to link2.com. The file location on the server of link1.com is public_html/link1/... and file locations for link2.com is public_html/link2/...
      So when you compiler is enable, your Magento setup will be looking for the absolute path stored in your magento rather rather looking for the path using the BaseUrl.
      You can check if compiler is enable or disable in the includes/config.php file in root directory. if everything is commented then compiler is disable otherwise it's enabled.



      So, in this case you want to disable the compiler using one of the following method.



      Choose one of the following Solutions




      1. run command "php -f shell/compiler.php disable" in your Magento install root folder.

      2. manually comment every line in Magento_root_directory/includes/config.php file.


      Let me know if you need more help.





      share


























        0












        0








        0







        This error happens when one enables the magento's compiler. For example, you are moving your site from link1.com to link2.com. The file location on the server of link1.com is public_html/link1/... and file locations for link2.com is public_html/link2/...
        So when you compiler is enable, your Magento setup will be looking for the absolute path stored in your magento rather rather looking for the path using the BaseUrl.
        You can check if compiler is enable or disable in the includes/config.php file in root directory. if everything is commented then compiler is disable otherwise it's enabled.



        So, in this case you want to disable the compiler using one of the following method.



        Choose one of the following Solutions




        1. run command "php -f shell/compiler.php disable" in your Magento install root folder.

        2. manually comment every line in Magento_root_directory/includes/config.php file.


        Let me know if you need more help.





        share













        This error happens when one enables the magento's compiler. For example, you are moving your site from link1.com to link2.com. The file location on the server of link1.com is public_html/link1/... and file locations for link2.com is public_html/link2/...
        So when you compiler is enable, your Magento setup will be looking for the absolute path stored in your magento rather rather looking for the path using the BaseUrl.
        You can check if compiler is enable or disable in the includes/config.php file in root directory. if everything is commented then compiler is disable otherwise it's enabled.



        So, in this case you want to disable the compiler using one of the following method.



        Choose one of the following Solutions




        1. run command "php -f shell/compiler.php disable" in your Magento install root folder.

        2. manually comment every line in Magento_root_directory/includes/config.php file.


        Let me know if you need more help.






        share











        share


        share










        answered 3 mins ago









        sohaibsohaib

        286




        286






























            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%2f143193%2fvarien-autoload-not-found-in-mage-php-on-line-54%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