Mamp Php Error Reporting
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers mamp display php errors or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x mamp php error log location Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only mamp error log takes a minute: Sign up Why MAMP doesn't display errors? up vote 21 down vote favorite 9 OK this is getting very frustrating. MAMP used to display errors but then stopped. I decided to do a fresh install of it mamp pro as I couldn't figure it out. I check my PHP version, running 5.4.4 and go to that folder and change the php.ini to this: error_reporting = E_ALL display_errors = On Still no errors showing. I go through all the folders and change all php.ini files, just in case. Nothing. I fix the forced error and dump out phpinfo(), check the error section and display_errors is Off. What the hell. I place error_reporting(E_ALL); ini_set('display_errors', 'on'); at the start of the PHP
Call To Undefined Function Mysql_connect()
file and phpinfo() again. Local value is now On, master is still Off. Force a PHP error, and still get Server Error not PHP error. Anybody have any insight? I have a bug somewhere in some code and cannot find it, would love for PHP to just tell me. php error-handling mamp share|improve this question edited Feb 28 '15 at 15:31 kenorb 21.9k8154127 asked Jan 29 '13 at 11:06 Alex McCabe 4741618 add a comment| 7 Answers 7 active oldest votes up vote 43 down vote accepted MAMP sets up a few different php.ini files for the server, the client etc. Check in your phpinfo() which php.ini actually is read. Looks like you're editing the wrong one. share|improve this answer answered Jan 29 '13 at 11:38 pduersteler 7,65143875 2 Thank you, I had no idea. MAMP was reading from /MAMP/bin/php/5.4.4, I was editing /MAMP/conf/php/5.4.4. What a pain! –Alex McCabe Jan 29 '13 at 11:45 That also bugged me a month ago or so... ;-) –pduersteler Jan 29 '13 at 13:18 1 and don't forget to restart apache server after changes. :) –Edu Ruiz Jan 22 '15 at 23:22 add a comment| up vote 9 down vote If you're using MAMP PRO, you've to enable Error handling (PHP) in the UI interface which should contain at least two the main options: 'Display startup errors' and set output 'To: Display'. Display startup errors option is equivalent to display_startup_errors
due to the http://stackoverflow.com/questions/14581460/why-mamp-doesnt-display-errors fact that, for some reason, PHP error reporting is turned off by default in MAMP. To enable error reporting: 1. Open up https://gilbert.pellegrom.me/enable-php-error-reporting-in-mamp /Applications/MAMP/bin/php/{your PHP version}/conf/php.ini. 2. Find display_errors = Off (around line 277) and change it to display_errors = On. 3. Restart MAMP. Voila! You should now see PHP errors. Build the Web is a weekly email roundup of the best tips, links and resources for web developers and people who love to build stuff on the web. Curated by me. Subscribe © Gilbert Pellegrom / @gilbitron
Επιλέξτε τη γλώσσα σας. Κλείσιμο Μάθετε περισσότερα View this message in English Το YouTube εμφανίζεται στα Ελληνικά. Μπορείτε https://www.youtube.com/watch?v=lY165def6Jk να αλλάξετε αυτή την προτίμηση παρακάτω. Learn more You're viewing YouTube in Greek. You can change this preference below. Κλείσιμο Ναι, θέλω να τη κρατήσω Αναίρεση Κλείσιμο Αυτό το βίντεο δεν είναι php error διαθέσιμο. Ουρά παρακολούθησηςΟυράΟυρά παρακολούθησηςΟυρά Κατάργηση όλωνΑποσύνδεση Φόρτωση... Ουρά παρακολούθησης Ουρά __count__/__total__ PHP Errors in MAMP basementjack2 ΕγγραφήΕγγραφήκατεΚατάργηση εγγραφής3030 Φόρτωση... Φόρτωση... Σε λειτουργία... Προσθήκη σε... Θέλετε να το δείτε ξανά αργότερα; Συνδεθείτε για mamp php error να προσθέσετε το βίντεο σε playlist. Σύνδεση Κοινή χρήση Περισσότερα Αναφορά Θέλετε να αναφέρετε το βίντεο; Συνδεθείτε για να αναφέρετε ακατάλληλο περιεχόμενο. Σύνδεση Μεταγραφή Στατιστικά στοιχεία 1.567 προβολές 20 Σας αρέσει αυτό το βίντεο; Συνδεθείτε για να μετρήσει η άποψή σας. Σύνδεση 21 1 Δεν σας αρέσει αυτό το βίντεο; Συνδεθείτε για να μετρήσει η άποψή σας. Σύνδεση 2 Φόρτωση... Φόρτωση... Μεταγραφή Δεν ήταν δυνατή η φόρτωση της διαδραστικής μεταγραφής. Φόρτωση... Φόρτωση... Η δυνατότητα αξιολόγησης είναι διαθέσιμη όταν το βίντεο είναι ενοικιασμένο. Αυτή η λειτουργία δεν είναι διαθέσιμη αυτήν τη στιγμή. Δοκιμάστε ξανά αργ