One of the first things to do on a fresh Magento development host is to switch on the developer mode.
The reason is, that by default Magento will try to hide all error messages, unless the developer mode is enabled.
How to enable the Developer Mode
There are several ways to accomplish this. The first two options can only be considered quick hacks because they are not upgrade safe. The third option is the right way to do it.
Option 1
In the Magento root directory you will see a file called .htaccess
Put the following code at the top or bottom of that file.
SetEnv MAGE_IS_DEVELOPER_MODE 1
The reload the backend page and hopefully you will see an error message.
Warning: The .htaccess file is part of the Magento core and it will be overwritten during upgrades. Also do not deploy it to a live server with that setting in place.
Option 2
Open the file index.php in the Magento root directory.
Around line 66 you will see the following code:
if (isset($_SERVER['MAGE_IS_DEVELOPER_MODE'])) {
Mage::setIsDeveloperMode(true);
}
Change that so the developer mode is enabled regardless of the MAGE_IS_DEVELOPER_MODE setting.
if (true || isset($_SERVER['MAGE_IS_DEVELOPER_MODE'])) {
Mage::setIsDeveloperMode(true);
}
Warning: The index.php file is also part of the Magento core and it will be overwritten during upgrades, just like the .htaccess file. Also do not deploy it to a live server with that setting in place.
Option 3
The right way to enable the developer mode is to place the setting in the apache configuration, e.g. the vhost declaration. I don't know where MAMP Pro keeps them, but for a regular apache on OS X I use the /etc/apache2/extra/httpd-vhosts.conf to configure my development hosts. Here is a sample entry:
<VirtualHost *:80>
DocumentRoot "/path/to/my/workspace/magento.dev/htdocs"
ServerName magento.dev
SetEnv MAGE_IS_DEVELOPER_MODE 1
ErrorLog "/private/var/log/apache2/magento-error_log"
CustomLog "/private/var/log/apache2/magento-access_log" common
</VirtualHost>
The benefit of doing it this way is that you can deploy all files unchanged from the development server to the staging server, and from the staging server to the live server.
Further debugging
Once the developer mode is enabled you will hopefully see an error message instead of just a grey screen.
If that doesn't help (still no message), check the Magento log files. They are inside the Magento root directory in the subfolder
- var/log/exception.log
- var/log/system.log
Check them for any error messages like "Invalid block class", or "invalid template...".
Still no luck?
Check the Apache or PHP error logs. They are outside of the Magento installation, and the location depends on the system configuration. Maybe PHP error logging still needs to be enabled. Check with MAMP Pro how to do that with that bundle.
The PHP setting in question is log_errors.
Speaking of PHP settings... You will also want to make sure that display_errors is set to On. Otherwise the most hardcore errors (e.g. syntax error that abort compilation) won't be visible, regardless of the developer mode.
RewriteBase /magento/- seanbreedenOrder deny,allow Deny from allin it. It didn't show up in Finder. That is why I couldn't see it before. I still pasted your code in there and still had the same problem. - bassplayer7