Skip to content

container template class can't be used in 1.21.26 #1135

@0xNath

Description

@0xNath

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

GLPI Version

10.0.22

Plugin version

1.21.25

Bug description

Hello,
When trying to upgrade the plugin to version to 1.21.26, we encounter the following error :

==> /var/lib/glpi/files/_log/php-errors.log <==
[2026-02-12 14:04:04] glpiphplog.CRITICAL: *** Uncaught Exception Error: Call to a member function isEntityAssign() on bool in /var/lib/glpi/files/_plugins/fields/inc/computerserveur.class.php at line 54
Backtrace :
marketplace/fields/inc/container.class.php:651 PluginFieldsComputerserveur::install()
marketplace/fields/inc/container.class.php:356 PluginFieldsContainer::create()
marketplace/fields/hook.php:86 PluginFieldsContainer::installUserData()
src/Plugin.php:955 plugin_fields_install()
: Plugin->install()
src/Marketplace/Controller.php:546 call_user_func()
src/Marketplace/Controller.php:436 Glpi\Marketplace\Controller->setPluginState()
ajax/marketplace.php:83 Glpi\Marketplace\Controller->installPlugin()
public/index.php:82 require()

After looking at the commit introduced in the new release and the code that trigger this error, it seems like some quote removal have been missed :

Image

Since the new upgrade add simple quotes to the $rightname variable, we don't need the double quotes on ligne 54 and 110 I think.

After patching the template file, we have been able to migrate from 1.21.25 to 1.21.26 successfully.

Best regards, Nathanaël.

Relevant log output

Page URL

No response

Steps To reproduce

No response

Your GLPI setup information

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions