Score:1

Set phpmyadmin to never ask about deprecation warnings on ubuntu

jp flag

I am getting annoyed by error reports about deprecated in phpmyadmin on php8

According to https://docs.phpmyadmin.net/en/latest/config.html

All configurable data is placed in config.inc.php in phpMyAdmin’s toplevel directory.

I have tried to create the file /usr/share/phpmyadmin/config.inc.php with this

<?php
$cfg['SendErrorReports'] = 'never';

But it doesn't seem to be loaded

The default setting is in:

/usr/share/phpmyadmin/libraries/config.default.php

If I change it in there it works but I guess the file will be overwritten with next upgrade.

Is there a better or correct way to set the config?

Jeff avatar
mx flag
This could help: https://askubuntu.com/questions/796135/deprecation-notice-error-in-phpmyadmin-with-16-04
Jeff avatar
mx flag
This could also turn off deprecation warnings: `error_reporting(E_ALL ^ E_DEPRECATED);` I think you need to add to your PHP code. https://www.codegrepper.com/code-examples/php/php+disable+deprecation+warnings
pHoutved avatar
jp flag
@Jeff i don't want to turn of for other projects which i develop
Jeff avatar
mx flag
That makes sense. In that case, don't do what I suggest...
Score:0
jp flag

The settings can be set in the phpmyadmin gui at http://localhost/phpmyadmin/prefs_forms.php?form=Features

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.