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



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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.