Magento 2.2 update extension clear generated folderJS and CSS merged Issue in magento2Try to install magento migration tool failsCannot install module in Magento 2Why do i have to always run the commands to clean cache in Magento 2.1.8?Magneto2 CatalogSearchMagento 2: Magento UI is not working properly. After deleting all productsWhen using Magento 2 the admin panel buttons are un-responsiveElasticsearch setup:upgrade error: No handler for type [text] declared on field [search]Magento 2.2.7 Enterprise Edition Error in frontend | Invalid template file: '…/page/js/require_js.phtml' in module: '' block's name: 'require.js'Magento2 Getting error as variable @baseUrl is undefined in file /var/view_preprocessed

Understanding the reasoning of the woman who agreed with King Solomon to "cut the baby in half"

Who are the remaining King/Queenslayers?

Count All Possible Unique Combinations of Letters in a Word

Is a single radon-daughter atom in air a solid?

Find the C-factor of a vote

What did River say when she woke from her proto-comatose state?

Why is it recommended to mix yogurt starter with a small amount of milk before adding to the entire batch?

Do I have any obligations to my PhD supervisor's requests after I have graduated?

Can you find x?

How does a blind passenger not die, if driver becomes unconscious

Array initialization optimization

Does this Wild Magic result affect the sorcerer or just other creatures?

Should developer taking test phones home or put in office?

How many children?

How does DC work with natural 20?

Dystopia where people are regularly forced to move, protagonist must move daily

Would it be a copyright violation if I made a character’s full name refer to a song?

What can I do with a research project that is my university’s intellectual property?

Can any NP-Complete Problem be solved using at most polynomial space (but while using exponential time?)

Employer wants to use my work email account after I quit

Why don't countries like Japan just print more money?

What's currently blocking the construction of the wall between Mexico and the US?

.NET executes a SQL query and Active Monitor shows multiple rows blocking each other

How to model a twisted cylinder like this



Magento 2.2 update extension clear generated folder


JS and CSS merged Issue in magento2Try to install magento migration tool failsCannot install module in Magento 2Why do i have to always run the commands to clean cache in Magento 2.1.8?Magneto2 CatalogSearchMagento 2: Magento UI is not working properly. After deleting all productsWhen using Magento 2 the admin panel buttons are un-responsiveElasticsearch setup:upgrade error: No handler for type [text] declared on field [search]Magento 2.2.7 Enterprise Edition Error in frontend | Invalid template file: '…/page/js/require_js.phtml' in module: '' block's name: 'require.js'Magento2 Getting error as variable @baseUrl is undefined in file /var/view_preprocessed






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








0















Before magento 2.2 I emptied the var/generations folder during an upgrade of an extension or an update of magento from eg. 2.1.5 to 2.1.6



In 2.2 the var/generations folder is empty and replaced (I suppose) by the generated folder.



I always used this for upgrading (see below), but which commands to use in 2.2?



php bin/magento maintenance:enable



php bin/composer require myparcelnl/sdk "v1.3.0"
php bin/composer require myparcelnl/magento "2.3.0-beta.5"
php bin/composer update

rm -rf var/di/*;
rm -rf pub/static/*;
rm -rf var/generation/*;
rm -rf var/view_preprocessed/*;
php bin/magento cache:flush
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -j 1
php bin/magento setup:static-content:deploy nl_NL -j 1
php bin/magento indexer:reindex









share|improve this question
























  • Yes as suggested by you the generations folder is moved in root magento as generated folder. You need to remove generated/code and generated/meta folders before any upgradation.

    – Priyank
    Dec 1 '17 at 9:39












  • Before or after the composer update?

    – Jilco Tigchelaar
    Dec 1 '17 at 9:44











  • Priyank, are the commands in the answer correct then?

    – Jilco Tigchelaar
    Dec 1 '17 at 11:50











  • There are .htaccess files which are required when you are using apache webserver so make sure they are not removed.

    – Priyank
    Dec 1 '17 at 12:02

















0















Before magento 2.2 I emptied the var/generations folder during an upgrade of an extension or an update of magento from eg. 2.1.5 to 2.1.6



In 2.2 the var/generations folder is empty and replaced (I suppose) by the generated folder.



I always used this for upgrading (see below), but which commands to use in 2.2?



php bin/magento maintenance:enable



php bin/composer require myparcelnl/sdk "v1.3.0"
php bin/composer require myparcelnl/magento "2.3.0-beta.5"
php bin/composer update

rm -rf var/di/*;
rm -rf pub/static/*;
rm -rf var/generation/*;
rm -rf var/view_preprocessed/*;
php bin/magento cache:flush
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -j 1
php bin/magento setup:static-content:deploy nl_NL -j 1
php bin/magento indexer:reindex









share|improve this question
























  • Yes as suggested by you the generations folder is moved in root magento as generated folder. You need to remove generated/code and generated/meta folders before any upgradation.

    – Priyank
    Dec 1 '17 at 9:39












  • Before or after the composer update?

    – Jilco Tigchelaar
    Dec 1 '17 at 9:44











  • Priyank, are the commands in the answer correct then?

    – Jilco Tigchelaar
    Dec 1 '17 at 11:50











  • There are .htaccess files which are required when you are using apache webserver so make sure they are not removed.

    – Priyank
    Dec 1 '17 at 12:02













0












0








0








Before magento 2.2 I emptied the var/generations folder during an upgrade of an extension or an update of magento from eg. 2.1.5 to 2.1.6



In 2.2 the var/generations folder is empty and replaced (I suppose) by the generated folder.



I always used this for upgrading (see below), but which commands to use in 2.2?



php bin/magento maintenance:enable



php bin/composer require myparcelnl/sdk "v1.3.0"
php bin/composer require myparcelnl/magento "2.3.0-beta.5"
php bin/composer update

rm -rf var/di/*;
rm -rf pub/static/*;
rm -rf var/generation/*;
rm -rf var/view_preprocessed/*;
php bin/magento cache:flush
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -j 1
php bin/magento setup:static-content:deploy nl_NL -j 1
php bin/magento indexer:reindex









share|improve this question
















Before magento 2.2 I emptied the var/generations folder during an upgrade of an extension or an update of magento from eg. 2.1.5 to 2.1.6



In 2.2 the var/generations folder is empty and replaced (I suppose) by the generated folder.



I always used this for upgrading (see below), but which commands to use in 2.2?



php bin/magento maintenance:enable



php bin/composer require myparcelnl/sdk "v1.3.0"
php bin/composer require myparcelnl/magento "2.3.0-beta.5"
php bin/composer update

rm -rf var/di/*;
rm -rf pub/static/*;
rm -rf var/generation/*;
rm -rf var/view_preprocessed/*;
php bin/magento cache:flush
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -j 1
php bin/magento setup:static-content:deploy nl_NL -j 1
php bin/magento indexer:reindex






magento2 magento2.2






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 1 '17 at 11:48







Jilco Tigchelaar

















asked Dec 1 '17 at 9:00









Jilco TigchelaarJilco Tigchelaar

157313




157313












  • Yes as suggested by you the generations folder is moved in root magento as generated folder. You need to remove generated/code and generated/meta folders before any upgradation.

    – Priyank
    Dec 1 '17 at 9:39












  • Before or after the composer update?

    – Jilco Tigchelaar
    Dec 1 '17 at 9:44











  • Priyank, are the commands in the answer correct then?

    – Jilco Tigchelaar
    Dec 1 '17 at 11:50











  • There are .htaccess files which are required when you are using apache webserver so make sure they are not removed.

    – Priyank
    Dec 1 '17 at 12:02

















  • Yes as suggested by you the generations folder is moved in root magento as generated folder. You need to remove generated/code and generated/meta folders before any upgradation.

    – Priyank
    Dec 1 '17 at 9:39












  • Before or after the composer update?

    – Jilco Tigchelaar
    Dec 1 '17 at 9:44











  • Priyank, are the commands in the answer correct then?

    – Jilco Tigchelaar
    Dec 1 '17 at 11:50











  • There are .htaccess files which are required when you are using apache webserver so make sure they are not removed.

    – Priyank
    Dec 1 '17 at 12:02
















Yes as suggested by you the generations folder is moved in root magento as generated folder. You need to remove generated/code and generated/meta folders before any upgradation.

– Priyank
Dec 1 '17 at 9:39






Yes as suggested by you the generations folder is moved in root magento as generated folder. You need to remove generated/code and generated/meta folders before any upgradation.

– Priyank
Dec 1 '17 at 9:39














Before or after the composer update?

– Jilco Tigchelaar
Dec 1 '17 at 9:44





Before or after the composer update?

– Jilco Tigchelaar
Dec 1 '17 at 9:44













Priyank, are the commands in the answer correct then?

– Jilco Tigchelaar
Dec 1 '17 at 11:50





Priyank, are the commands in the answer correct then?

– Jilco Tigchelaar
Dec 1 '17 at 11:50













There are .htaccess files which are required when you are using apache webserver so make sure they are not removed.

– Priyank
Dec 1 '17 at 12:02





There are .htaccess files which are required when you are using apache webserver so make sure they are not removed.

– Priyank
Dec 1 '17 at 12:02










1 Answer
1






active

oldest

votes


















1














So the correct commands are then:



php bin/magento maintenance:enable

php bin/composer require myparcelnl/sdk "v1.3.0"
php bin/composer require myparcelnl/magento "2.3.0-beta.5"
php bin/composer update

rm -rf pub/static/*;
rm -rf var/view_preprocessed/*;
rm -rf generated/*;
php bin/magento cache:flush
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -j 1
php bin/magento setup:static-content:deploy nl_NL -j 1
php bin/magento indexer:reindex

php bin/magento maintenance:disable





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%2f204077%2fmagento-2-2-update-extension-clear-generated-folder%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









    1














    So the correct commands are then:



    php bin/magento maintenance:enable

    php bin/composer require myparcelnl/sdk "v1.3.0"
    php bin/composer require myparcelnl/magento "2.3.0-beta.5"
    php bin/composer update

    rm -rf pub/static/*;
    rm -rf var/view_preprocessed/*;
    rm -rf generated/*;
    php bin/magento cache:flush
    php bin/magento setup:upgrade
    php bin/magento setup:di:compile
    php bin/magento setup:static-content:deploy -j 1
    php bin/magento setup:static-content:deploy nl_NL -j 1
    php bin/magento indexer:reindex

    php bin/magento maintenance:disable





    share|improve this answer





























      1














      So the correct commands are then:



      php bin/magento maintenance:enable

      php bin/composer require myparcelnl/sdk "v1.3.0"
      php bin/composer require myparcelnl/magento "2.3.0-beta.5"
      php bin/composer update

      rm -rf pub/static/*;
      rm -rf var/view_preprocessed/*;
      rm -rf generated/*;
      php bin/magento cache:flush
      php bin/magento setup:upgrade
      php bin/magento setup:di:compile
      php bin/magento setup:static-content:deploy -j 1
      php bin/magento setup:static-content:deploy nl_NL -j 1
      php bin/magento indexer:reindex

      php bin/magento maintenance:disable





      share|improve this answer



























        1












        1








        1







        So the correct commands are then:



        php bin/magento maintenance:enable

        php bin/composer require myparcelnl/sdk "v1.3.0"
        php bin/composer require myparcelnl/magento "2.3.0-beta.5"
        php bin/composer update

        rm -rf pub/static/*;
        rm -rf var/view_preprocessed/*;
        rm -rf generated/*;
        php bin/magento cache:flush
        php bin/magento setup:upgrade
        php bin/magento setup:di:compile
        php bin/magento setup:static-content:deploy -j 1
        php bin/magento setup:static-content:deploy nl_NL -j 1
        php bin/magento indexer:reindex

        php bin/magento maintenance:disable





        share|improve this answer















        So the correct commands are then:



        php bin/magento maintenance:enable

        php bin/composer require myparcelnl/sdk "v1.3.0"
        php bin/composer require myparcelnl/magento "2.3.0-beta.5"
        php bin/composer update

        rm -rf pub/static/*;
        rm -rf var/view_preprocessed/*;
        rm -rf generated/*;
        php bin/magento cache:flush
        php bin/magento setup:upgrade
        php bin/magento setup:di:compile
        php bin/magento setup:static-content:deploy -j 1
        php bin/magento setup:static-content:deploy nl_NL -j 1
        php bin/magento indexer:reindex

        php bin/magento maintenance:disable






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jun 13 at 13:51









        MagePsycho

        3,32311946




        3,32311946










        answered Dec 1 '17 at 11:49









        Jilco TigchelaarJilco Tigchelaar

        157313




        157313



























            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%2f204077%2fmagento-2-2-update-extension-clear-generated-folder%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

            Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

            Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

            Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?