New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid system.xml file #79
Comments
Hi @jahicDario , which version of the module and of Magento 2 (2.0, 2.1; CE or EE) are you using? |
Hi @websharp |
Can you remove line 7 with the resource tag from the file, so it looks like this and try again:
|
When I remove line 7, Configuration page is opened but there is no Force Login tab. I also compare system.xml against vendor/magento/module-config/etc/system_file.xsd and it says that there is a problem with resource. |
I get no XML validation issues with or without removing the resource tag. I used multiple external XML validators and the in-built PHPStorm validation with the XSD resolution by using You may try this example
|
When I copy that in my system.xml, again page is loaded but there is no Force Login tab. |
Did you enable the module by running |
Yes I have. Module is enabled and I can even see under customer "Force custoimer login", but it's not clickable, probably because it has to be enabled under "Force login". |
Are you accessing the backend as a fully qualified administrator? Or are you using an administrative user with custom ACL settings? |
Yes, I'm accessing as first user, fully qualified administrator. I'm not sure what you mean by custom ACL settings? |
I don't know how and why, first time when I was installing module with composer I was getting some version mismatch error. Now I tried again and it worked. If I somehow reduce problem again, I will write here. |
#79 Fixed invalid position of tag resource in system.xml
I installed module, run all post-installation commands and when I login to admin page and try to go to Stores-Configurations I get this error:
1 exception(s): Exception #0 (Magento\Framework\Exception\LocalizedException): Invalid XML in file /.../app/code/bitExpert/ForceCustomerLogin/etc/adminhtml/system.xml: Element 'resource': This element is not expected. Line: 7
The text was updated successfully, but these errors were encountered: