Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 10/12/2021, à 16:55

eric LM

phpmyadmin - page blanche - PhpMyAdmin/MoTranslator/autoload.php

Bonjour à tous, j'ai mis à jour Ubuntu, de la version 18.04 à la version 20.04 Depuis, j'ai une page blanche pour phpmyadmin
Dans les logs d'erreurs, j'ai le message suivant :

[Fri Dec 10 15:29:27.113167 2021] [php7:warn] [pid 419342] [client 127.0.0.1:46304] PHP Warning:  require_once(PhpMyAdmin/MoTranslator/autoload.php): failed to open stream: No such file or directory in /usr/share/phpmyadmin/autoload.php on line 2
[Fri Dec 10 15:29:27.113217 2021] [php7:error] [pid 419342] [client 127.0.0.1:46304] PHP Fatal error:  require_once(): Failed opening required 'PhpMyAdmin/MoTranslator/autoload.php' (include_path=':/usr/share/kopano/php') in /usr/share/phpmyadmin/autoload.php on line 2

Pouvez-vous me dire ce que je dois faire ?
Pour info, j'ai tout d'abord reconfiguré phpmyadmin, (sans succès) puis j'ai purgé et réinstallé phpmyadmin (toujours sans succès)
Merci !
Éric LM

Hors ligne

#2 Le 10/12/2021, à 17:39

bruno

Re : phpmyadmin - page blanche - PhpMyAdmin/MoTranslator/autoload.php

Bonjour,

Il y apparemment une erreur sur la directive include _path (et ce n'est pas dû à la mise à jour) :

Failed opening required 'PhpMyAdmin/MoTranslator/autoload.php' (include_path=':/usr/share/kopano/php')

Il faut donner le retour de :

grep -R include_path /etc/php/

Hors ligne

#3 Le 10/12/2021, à 17:55

eric LM

Re : phpmyadmin - page blanche - PhpMyAdmin/MoTranslator/autoload.php

Merci. Voici la réponse :

/etc/php/7.2/cli/conf.d/20-mapi.ini:include_path="${include_path}:/usr/share/kopano/php"
/etc/php/7.2/cli/php.ini:;include_path = ".:/usr/share/php"
/etc/php/7.2/cli/php.ini:;include_path = ".;c:\php\includes"
/etc/php/7.2/cli/php.ini:; PHP's default setting for include_path is ".;/path/to/php/pear"
/etc/php/7.2/cli/php.ini:; Enables or disables file search in include_path optimization
/etc/php/7.2/apache2/conf.d/20-mapi.ini:include_path="${include_path}:/usr/share/kopano/php"
/etc/php/7.2/apache2/php.ini:;include_path = ".:/usr/share/php"
/etc/php/7.2/apache2/php.ini:;include_path = ".;c:\php\includes"
/etc/php/7.2/apache2/php.ini:; PHP's default setting for include_path is ".;/path/to/php/pear"
/etc/php/7.2/apache2/php.ini:; Enables or disables file search in include_path optimization
/etc/php/7.2/cgi/conf.d/20-mapi.ini:include_path="${include_path}:/usr/share/kopano/php"
/etc/php/7.2/cgi/php.ini:;include_path = ".:/usr/share/php"
/etc/php/7.2/cgi/php.ini:;include_path = ".;c:\php\includes"
/etc/php/7.2/cgi/php.ini:; PHP's default setting for include_path is ".;/path/to/php/pear"
/etc/php/7.2/cgi/php.ini:; Enables or disables file search in include_path optimization
/etc/php/7.2/mods-available/mapi.ini:include_path="${include_path}:/usr/share/kopano/php"
/etc/php/7.4/cli/php.ini:;include_path = ".:/usr/share/php"
/etc/php/7.4/cli/php.ini:;include_path = ".;c:\php\includes"
/etc/php/7.4/cli/php.ini:; PHP's default setting for include_path is ".;/path/to/php/pear"
/etc/php/7.4/cli/php.ini:; Enables or disables file search in include_path optimization
/etc/php/7.4/apache2/php.ini:;include_path = ".:/usr/share/php"
/etc/php/7.4/apache2/php.ini:;include_path = ".;c:\php\includes"
/etc/php/7.4/apache2/php.ini:; PHP's default setting for include_path is ".;/path/to/php/pear"
/etc/php/7.4/apache2/php.ini:; Enables or disables file search in include_path optimization
/etc/php/7.4/cgi/php.ini:;include_path = ".:/usr/share/php"
/etc/php/7.4/cgi/php.ini:;include_path = ".;c:\php\includes"
/etc/php/7.4/cgi/php.ini:; PHP's default setting for include_path is ".;/path/to/php/pear"
/etc/php/7.4/cgi/php.ini:; Enables or disables file search in include_path optimization
/etc/php/7.4/mods-available/mapi.ini:include_path="${include_path}:/usr/share/kopano/php"
/etc/php/8.0/cli/php.ini:;include_path = ".:/usr/share/php"
/etc/php/8.0/cli/php.ini:;include_path = ".;c:\php\includes"
/etc/php/8.0/cli/php.ini:; PHP's default setting for include_path is ".;/path/to/php/pear"
/etc/php/8.0/cli/php.ini:; Enables or disables file search in include_path optimization
/etc/php/8.0/apache2/php.ini:;include_path = ".:/usr/share/php"
/etc/php/8.0/apache2/php.ini:;include_path = ".;c:\php\includes"
/etc/php/8.0/apache2/php.ini:; PHP's default setting for include_path is ".;/path/to/php/pear"
/etc/php/8.0/apache2/php.ini:; Enables or disables file search in include_path optimization
/etc/php/8.0/cgi/php.ini:;include_path = ".:/usr/share/php"
/etc/php/8.0/cgi/php.ini:;include_path = ".;c:\php\includes"
/etc/php/8.0/cgi/php.ini:; PHP's default setting for include_path is ".;/path/to/php/pear"
/etc/php/8.0/cgi/php.ini:; Enables or disables file search in include_path optimization
/etc/php/7.3/cli/php.ini:;include_path = ".:/usr/share/php"
/etc/php/7.3/cli/php.ini:;include_path = ".;c:\php\includes"
/etc/php/7.3/cli/php.ini:; PHP's default setting for include_path is ".;/path/to/php/pear"
/etc/php/7.3/cli/php.ini:; Enables or disables file search in include_path optimization
/etc/php/7.3/apache2/php.ini:;include_path = ".:/usr/share/php"
/etc/php/7.3/apache2/php.ini:;include_path = ".;c:\php\includes"
/etc/php/7.3/apache2/php.ini:; PHP's default setting for include_path is ".;/path/to/php/pear"
/etc/php/7.3/apache2/php.ini:; Enables or disables file search in include_path optimization
/etc/php/7.3/cgi/php.ini:;include_path = ".:/usr/share/php"
/etc/php/7.3/cgi/php.ini:;include_path = ".;c:\php\includes"
/etc/php/7.3/cgi/php.ini:; PHP's default setting for include_path is ".;/path/to/php/pear"
/etc/php/7.3/cgi/php.ini:; Enables or disables file search in include_path optimization

Hors ligne

#4 Le 10/12/2021, à 18:51

bruno

Re : phpmyadmin - page blanche - PhpMyAdmin/MoTranslator/autoload.php

Quel bazar toutes ces versions de PHP !
De ce fait il est impossible de savoir quel fichier php.ini est utilisé…
A priori la version « normale » de Ubuntu 20.04 et PHP 7.4, il faudrait donc dé-commenter dans /etc/php/7.4/apache2/php.ini :

;include_path = ".:/usr/share/php"

Hors ligne

#5 Le 10/12/2021, à 19:46

eric LM

Re : phpmyadmin - page blanche - PhpMyAdmin/MoTranslator/autoload.php

Bravo, merci beaucoup, cela fonctionne.
Reste que j'aimerais comprendre le résonnement, parce que sinon, pour moi, cela tient de la baguette magique...
Encore merci,
Éric LM

Hors ligne

#6 Le 10/12/2021, à 20:40

bruno

Re : phpmyadmin - page blanche - PhpMyAdmin/MoTranslator/autoload.php

Il n'y a rien de magique. Ton message d'erreur dit PhpMyAdmin/MoTranslator/autoload.php ne peut être ouvert car il n'est pas dans include_path :

Failed opening required 'PhpMyAdmin/MoTranslator/autoload.php' (include_path=':/usr/share/kopano/php')

On voit que sa valeur est anormale puisque les applications php s'installent dans /usr/share/php et donc include_path doit contenir a minima /usr/share/php.
En dé-commentant la directive dans le fichier php.ini tu obtiens au final la valeur : .:/usr/share/php.:/usr/share/kopano/php'

Comment en es-tu arrivé à cette situation ? Toi seul le peut le savoir wink

Hors ligne