Magento white screen on Admin log in page?

2019-04-09 00:12发布

I was trying to get Magento to load the core files from the adminHtml of the theme I'm using instead of the default core location and added the following code to my extension:

<stores>
<admin>
<!-- default admin design package and theme -->
    <design>
        <package>
            <name>fortis</name>
        </package>
        <theme>
            <default>default</default>
        </theme>
    </design>
</admin>

Now all I get is a white screen when I go to webshop/admin. I can't even log in anymore. When I remove the code from my extensions config file and even if I disable the extension all I get is a white screen.

Anyone know how to fix this?

Thanks.

2条回答
时光不老,我们不散
2楼-- · 2019-04-09 00:59

First of all please take a look at the Magento log ( /var/log/exception.log ).

Did you tried to clear Magento cache?

查看更多
看我几分像从前
3楼-- · 2019-04-09 01:14

I faced with the same problem. Actually it was even worse because it was a commercial product and a new hosting for me with really strange server configuration. So I couldn't made errors appear in any log file.

As I've found out the magento white screen means some PHP Fatal error occured. So there is a proper way to show them. Just add at the begin of your index.php

ini_set('error_reporting', E_ERROR);
register_shutdown_function("fatal_handler");
function fatal_handler() {
    $error = error_get_last();
    echo("<pre>");
    print_r($error);
}

And you will see what is really happening with your magento.

查看更多
登录 后发表回答