5 / 18
Dec 2022

Moin.
Ich versuche, Adressen zu importieren und vorher ein Importprofil zu definieren.
Dabei bekomme ich (nach dem Fenster mit dem Zeichensatz) folgende Fehlermeldung:

Ein Fehler ist aufgetreten.
array_keys(): Argument #1 ($array) must be of type array, null given
/usr/share/egroupware/api/src/Translation.php (1137)

Passiert auf zwei Installationen, eine davon frisch erst heute angelegt :frowning:

Darf ich auf Hilfe hoffen?
Danke
Jürgen

  • created

    Dec '22
  • last reply

    Dec '22
  • 17

    replies

  • 1.5k

    views

  • 3

    users

  • 10

    links

Kann ich irgendwo den Bearbeitungsstand des Tickets einsehen?

Nein.
Das unser internes Ticketsystem für unsere Entwicklung und Kunden.


Leider lässt sich das nicht beliebig reproduzieren. Bisher nur auf meiner privaten EGw.

Du könntest aber mal auf deiner Installation den EGw-Container gegen die PHP 7.4-Version (21.1-7.4) tauschen:

Bei mir funktioniert das dann. Bei dir?

Du könntest das als temporären Workaround zum Anlegen von Definitionen nehmen.

Stefan

Komisch… Ich kann das nun nicht mehr reproduzieren.
Versuche du das bitte auch noch einmal bei dir.

Sollte das an der Importdatei liegen (was ich nicht vermute) könntest du das einfach mal mit meiner Testdatei versuchen:
csv.txt2 (12 Bytes)

Stefan

Das ist ja weird …
Mit der php7.4.33erVersion zurückgespielt und egw neu gestartet, kann ich inzwischen ein Importprofil anlegen.
Der Import schlägt fehl mit
Eine Anfrage an den EGroupware Server ergab einen Fehler: Internal Server Error (500)
Bitte laden Sie die EGroupware Oberfläche neu (F5 / Cmd+r).
Wenn der Fehler weiterhin auftritt, bitten Sie Ihren Administrator um Hilfe und das Fehler-Protokoll (error-log) des Webservers anzuschauen.
URL: /egroupware/json.php?menuaction=importexport.importexport_import_ui.import_dialog.et2_process
date: Wed, 14 Dec 2022 16:40:28 GMT

D.s bei deiner Datei und mit meinen Daten.

Dann zurück auf die 8.1.13
Gleiche Fehlermeldung beim Importversuch.
Beim Versuch, ein Importprofil anzulegen kommt wieder
Ein Fehler ist aufgetreten.
array_keys(): Argument #1 ($array) must be of type array, null given
/usr/share/egroupware/api/src/Translation.php (1137)

Gibt es einen Weg, globale Kategorien zu exportieren?
Ich setz das gern auch zum 5. Mal neu auf, auch wenn es schmerzt …

Danke
Jürgen

Der Fehler ist jetzt behoben:

Du kannst den nach der Anleitung auch direkt bei Dir einspielen, statt auf das nächste Maintenance Release zu warten.

Für den anderen Fehler, musst Du mal in das error-log schauen etc/egroupware-docker/egroupware-logs.sh), wenn der Fehler auftritt:

Ralf

Danke für die Mühe!

Unter /usr/share/egroupware liegt als einziges Verzeichnis noch /doc
Kein /api und auch kein /importexport, auf das im errorlog hingewiesen wird.
Auf beiden Servern nicht, eingeloggt als root.

Hier die Meldung vom error-log

2022/12/26 18:43:01 [error] 22#22: *8436 FastCGI sent in stderr: “
PHP message: PHP Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /usr/share/egroupware/api/src/Vfs/Base.php on line 86
PHP message: PHP Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /usr/share/egroupware/api/src/Vfs/Base.php on line 92
PHP message: PHP Deprecated: strtr(): Passing null to parameter #1 ($string) of type string is deprecated in /usr/share/egroupware/api/src/Vfs/Base.php on line 92
PHP message: PHP Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /usr/share/egroupware/api/src/Etemplate/Widget.php on line 855
PHP message: PHP Deprecated: strstr(): Passing null to parameter #1 ($haystack) of type string is deprecated in /usr/share/egroupware/api/src/Etemplate/Widget/Grid.php on line 192
PHP message: PHP Deprecated: strstr(): Passing null to parameter #1 ($haystack) of type string is deprecated in /usr/share/egroupware/api/src/Etemplate/Widget/Grid.php on line 192
PHP message: PHP Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /usr/share/egroupware/api/src/Etemplate/Widget/Box.php on line 76
PHP message: PHP Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /usr/share/egroupware/api/src/Etemplate/Widget/Box.php on line 76” while reading response header from upstream, client: 172.18.0.1, server: _, request: “POST /egroupware/json.php?menuaction=addressbook.jdots_framework.ajax_exec.template.importexport.importexport_definitions_ui.index HTTP/1.1”, upstream: “fastcgi://172.18.0.4:9000”, host: “xyz.online-server.cloud”, referrer: "https://xyz.online-server.cloud/egroupware/index.php?cd=yes"
2022/12/26 18:43:25 [warn] 23#23: *8457 a client request body is buffered to a temporary file /var/cache/nginx/client_temp/0000000010, client: 172.18.0.1, server: _, request: “POST /egroupware/json.php?menuaction=EGroupware\Api\Etemplate\Widget\File::ajax_upload&resumableChunkNumber=1&resumableChunkSize=33030144&resumableCurrentChunkSize=352090&resumableTotalSize=352090&resumableType=application%2Fvnd.ms-excel&resumableIdentifier=352090-egw_export_addressbook-2022-12-10csv&resumableFilename=egw_export_addressbook-2022-12-10.csv&resumableRelativePath=egw_export_addressbook-2022-12-10.csv&resumableTotalChunks=1&request_id=importexport_sysop_fbjTjVJ9trmhss8ig8jIaFrdU8vrumuBqEdI49qeCKg%3D&widget_id=file HTTP/1.1”, host: “xyz.online-server.cloud”, referrer: "https://xyz.online-server.cloud/egroupware/index.php?menuaction=importexport.importexport_import_ui.import_dialog&appname=addressbook&definition=25"
2022/12/26 18:43:30 [error] 23#23: *8457 FastCGI sent in stderr: “
PHP message: PHP Fatal error: Allowed memory size of 180355072 bytes exhausted (tried to allocate 4096 bytes) in /usr/share/egroupware/importexport/inc/class.importexport_import_csv.inc.php on line 543
PHP message: PHP Fatal error: Allowed memory size of 180355072 bytes exhausted (tried to allocate 24576 bytes) in Unknown on line 0” while reading response header from upstream, client: 172.18.0.1, server: _, request: “POST /egroupware/json.php?menuaction=importexport.importexport_import_ui.import_dialog.et2_process HTTP/1.1”, upstream: “fastcgi://172.18.0.4:9000”, host: “xyz.online-server.cloud”, referrer: “https://xyz.online-server.cloud/egroupware/index.php?menuaction=importexport.importexport_import_ui.import_dialog&appname=addressbook&definition=25

Da scheint doch schon mal eine Baustelle zu sein. Schau mal hier:

Stefan

Danke. Getan. Scheint nur nicht sooo einfach zu sein …
Ein
defaults
#- EGW_SESSION_TIMEOUT=14000
- EGW_APC_SHM_SIZE=256M
#- EGW_MEMORY_LIMIT=256M
#- EGW_MAX_EXECUTION_TIME=90
gibt hier
http://yaml-online-parser.appspot.com/
ein
Output

ERROR:

while parsing a block mapping
in “”, line 20, column 5:
image: egroupware/egroupware:21.1
^
expected , but found '-'
in “”, line 49, column 5:
- EGW_APC_SHM_SIZE=256M
^

Das habe ich auch herausgefunden. Aber ich finde keine Lösung dafür, egal, wie ich mit Leerzeichen experimentiere… Die Anleitung meint, es reiche, das # zu entfernen.

- EGW_APC_SHM_SIZE=512M
- EGW_MEMORY_LIMIT=512M

2022/12/26 21:19:24 [error] 23#23: *8616 FastCGI sent in stderr: “
PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /usr/share/egroupware/importexport/inc/class.importexport_import_csv.inc.php on line 537
PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 32768 bytes) in Unknown on line 0” while reading response header from upstream, client: 172.18.0.1, server: _, request: “POST /egroupware/json.php?menuaction=importexport.importexport_import_ui.import_dialog.et2_process HTTP/1.1”, upstream: “fastcgi://172.18.0.4:9000”, host: “xyz.online-server.cloud”, referrer: “https://xyz.online-server.cloud/egroupware/index.php?menuaction=importexport.importexport_import_ui.import_dialog&appname=addressbook

Das glaube ich jetzt nicht mehr.
Zumal das ja auch schon mal geklappt hat mit den vorgegebenen Einstellungen und die Importdatei immer noch die gleiche ist.

Hier komme ich halt auch nicht weiter.