Magento 2.1: setup:di:compile error Constant MASK_FOR_HIDDEN_FIELDS already defined“Invalid Factory for nonexistent class” (setup:di:compile error)Magento2 - Command-Line - Sending Email Using Block Templates - Error: Missing required argument $debugHintsPathMagento 2 error - Model/View/Page/Config/RendererFactory.php on line 64Magento 2: Can't install or uninstall plugins in magento 2Magento 2.2.4 place order exception error “Undefined index: product_id Issue”Magento 2 : Plugin autoload errorXML declaration allowed only at the start of the documentMagento 2.3 error after cache flush or cleanNotice: Undefined property:Magento 2 integrations can't activate, Error

Does the length of a password for Wi-Fi affect speed?

polynomial, find the sum of the inverse roots of this equation.

French equivalent of "Make leaps and bounds"

Does this smartphone photo show Mars just below the Sun?

Whats the name of this projection?

What was the first multiprocessor x86 motherboard?

Was there ever a difference between 'volo' and 'volo'?

Why can I log in to my Facebook account with a misspelled email/password?

What are these mathematical groups in U.S. universities?

What does VB stand for?

Is it true that control+alt+delete only became a thing because IBM would not build Bill Gates a computer with a task manager button?

Purchased new computer from DELL with pre-installed Ubuntu. Won't boot. Should assume its an error from DELL?

Why does the ultra long-end of a yield curve invert?

Is Odin inconsistent about the powers of Mjolnir?

Should I self-publish my novella on Amazon or try my luck getting publishers?

Can ads on a page read my password?

Independent table row spacing

In Pokémon Go, why does one of my Pikachu have an option to evolve, but another one doesn't?

Does the Voyager team use a wrapper (Fortran(77?) to Python) to transmit current commands?

Is multiplication of real numbers uniquely defined as being distributive over addition?

Double blind peer review when paper cites author's GitHub repo for code

Would the Elder Wand have been able to destroy a Horcrux?

Premier League simulation

Ampacity of Conductive Tape



Magento 2.1: setup:di:compile error Constant MASK_FOR_HIDDEN_FIELDS already defined


“Invalid Factory for nonexistent class” (setup:di:compile error)Magento2 - Command-Line - Sending Email Using Block Templates - Error: Missing required argument $debugHintsPathMagento 2 error - Model/View/Page/Config/RendererFactory.php on line 64Magento 2: Can't install or uninstall plugins in magento 2Magento 2.2.4 place order exception error “Undefined index: product_id Issue”Magento 2 : Plugin autoload errorXML declaration allowed only at the start of the documentMagento 2.3 error after cache flush or cleanNotice: Undefined property:Magento 2 integrations can't activate, Error






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








0















When we run the setup:di:compile command we are seeing the following error. I would like to know what is going on here before I contact the extension developer.



I have searched for MASK_FOR_HIDDEN in all files and it only exists in the file in the below error and also in one other file. Is this the problem? Do they need to be unique in both files?




[Exception] Notice: Constant MASK_FOR_HIDDEN_FIELDS already defined
in /public_html/app/code/Magenest/SagePay/lib/classes/SagepayUtil.php on line 4




Thanks










share|improve this question
































    0















    When we run the setup:di:compile command we are seeing the following error. I would like to know what is going on here before I contact the extension developer.



    I have searched for MASK_FOR_HIDDEN in all files and it only exists in the file in the below error and also in one other file. Is this the problem? Do they need to be unique in both files?




    [Exception] Notice: Constant MASK_FOR_HIDDEN_FIELDS already defined
    in /public_html/app/code/Magenest/SagePay/lib/classes/SagepayUtil.php on line 4




    Thanks










    share|improve this question




























      0












      0








      0








      When we run the setup:di:compile command we are seeing the following error. I would like to know what is going on here before I contact the extension developer.



      I have searched for MASK_FOR_HIDDEN in all files and it only exists in the file in the below error and also in one other file. Is this the problem? Do they need to be unique in both files?




      [Exception] Notice: Constant MASK_FOR_HIDDEN_FIELDS already defined
      in /public_html/app/code/Magenest/SagePay/lib/classes/SagepayUtil.php on line 4




      Thanks










      share|improve this question
















      When we run the setup:di:compile command we are seeing the following error. I would like to know what is going on here before I contact the extension developer.



      I have searched for MASK_FOR_HIDDEN in all files and it only exists in the file in the below error and also in one other file. Is this the problem? Do they need to be unique in both files?




      [Exception] Notice: Constant MASK_FOR_HIDDEN_FIELDS already defined
      in /public_html/app/code/Magenest/SagePay/lib/classes/SagepayUtil.php on line 4




      Thanks







      magento2






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jul 29 at 11:33







      Richard Laws

















      asked Jul 29 at 8:39









      Richard LawsRichard Laws

      7811 bronze badges




      7811 bronze badges























          1 Answer
          1






          active

          oldest

          votes


















          0














          Both files were conflicting - either remove one of the files if it is a duplication or make sure constants are unique if in the same library.






          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%2f283616%2fmagento-2-1-setupdicompile-error-constant-mask-for-hidden-fields-already-defi%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














            Both files were conflicting - either remove one of the files if it is a duplication or make sure constants are unique if in the same library.






            share|improve this answer































              0














              Both files were conflicting - either remove one of the files if it is a duplication or make sure constants are unique if in the same library.






              share|improve this answer





























                0












                0








                0







                Both files were conflicting - either remove one of the files if it is a duplication or make sure constants are unique if in the same library.






                share|improve this answer















                Both files were conflicting - either remove one of the files if it is a duplication or make sure constants are unique if in the same library.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Jul 30 at 10:34









                Teja Bhagavan Kollepara

                3,0504 gold badges21 silver badges51 bronze badges




                3,0504 gold badges21 silver badges51 bronze badges










                answered Jul 30 at 10:17









                Richard LawsRichard Laws

                7811 bronze badges




                7811 bronze badges






























                    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%2f283616%2fmagento-2-1-setupdicompile-error-constant-mask-for-hidden-fields-already-defi%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?