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

                    Grendel Contents Story Scholarship Depictions Notes References Navigation menu10.1093/notesj/gjn112Berserkeree

                    Log in Navigation menu

                    Invalid response line returned from server: HTTP/2 401 | ErrorPlease Please Help With Error 500 Internal Server Error after upgrading from 1.7 to 1.9Unable to place new customer orders in admin backendMagento - For “Manage Categories” Forbidden You do not have permission to access this documentHTTP ERROR 500 when using require(_once) app/Mage.phpMemcached causing Web Setup Wizard ErrorCould not create an acl object: Invalid XMLAn error occurred on the server. Please try to place the order againInvalid response line returned from server: HTTP/2 200 - message after update to 2.1.7Magento-CE 2.3.0 installation error on XamppMagento 2.2.6- After Migration all default Payment Methods are not working fine