Community
    • Categories
    • Recent
    • Popular
    • Users
    • Search
    • Register
    • Login

    Fehler bei Dokumenterstellug: Document not found

    Scheduled Pinned Locked Moved Allgemein
    11 Posts 4 Posters 348 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Michael HuhnM Offline
      Michael Huhn @IT_GAP
      last edited by

      undefined @RAG,

      der Fehler sollte durch diesen Hotfix gelöst sein ->
      https://kb.i-doit.com/de/administration/hotfixes/index.html#http-500-error-when-creating-a-document-or-a-revision-id-10831

      I F 2 Replies Last reply Reply Quote 1
      • I Offline
        IT_GAP @Michael Huhn
        last edited by

        @Michael-Huhn Hallo, der Hotfix scheint zu funktionieren. Ich habe eine Revision für eins der kaputten Dokumente erstellt und nun ist eins vorhanden was sich auch öffnen lässt. Vielen herzlichen Dank 😊

        1 Reply Last reply Reply Quote 0
        • F Offline
          Florian 0 @Michael Huhn
          last edited by

          @Michael-Huhn
          Danke bei mir das gleiche Problem geht wieder.

          1 Reply Last reply Reply Quote 0
          • A Offline
            akadmin
            last edited by

            Hallo zusammen,

            ich erhalte auch den Fehler "Document does not exist" bei der Neuerstellung von Dokumenten. Bereits vorhandene Dokumente lassen sich weiterhin als PDF öffnen.

            Im error.log des Webservers steht:

            [Thu Jun 20 14:25:02.276033 2024] [php:error] [pid 20826] [client 192.168.1.122:59921] PHP Fatal error:  Uncaught TypeError: isys_cmdb_dao_category_property::getConstantFromRange(): Argument #1 ($constant) must be of type string, null given, called in /var/www/app03/idoit/src/classes/modules/cmdb/dao/category/isys_cmdb_dao_category_property.class.php on line 4391 and defined in /var/www/app03/idoit/src/classes/modules/cmdb/dao/category/isys_cmdb_dao_category_property.class.php:4347\nStack trace:\n#0 /var/www/app03/idoit/src/classes/modules/cmdb/dao/category/isys_cmdb_dao_category_property.class.php(4391): isys_cmdb_dao_category_property->getConstantFromRange()\n#1 /var/www/app03/idoit/src/classes/modules/cmdb/dao/category/isys_cmdb_dao_category_property.class.php(4239): isys_cmdb_dao_category_property->create_alias()\n#2 /var/www/app03/idoit/src/classes/modules/document/compiler/placeholder/isys_document_compiler_placeholder_property.class.php(100): isys_cmdb_dao_category_property->retrieve_chained_obj_id()\n#3 /var/www/app03/idoit/src/classes/modules/document/compiler/placeholder/isys_document_compiler_placeholder_property.class.php(39): isys_document_compiler_placeholder_property->getValue()\n#4 /var/www/app03/idoit/src/classes/modules/document/compiler/placeholder/isys_document_compiler_placeholder.class.php(184): isys_document_compiler_placeholder_property->get()\n#5 /var/www/app03/idoit/src/classes/modules/document/compiler/isys_document_compiler_chapter.class.php(102): isys_document_compiler_placeholder->compile()\n#6 /var/www/app03/idoit/src/classes/modules/document/compiler/isys_document_compiler.class.php(226): isys_document_compiler_chapter->get()\n#7 /var/www/app03/idoit/src/classes/modules/document/compiler/isys_document_compiler_document.class.php(163): isys_document_compiler->compile()\n#8 /var/www/app03/idoit/src/classes/modules/document/compiler/isys_document_compiler.class.php(226): isys_document_compiler_document->get()\n#9 /var/www/app03/idoit/src/classes/modules/document/src/Document/Document.php(109): isys_document_compiler->compile()\n#10 /var/www/app03/idoit/src/classes/modules/document/handler/ajax/isys_ajax_handler_document.class.php(334): idoit\\Module\\Document\\Document\\Document->create()\n#11 /var/www/app03/idoit/src/classes/modules/document/handler/ajax/isys_ajax_handler_document.class.php(178): isys_ajax_handler_document->createDocument()\n#12 /var/www/app03/idoit/src/classes/ajax/isys_ajax.class.php(137): isys_ajax_handler_document->init()\n#13 /var/www/app03/idoit/src/classes/ajax/isys_ajax.class.php(99): isys_ajax->call()\n#14 /var/www/app03/idoit/src/ajax.inc.php(111): isys_ajax->init()\n#15 /var/www/app03/idoit/index.php(155): require_once('...')\n#16 {main}\n  thrown in /var/www/app03/idoit/src/classes/modules/cmdb/dao/category/isys_cmdb_dao_category_property.class.php on line 4347, referer: https://app03/i-doit/?objID=32010&viewMode=1002&tvMode=1006&catgID=189
            

            Der oben genannte Hotfix hat in meiner Installation nicht geholfen. Trotz Austausch der korrigierten Datei isys_cmdb_dao_category_property.class.php bleibt der Fehler.

            Debian 12.5, PHP 8.2.18, i-doit Version 31 PRO,
            Module: Maintenance 1.3, Relocate-CI 1.3, Nagios Connector 1.1.1, Label 0.6, Events 1.3, Workflow 1.2, Cabling 1.4, Floorplan 1.8, Documents 1.8, API 2.01, Replacement 1.5

            F 1 Reply Last reply Reply Quote 0
            • F Offline
              Florian 0 @akadmin
              last edited by

              @akadmin
              An für sich schaut deine Darten gut aus.
              Ich würde aber dicht nur die isys_cmdb_dao_category_property.class.php austauschen sondern wie beschrieben der Anleitung nachgehen.

              sudo cp i-doit_<version>hotfix<description><ticket><commit>.zip /var/www/html/i-doit/
              cd /var/www/html/i-doit/
              sudo -u www-data unzip i-doit_<version>hotfix<description><ticket><commit>.zip
              sudo rm i-doit_<version>hotfix<description><ticket><commit>.zip

              Welche Berechtigungen hat die Datei root oder die von Webserver Nutzer?

              A 1 Reply Last reply Reply Quote 0
              • A Offline
                akadmin @Florian 0
                last edited by

                @Florian-0 In der Hotfix-ZIP-Datei ist nur diese eine genannte PHP-Datei enthalten. Davon abgesehen habe ich die erwähnten Schritte abgearbeitet.

                Die Datei ist lesbar für den Webserver-User:

                root@app03:/var/www/app03/idoit/src/classes/modules/cmdb/dao/category# ls -lha
                insgesamt 644K
                drwxrwxr-x 4 www-data www-data 4,0K 20. Jun 14:05 .
                drwxrwxr-x 5 www-data www-data 4,0K 20. Jun 13:01 ..
                drwxrwxr-x 2 www-data www-data  12K 24. Apr 09:27 global
                -rw-rw-r-- 1 www-data www-data 152K 20. Jun 13:01 isys_cmdb_dao_category.class.php
                -rw-rw-r-- 1 www-data www-data  12K 20. Jun 13:01 isys_cmdb_dao_category_data.class.php
                -rw-rw-r-- 1 www-data www-data  727 20. Jun 13:01 isys_cmdb_dao_category_data_multivalue.class.php
                -rw-rw-r-- 1 www-data www-data  907 20. Jun 13:01 isys_cmdb_dao_category_data_reference.class.php
                -rw-rw-r-- 1 www-data www-data 1,5K 20. Jun 13:01 isys_cmdb_dao_category_data_value.class.php
                -rw-rw-r-- 1 www-data www-data  816 20. Jun 13:01 isys_cmdb_dao_category_global.class.php
                -rw-rw-r-- 1 www-data www-data  37K 20. Jun 13:01 isys_cmdb_dao_category_pattern.class.php
                -rw-rw-r-- 1 www-data www-data 322K 22. Mai 16:39 isys_cmdb_dao_category_property.class.php
                -rw-rw-r-- 1 www-data www-data  62K 20. Jun 13:01 isys_cmdb_dao_category_property_ng.class.php
                -rw-rw-r-- 1 www-data www-data  824 20. Jun 13:01 isys_cmdb_dao_category_specific.class.php
                drwxrwxr-x 2 www-data www-data  12K  6. Aug 2020  specific
                
                F 1 Reply Last reply Reply Quote 0
                • F Offline
                  Florian 0 @akadmin
                  last edited by Florian 0

                  @akadmin
                  Ich hab mal bei mir in meinen Ordner geschaut.

                  Pfard /var/www/html/i-doit/src/classes/modules/cmdb/dao/category

                  dabei beachte mal die die Datei bei mir auf 777 gesetzt ist.
                  total 644
                  drwxrwxr-x 4 www-data www-data 4096 Jun 14 08:11 ./
                  drwxrwxr-x 5 www-data www-data 4096 Mai 29 12:32 ../
                  drwxrwxr-x 2 www-data www-data 12288 Mai 15 08:29 global/
                  -rw-rw-r-- 1 www-data www-data 154970 Mai 29 12:32 isys_cmdb_dao_category.class.php
                  -rw-rw-r-- 1 www-data www-data 11522 Mai 29 12:32 isys_cmdb_dao_category_data.class.php
                  -rw-rw-r-- 1 www-data www-data 727 Mai 29 12:32 isys_cmdb_dao_category_data_multivalue.class.php
                  -rw-rw-r-- 1 www-data www-data 907 Mai 29 12:32 isys_cmdb_dao_category_data_reference.class.php
                  -rw-rw-r-- 1 www-data www-data 1440 Mai 29 12:32 isys_cmdb_dao_category_data_value.class.php
                  -rw-rw-r-- 1 www-data www-data 816 Mai 29 12:32 isys_cmdb_dao_category_global.class.php
                  -rw-rw-r-- 1 www-data www-data 37781 Mai 29 12:32 isys_cmdb_dao_category_pattern.class.php
                  -rwxrwxrwx 1 www-data www-data 329468 Mai 22 16:39 isys_cmdb_dao_category_property.class.php*
                  -rw-rw-r-- 1 www-data www-data 62881 Mai 29 12:32 isys_cmdb_dao_category_property_ng.class.php
                  -rw-rw-r-- 1 www-data www-data 824 Mai 29 12:32 isys_cmdb_dao_category_specific.class.php
                  drwxrwxr-x 2 www-data www-data 12288 Apr 11 2022 specific/

                  Ich schreib das jetzt mal dazu da im Forum auch eventuel nicht Linux afine menschen sind.
                  lösung wäre dan in der cli
                  sudo chmod 777 isys_cmdb_dao_category_property.class.php

                  A 1 Reply Last reply Reply Quote 0
                  • A Offline
                    akadmin @Florian 0
                    last edited by

                    @Florian-0 Danke für Deine Mühe aber ich bezweifle, dass die genannte Berechtigung einen Unterschied macht. Prinzipiell ist die Datei ja vom Webserver lesbar und sollte entsprechend bei der Ausführung verarbeitet werden können.

                    Schätze hier liegt immer noch ein Bug vor der wohl in meiner Installation auftritt. Bei anderen scheint der Hotfix ja geholfen zu haben.

                    1 Reply Last reply Reply Quote 0
                    • A Offline
                      akadmin
                      last edited by

                      Ich habe vorhin entdeckt, dass es seit dem 26.06. einen neuen Hotfix (i-doit_31_hotfix_ID-10831v2.zip) zur Behebung des Problems gibt.

                      Hiermit funktioniert die Erstellung der Dokumente wieder 🙂

                      Danke 👍

                      F 1 Reply Last reply Reply Quote 0
                      • F Offline
                        Florian 0 @akadmin
                        last edited by

                        @akadmin Hallo akadmin.
                        Danke schonmal für die info. Dan gab es hier wohl doch mehrere Probleme.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post