Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove PHP errors from CLI and PHPMyAdmin

Tags:

linux

php

ubuntu

I'm currently getting the following errors when using PHP via command line and on PHPMyAdmin.

Command line error

PHPMyAdmin error

What's the easiest way to disable these errors? The command line errors don't make sense because all them work correctly.

When I navigate to the directory where it's saying it doesn't exist, it's .so version of them not .dll.

Tried disabling them in php.ini but didn't do anything.

like image 725
zcoyne Avatar asked Sep 27 '26 00:09

zcoyne


1 Answers

The accepted solution is wrong. It will turn off all error reporting in PHP and that's not intended?

The best way to turn off Phpmyadmin errors is to go go config.inc.php and set (or comment out ie removing the // lines in front of the value, which is set to "ask" by default.)

$cfg['SendErrorReports'] = 'never';

Hit save and that's it.

More info https://docs.phpmyadmin.net/en/latest/config.html#cfg_SendErrorReports

like image 188
Rbbn Avatar answered Sep 29 '26 16:09

Rbbn