You are not logged in.
Pages: 1
Hi, I'm in a bit of a pickle.
When trying to view Printers, Computers, Network equipment... I get the following error:
PHP User Warining (512): Duplicate keys found in search options for item type Computer: 205, 206 in C:\inetpub\wwwroot\glpi\src\Search.php at line 8282
Looking in the PHP errors log, I see this:
[2024-05-16 14:42:52] glpiphplog.WARNING: *** PHP User Warning (512): Duplicate keys found in search options for item type Printer: 205, 206 in C:\inetpub\wwwroot\glpi_ict\src\Search.php at line 8282
Backtrace :
src\Search.php:8282 trigger_error()
src\Search.php:8326 Search::{closure}()
src\Search.php:8016 Search::getOptions()
src\Search.php:2799 Search::getCleanedOptions()
src\Search.php:2602 Search::displayCriteria()
src\Search.php:171 Search::showGenericSearch()
front\printer.php:42 Search::show()
public\index.php:82 require()
Does anybody have an idea to resolve this error?
Last edited by Vicken (2024-05-23 13:45:45)
Offline
Do you have any plugins installed and enabled? For GLPI itself, there are automatic tests that run to help ensure we don't register multiple search options with the same IDs, so I don't think this is from GLPI itself.
Also, which version of GLPI are you seeing this warning in?
GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.
Offline
Hi cconard96
The current version of GLPI is 10.0.11. I'm a bit scared of updating to the newest version while there are such errors.
I have a few plugins running:
My Dashboard
Oauth IMAP
Reports
Show Loading
Trademark
I tried switching them off individually, to see which one was causing the issue, but the error remains.
I don't know if it's worth noting but I only see the error when opening the pages with debug mode enabled. However this has me worried a bit.
Offline
Do you have item locks enabled for Printers by chance? Setup > General > General setup tab. It looks like both domains and item locks have some overlapping search options that they can add onto asset itemtypes.
GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.
Offline
Hi cconard96
That turned out to be it. Thanks a lot for your help!
Offline
Pages: 1