Skip to content
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

XML Validation Error on Route Configuration #27

Closed
vbuck opened this issue Dec 17, 2019 · 2 comments
Closed

XML Validation Error on Route Configuration #27

vbuck opened this issue Dec 17, 2019 · 2 comments

Comments

@vbuck
Copy link
Contributor

vbuck commented Dec 17, 2019

In developer mode, XML validation fails on etc/frontend/routes.xml because it contains an empty body:

1 exception(s):
Exception #0 (Magento\Framework\Exception\LocalizedException): The XML in file "/vagrant/magento/vendor/bitpay/module-bpcheckout/etc/frontend/routes.xml" is invalid:
Element 'config': Missing child element(s). Expected is ( router ).
Line: 2

Verify the XML and try again.

Steps to Reproduce

  1. Install the module
  2. Enable developer mode
  3. Ensure config cache has been flushed
  4. Attempt to navigate to the frontend
  5. Observe exception

Because there are no actual controllers used on the frontend, this configuration file and be removed, and that will resolve the error.

@vbuck
Copy link
Contributor Author

vbuck commented Dec 17, 2019

I forked and created a proposal PR to solve for this issue:
#28

thejoshualewis added a commit that referenced this issue Dec 17, 2019
@thejoshualewis
Copy link
Contributor

Thanks, merged and will be submitting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants