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

                    Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

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

                    Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form