Skip to content

Error page/maintenance page skin customisation is not currently possible #4305

@danny-balance

Description

@danny-balance

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue: Format is not validGate 1 Failed. Automatic verification of issue format is failedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentbug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions