• i’m using MAMP and it’s always worked fine. I altered code that i knew might have been faulty and now i can’t access my local site or dashboard. it’s all a blank screen.
    i’m not sure how i can fix it if i can’t access the editor. any help is greatly appreciated!

Viewing 1 replies (of 1 total)
  • Hey there! I also use MAMP for development! MAMP comes with PHP errors off and WordPress comes with WP_DEBUG off, but when you’re in development, it’s a good idea to turn both of these on so you can see errors.

    To turn on PHP errors, you’ll need to edit your php.ini file, which is in Applications/MAMP/conf/php[version-you’re-using]/php.ini

    Around line 277 you should see “display_errors” …just edit that to equal “On” (without quotation marks), save it, and then (very important) restart the MAMP servers.

    To turn on WP_DEBUG, in your wp-config.php file at your WordPress root, edit
    define('WP_DEBUG', false);
    to be
    define('WP_DEBUG', true);

    (If that line doesn’t already exist, simply add it.)

    Hopefully with these things both turned on, you should get some useful error reporting that will tell you where stuff is going wrong! Let me know if it doesn’t work! ??

Viewing 1 replies (of 1 total)
  • The topic ‘broken code won't let me access local site’ is closed to new replies.