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

[BUG] PHP Parse error dans *pluginid*/plugin_info/install.php n'est pas envoyé vers http.error #3017

Closed
MrWaloo opened this issue Jan 22, 2025 · 0 comments · May be fixed by #3020
Closed

Comments

@MrWaloo
Copy link
Contributor

MrWaloo commented Jan 22, 2025

Décrire le bogue
Une fonction dans le fichier pluginID/plugin_info/install.php n'est pas exécutée. Aucun log nulle part. Les appels aux fonctions de log (log::add() ou message::add()) ne s'exécutaient pas.
Dans plugin_info/install.php j'avais une fonction déclarée en private ce qui n'est pas permis par php si ce n'est pas une fonction de classe.

Reproduire
Etapes pour reproduire le comportement :

  1. Dans plugin_ino/install.php, déclarer une fonction avec provate function ... ou tout autre erreur de syntaxe PHP
  2. Faire une mise à jour du plugin

**Comportement attendu
http.error devrait indiquer une erreur PHP du type :

PHP Parse error:  syntax error, unexpected 'private' (T_PRIVATE), expecting end of file in /var/www/html/plugins/[pluginID]/plugin_info/install.php on line 21

Sujet sur community : https://community.jeedom.com/t/nettoyage-des-fichiers-obsoletes-lors-dune-mise-a-jour-de-plugin/136989

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants