Closed kvnwszr closed 3 months ago
Can you force an update (fields should migrate 0
as zero
) with
php bin/console glpi:plugin:install fields -f
then
php bin/console glpi:plugin:activate fields
Thank you for your response. The commands are also not working.
[root@gloopy glpi]# php bin/console glpi:plugin:install fields -f
User to use:glpi
Traitement du plugin « fields »...
Installation des tables MySQL
Uncaught Exception Error: Class "PluginFields0caseacocher" not found in /var/www/html/glpi/marketplace/fields/inc/container.class.php at line 643
CAn you check from
glpi/files/_plugins/fields/inc/ what is the name of the file linked to this class
can you upload the file here ?
I have checked all files in glpi/files/_plugins/fields/inc/ and I couldn't find any reference to this class.
during GLPI update did you take over the glpi/_files/ folder?
No, I did not modify the glpi/_files/ folder during the GLPI update.
the plugin fields writes files in the folder glpi/files/_plugins/ which must be included if you update GLPI using this procedure
https://glpi-install.readthedocs.io/fr/latest/update.html
Can you give me the result of the following SQL query?
SELECT * from glpi_plugin_fields_containers
I followed this procedure carefully Here is the result of the query
Ok, drop line with ID 14 (itemtypes = ["0"] -> not possible)
DELETE FROM glpi_plugin_fields_containers WHERE id = 14
and it should work properly
it worked thanks a lot for your help
I'm facing an issue while updating the "Fields" plugin on GLPI 10. After attempting the update via the plugin management interface, the process does not complete successfully. The following errors are logged in the php-errors.log file:
Context:
The class PluginFields0caseacocher is not found when executing the PluginFieldsContainer::create() method. The create method attempts to generate a class name based on item types and field names, then calls the install() method on this class. The getClassname method seems to generate incorrect class names or the corresponding classes do not exist.
Actions Taken:
Executed the command composer install --no-dev in the plugin directory to ensure all dependencies are correctly installed.
Relevant Logs:
php-errors.log:
Request for Assistance:
I seek your assistance in resolving this issue with updating the Fields plugin on GLPI 10. Any information or assistance regarding the correction of the class not found error would be greatly appreciated.