PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, February 14, 2022

[FIXED] php.ini display_errors = Off but still showing errors

 February 14, 2022     .htaccess, mamp, php     No comments   

Issue

I want to disable all php-warnings, errors, notices, etc. so ajax-requests don´t fail when there is an error in a script (in dev-mode).

In php.ini I´ve set display_errors = Off, and in phpinfo() display_errors shows as off (both local & global). But in my scripts I still get error-warnings. I already checked .htaccess but can´t figure out why error´s still get shown. Any help or hint?

I´m running PHP 5.6.1 using MAMP on a Mac 10.10 if that helps.

P.S: I don´t want to turn off error_reporting because I still want to get the errors in my log


Solution

There could be a call to change that setting in one of the scripts you run. Most likley the case. Also check if a htaccess file alters any settings which could also be the case.



Answered By - inquam
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home
View mobile version

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing