You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2024-05-16 14:59:11

Vicken
Member
Registered: 2024-03-04
Posts: 22

[RESOLVED] Duplicate Keys found

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

#2 2024-05-16 22:07:49

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,809
Website

Re: [RESOLVED] Duplicate Keys found

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

#3 2024-05-21 12:30:11

Vicken
Member
Registered: 2024-03-04
Posts: 22

Re: [RESOLVED] Duplicate Keys found

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

#4 2024-05-21 23:24:15

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,809
Website

Re: [RESOLVED] Duplicate Keys found

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

#5 2024-05-22 08:23:07

Vicken
Member
Registered: 2024-03-04
Posts: 22

Re: [RESOLVED] Duplicate Keys found

Hi cconard96

That turned out to be it. Thanks a lot for your help!

Offline

Board footer

Powered by FluxBB