Skip to content

Conversation

@stonebuzz
Copy link
Contributor

Checklist before requesting a review

Please delete options that are not relevant.

  • I have performed a self-review of my code.
  • I have added tests (when available) that prove my fix is effective or that my feature works.
  • I have updated the CHANGELOG with a short functional description of the fix or new feature.
  • This change requires a documentation update.

Description

Fix webapplication plugin integration (namespaced class)

@stonebuzz stonebuzz mentioned this pull request Jan 22, 2026
2 tasks
@geppauso
Copy link

geppauso commented Jan 22, 2026

Hi, your fix resolves the reported error, which appeared in the "Tag" tab. This message now appears in the "Associated items" tab:

An unexpected error occurred

MySQL query error: Unknown column 'glpi_items_devicesimcards.name' in 'order clause' (1054) in SQL query "SELECT glpi_items_devicesimcards.*, glpi_plugin_tag_tagitems.id AS IDD, glpi_entities.id AS entity FROM glpi_plugin_tag_tagitems INNER JOIN glpi_items_devicesimcards ON (glpi_items_devicesimcards.id = glpi_plugin_tag_tagitems.items_id AND glpi_plugin_tag_tagitems.itemtype = 'Item_DeviceSimcard') LEFT JOIN glpi_entities ON (glpi_entities.id = glpi_items_devicesimcards.entities_id) WHERE glpi_plugin_tag_tagitems.plugin_tag_tags_id = '87' AND (true) ORDER BY glpi_entities.completename, glpi_items_devicesimcards.name".
In ./src/DBmysql.php(392)
#0 ./src/DBmysqlIterator.php(125): DBmysql->doQuery()
#1 ./src/DBmysql.php(1061): DBmysqlIterator->execute()
#2 ./marketplace/tag/inc/tagitem.class.php(351): DBmysql->request()
#3 ./marketplace/tag/inc/tag.class.php(265): PluginTagTagItem::showForTag()
#4 ./src/CommonGLPI.php(694): PluginTagTag::displayTabContentForItem()
#5 ./ajax/common.tabs.php(108): CommonGLPI::displayStandardTab()
#6 ./src/Glpi/Controller/LegacyFileLoadController.php(64): require('...')
#7 ./vendor/symfony/http-kernel/HttpKernel.php(181): Glpi\Controller\LegacyFileLoadController->__invoke()
#8 ./vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#9 ./vendor/symfony/http-kernel/Kernel.php(197): Symfony\Component\HttpKernel\HttpKernel->handle()
#10 ./public/index.php(70): Symfony\Component\HttpKernel\Kernel->handle()
#11 {main}

This error message appears when tags are applied to some items, not computers for example.

@stonebuzz
Copy link
Contributor Author

Hi, your fix resolves the reported error, which appeared in the "Tag" tab. This message now appears in the "Associated items" tab:

An unexpected error occurred

MySQL query error: Unknown column 'glpi_items_devicesimcards.name' in 'order clause' (1054) in SQL query "SELECT glpi_items_devicesimcards.*, glpi_plugin_tag_tagitems.id AS IDD, glpi_entities.id AS entity FROM glpi_plugin_tag_tagitems INNER JOIN glpi_items_devicesimcards ON (glpi_items_devicesimcards.id = glpi_plugin_tag_tagitems.items_id AND glpi_plugin_tag_tagitems.itemtype = 'Item_DeviceSimcard') LEFT JOIN glpi_entities ON (glpi_entities.id = glpi_items_devicesimcards.entities_id) WHERE glpi_plugin_tag_tagitems.plugin_tag_tags_id = '87' AND (true) ORDER BY glpi_entities.completename, glpi_items_devicesimcards.name". In ./src/DBmysql.php(392) #0 ./src/DBmysqlIterator.php(125): DBmysql->doQuery() #1 ./src/DBmysql.php(1061): DBmysqlIterator->execute() #2 ./marketplace/tag/inc/tagitem.class.php(351): DBmysql->request() #3 ./marketplace/tag/inc/tag.class.php(265): PluginTagTagItem::showForTag() #4 ./src/CommonGLPI.php(694): PluginTagTag::displayTabContentForItem() #5 ./ajax/common.tabs.php(108): CommonGLPI::displayStandardTab() #6 ./src/Glpi/Controller/LegacyFileLoadController.php(64): require('...') #7 ./vendor/symfony/http-kernel/HttpKernel.php(181): Glpi\Controller\LegacyFileLoadController->__invoke() #8 ./vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw() #9 ./vendor/symfony/http-kernel/Kernel.php(197): Symfony\Component\HttpKernel\HttpKernel->handle() #10 ./public/index.php(70): Symfony\Component\HttpKernel\Kernel->handle() #11 {main}

This error message appears when tags are applied to some items, not computers for example.

This is another issue.
Could you please open a new one?

@geppauso
Copy link

Ok, I have already opened another issue

@stonebuzz stonebuzz requested a review from Rom1-B January 22, 2026 15:23
@stonebuzz stonebuzz self-assigned this Jan 22, 2026
@stonebuzz stonebuzz added the bug label Jan 22, 2026
@stonebuzz stonebuzz merged commit 79bbee2 into main Jan 22, 2026
3 checks passed
@stonebuzz stonebuzz deleted the fix_webapplication_integration branch January 22, 2026 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

An unexpected error occurred

4 participants