-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Description
From what I can tell, the correct way to customise the default maintenance page is by adding a pub/errors/local.xml file & creating a new skin. It looks like there is a bug in this process.
In the _setSkin
method in pub/errors/processor.php
it first checks if the directory exists before setting the config to use the custom skin:
is_dir($this->_indexDir . self::ERROR_DIR . '/' . $value)
The problem lies in the variables setting up the path:
echo $this->_indexDir; // /var/www/src/pub/
echo self::ERROR_DIR; // pub/errors
Ending up with an incorrect path of:
/var/www/src/pub/pub/errors/custom_skin_name
It looks like either $this->_indexDir
should be set to the Magento root (rather than the pub directory), or the ERROR_DIR
const should not be prefixed with the pub dir.