the error page processor does not work when the webroot is set to `www/pub` instead of `www`
Preconditions
- CE 2.1.0 in production or default mode
- webroot pointing to
www/pub
Steps to reproduce
- copy
www/pub/errors/defaulttowww/pub/errors/test - edit
www/pub/errors/design.xmland replacedefaultwithtest - edit text in
www/pub/errors/test/503.phtmlto read "hello world" - enable maintenance mode
- browse website
Expected result
- the resulting 503 page should say "hello world"
Actual result
- the resulting 503 page says the default "Service Temporarily Unavailable"
www/pub/errors/processor.php checks the wrong path in the _setSkin function. instead of checking .../www/pub/errors/test the path .../www/pub/pub/errors/test is checked, and this check obviously fails due to the doubled pub. _setSkin should use $this->root and change the path accordingly, just like getBaseUrl() in the same class already does. unfortunately, _setSkin is not the only function broken - _setReportUrl will also use an extra /pub/ in the url
also applies to 2.1.1
Still happening in CE 2.1.2, any ETA on this being fixed?
I can confirm, that we have the same issue on CE 2.1.2 (and still not fixed in 2.1.3). Please fix this issue asap. Thanks.
Suffering from the issue on 2.1.3. Deployment with /pub as a document root is the recommended configuration. Can the issue be prioritized higher?
This is a duplicate of #4305 in which a fix was pushed to develop 9 months ago. When can we expect this to be released?
issue is still present in 2.1.4
Issue is still present in 2.1.5.
@heldchen, thank you for reporting the issue, but we couldn't reproduce it. Could you please provide more details?
@KrystynaKabannyk sorry, I really don't know what more details I could provide that are not already mentioned in the issue:
- configure magento2 to use www/pub as webroot
- copy www/pub/errors/default to www/pub/errors/test
- edit www/pub/errors/design.xml and replace default with test
- edit text in www/pub/errors/test/503.phtml to read "hello world"
- enable maintenance mode
- browse website
Internal ticket was created - MAGETWO-69938 I'm closing this issue as #8026 has more detailed description.