CanMik / protocolsmanager

GLPI Plugin to report users inventory
6 stars 3 forks source link

Problem with install plugin #20

Closed UnknownA8 closed 5 months ago

UnknownA8 commented 5 months ago

[2024-06-06 10:43:21] glpiphplog.WARNING: *** PHP User Warning (512): plugin_version_protocol method must be defined! in /var/www/html/glpi/src/Plugin.php at line 1810 Backtrace : src/Plugin.php:1810 trigger_error() src/Plugin.php:1848 Plugin::getInfo() src/Plugin.php:517 Plugin->getInformationsFromDirectory() src/Plugin.php:786 Plugin->getPluginInformation() src/Plugin.php:570 Plugin->getNewInfoAndDirBasedOnOldName() src/Plugin.php:505 Plugin->checkPluginState() front/marketplace.php:43 Plugin->checkStates() public/index.php:82 require()

UnknownA8 commented 5 months ago

i changed folder name to protocolmanager and now plugins card have http 500 error. in php log is

[2024-06-06 11:11:26] glpiphplog.ALERT: *** PHP Compile Error (64): Cannot redeclare plugin_version_protocolsmanager() (previously declared in /var/www/html/glpi/marketplace/protocol/setup.php:8) in /var/www/html/glpi/plugins/protocolsmanager/setup.php at line 4

UnknownA8 commented 5 months ago

i tried steps from smilar case here, but without success https://github.com/CanMik/protocolsmanager/issues/11

[2024-06-06 11:32:54] glpiphplog.WARNING: *** PHP User Warning (512): plugin_version_protocol method must be defined! in /var/www/html/glpi/src/Plugin.php at line 1810 Backtrace : src/Plugin.php:1810 trigger_error() src/Plugin.php:1848 Plugin::getInfo() src/Plugin.php:517 Plugin->getInformationsFromDirectory() src/Plugin.php:786 Plugin->getPluginInformation() src/Plugin.php:570 Plugin->getNewInfoAndDirBasedOnOldName() src/Plugin.php:505 Plugin->checkPluginState() front/marketplace.php:43 Plugin->checkStates() public/index.php:82 require()

[2024-06-06 11:32:54] glpiphplog.ALERT: *** PHP Compile Error (64): Cannot redeclare plugin_version_protocolsmanager() (previously declared in /var/www/html/glpi/marketplace/protocol/setup.php:8) in /var/www/html/glpi/plugins/protocolsmanager/setup.php at line 4

UnknownA8 commented 5 months ago

i resolve my problem - copy protocolsmanager folder from plugins to marketplace -_-'