Closed SilvaFernando closed 1 week ago
How many consumables do you have in your DB?
SELECT COUNT(*) FROM glpi_consumables;
What is your current list limit (Number of search results displayed on a single page)?
Hi @cconard96. Follow count:
Hi @cconard96. Do you have some feedback? Thanks
How many consumables are you trying to display in GLPI at once (how many search results are you showing per page)? You indicate that the issue appears when there are a lot of consumables. In order to test this, I would need to know the total number of consumables (which you provided) and how many are trying to be shown at once so that I can try to recreate the circumstances and see if the performance can be improved any substantial amount.
Hi @cconard96. I've trying show just 10 lines, which I think is not very much, If I show just one I have the same issue.
Hi @cconard96, do you have some feedback?
Hi @cconard96, can you help-me?
@SilvaFernando can you try this -> https://github.com/glpi-project/glpi/pull/16997
I don't know if you're in the same situation (in principle, yes, given the columns displayed in the consumables list), but can you test this Pull REquest?
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
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
The solution is to copy the old Search.php to the new path. This will help those who are facing this issue
There has been no activity on this issue for some time and therefore it is considered stale and will be closed automatically in 10 days.
If this issue is related to a bug, please try to reproduce on latest release. If the problem persist, feel free to add a comment to revive this issue. If it is related to a new feature, please open a topic to discuss with community about this enhancement on suggestion website.
You may also consider taking a subscription to get professionnal support or contact GLPI editor team directly.
There has been no activity on this issue for some time and therefore it is considered stale and will be closed automatically in 10 days.
If this issue is related to a bug, please try to reproduce on latest release. If the problem persist, feel free to add a comment to revive this issue. If it is related to a new feature, please open a topic to discuss with community about this enhancement on suggestion website.
You may also consider taking a subscription to get professionnal support or contact GLPI editor team directly.
Code of Conduct
Is there an existing issue for this?
Version
10.0.14
Bug description
Timeout on glpi_consumable items when I use these fields on personal view(NUMBER OF USED CONSUMABLES and NUMBER OF USED CONSUMABLES:
Relevant log output
Page URL
https://glpi-14.sdbrasil.ninja/front/consumableitem.php
Steps To reproduce
Use NUMBER OF USED CONSUMABLES and NUMBER OF USED CONSUMABLES, this error just occurs if you have many consumables.
Your GLPI setup information
Information about system installation & configuration
Server
GLPI constants
Libraries
LDAP directories
SQL replicas
Notifications
Plugins list
Anything else?
No response