Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: error_reporting() has been disabled for security reasons #15592

Closed
williamdes opened this issue Nov 24, 2019 · 2 comments
Closed

Warning: error_reporting() has been disabled for security reasons #15592

williamdes opened this issue Nov 24, 2019 · 2 comments
Assignees
Labels
Bug A problem or regression with an existing feature
Projects
Milestone

Comments

@williamdes
Copy link
Member

Config

php.ini

disable_functions = error_reporting

php fpm

php_admin_value[disable_functions] = error_reporting

logs

NOTICE: PHP message: PHP Warning:  error_reporting() has been disabled for security reasons in libraries/classes/ErrorHandler.php on line 164

screenshot

image

@williamdes williamdes added the Bug A problem or regression with an existing feature label Nov 24, 2019
@williamdes williamdes added this to the 4.9.3 milestone Nov 24, 2019
@williamdes williamdes self-assigned this Nov 24, 2019
@williamdes williamdes added this to Needs triage in issues via automation Nov 24, 2019
@williamdes williamdes moved this from Needs triage to Reproduced in issues Nov 24, 2019
williamdes added a commit that referenced this issue Nov 24, 2019
Signed-off-by: William Desportes <williamdes@wdes.fr>
@williamdes
Copy link
Member Author

Param Value
Error Type Warning
Error Message error_reporting() has been disabled for security reasons
Exception Type php
phpMyAdmin version 4.7.8
Incident count 104
Link Report#48524

This comment is posted automatically by phpMyAdmin's error-reporting-server.

williamdes added a commit to williamdes/phpmyadmintest that referenced this issue Nov 24, 2019
…error_reporting function

Signed-off-by: William Desportes <williamdes@wdes.fr>
williamdes added a commit to williamdes/phpmyadmintest that referenced this issue Nov 24, 2019
Signed-off-by: William Desportes <williamdes@wdes.fr>
issues automation moved this from Reproduced to Closed Nov 24, 2019
@LufoX11
Copy link

LufoX11 commented Jul 11, 2020

Hi @williamdes , I'm using version 4.9.5deb2 and I'm still seeing this error:

image

Your fixes are already present in ErrorHandler.php
I'm using PHP 7.4 + FPM, and my php.ini looks like this:

/etc/php/7.4/fpm/php.ini

; Only errors
error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR
...
disable_functions = error_reporting,pcntl_alarm,pcntl_fork,...

I need to keep this configuration for now until I solve migration issues. Any chance to fix this or a patch I can apply in the meanwhile? I'm using latest pma version from https://launchpad.net/~phpmyadmin/+archive/ubuntu/ppa

Thank you.

UPDATE: Uninstalling php-xdebug temporaly solves it, but I'd like to keep it.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A problem or regression with an existing feature
Projects
issues
  
Closed
Development

No branches or pull requests

2 participants