5

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.

Daniel
  • 716
  • 3
  • 13
  • 27

2 Answers2

6

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.

Ivan Yaremchuk
  • 518
  • 6
  • 8
  • 3
    Clearing Cache didn't solve the issue, then I tried this code. Still nothing shows only I see it white screen on /admin url – Tahir Yasin Apr 26 '15 at 10:32
3

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

Did you tried to clear Magento cache?

arekstasiewicz
  • 383
  • 2
  • 11
  • 24
  • I deleted all sub directories of the /var/cache directory and it fixed the white screen. Thanks for your reply. – Daniel Oct 07 '13 at 10:54