Closed BorisNovg closed 5 months ago
mycustomview/inc/config.class.php: public function showForm($id, $options= [] )
Maybe it should be: public static function showForm($id, $options= [] )
My mistake. Not clean update, mix of files from 1.2.1 and 2.0.4 versions: 2024-04-17 blocs.class.php 2021-06-08 commondbtm.class.php 2024-04-17 config.class.php 2021-06-08 displaypreference.class.php 2021-06-08 mycustomview.class.php 2024-04-17 myview.class.php 2024-04-17 profile.class.php 2021-06-08 profilerights.class.php 2024-04-17 savedsearch.class.php 2024-04-17 search.class.php
1) delete the directory /usr/share/glpi/plugins/mycustomview 2) unpack the latest version of the plugin into the /usr/share/glpi/plugins/mycustomview/ directory
Ok!
glpi 10.0.15 mycustomview 2.0.4
Steps To reproduce: (/usr/bin/glpi-console is a copy of standard bin/console from glpi release 10.0.15 ->) sudo -u apache /usr/bin/glpi-console --lang=en_GB diagnostic:check_html_encoding
Expected: Command execution may take a long time and should not be interrupted. Scanning database for items to fix... No item to fix.
Error: Command execution may take a long time and should not be interrupted. PHP Fatal error: Cannot make non static method CommonDBTM::showForm() static in class PluginMycustomviewDisplayPreference in /usr/share/glpi/plugins/mycustomview/inc/displaypreference.class.php on line 37 PHP Compile Error (64): Cannot make non static method CommonDBTM::showForm() static in class PluginMycustomviewDisplayPreference in /usr/share/glpi/plugins/mycustomview/inc/displaypreference.class.php at line 37