As I am using the local hosting of MAMPbut " There has been a critical error on this website" this is error is coming. What should I do?
Asked
Active
Viewed 120 times
1 Answers
0
Diagnostic steps worth giving a shot, follow from top to bottom order;
- Is MAMP really running with Web server (and additionally the database server)?
- Do you see the default MAMP index/home screen?
- Put a simple HELLO WORLD HTML document to your project root and check if you can see it on browser
- Put a simple HELLO WORLD PHP script to your project root and check if you can see it on browser
- At this point, if everything above went well, it is definitely an issue with your actual PHP script, check the PHP error log file
- Put an INFO.PHP PHP script at your project root and check you have all the required extensions available for your PHP project
- Check if database connection is working (if required)
- At this point, I cannot imagine what else would go wrong, try PHP debugger (xDebug needs to be installed with MAMP and your PHP editor may need a configuration for this) with break points and step into each line of your PHP code with debugger.

Broken Arrow
- 576
- 3
- 12