Magento white screen on Admin log in page?

谁说我不能喝 提交于 2020-01-01 10:27:45

问题


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.


回答1:


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

Did you tried to clear Magento cache?




回答2:


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.



来源:https://stackoverflow.com/questions/19222103/magento-white-screen-on-admin-log-in-page

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!