Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Has anyone else encountered this error when trying to search in Consumables? #17092

Closed
IsaacMariaMedina opened this issue May 8, 2024 · 2 comments

Comments

@IsaacMariaMedina
Copy link

          Has anyone else encountered this error when trying to search in Consumables?

Twig Error (Twig\Error\RuntimeError): "An exception has been thrown during the rendering of a template ("CommonDBTM::isMassiveActionAllowed(): Argument #1 ($items_id) must be of type int, null given")." in template "/var/www/html/glpi/templates/components/search/table.html.twig" at line 121

Additionally, when I load the Consumable Request plugin, it returns this error:

PHP User Warning (512): Duplicate keys found in search options for item type ConsumableItem: 1, 2 in /var/www/html/glpi/src/Search.php at line 8335

Originally posted by @IsaacMariaMedina in #16839 (comment)

@IsaacMariaMedina
Copy link
Author

The solution is to copy the old Search.php to the new path. This will help those who are facing this issue

@cedric-anne
Copy link
Member

The solution is to copy the old Search.php to the new path. This will help those who are facing this issue

Replacing a file in the source code is never a good solution. It may trigger even more bugs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants