apache2 - Why is error_reporting being ignored in php.ini?Get the solution ↓↓↓
I have set
error_reporting = none in
sudo service apache2 restart yet when I tail
/var/log/apache2/error.log I still get stuff like
PHP Notice:xxxxxxxxxxxxxshowing up.
Why is this?
You should assign
0 rather than
none to the
error_reporting parameter in your php.ini:
error_reporting parameter value is an integer bitmask where each bit represents different error level.
0 means all error levels are off, including notice.
You can also override default error_reporting value in your individual PHP script by using the following statement:
This will turn all error reporting off for the current script's execution only.
People are also looking for solutions of the problem: method illuminate\database\eloquent\collection::paginate does not exist.
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.