Skip to content

Import Dashboard / Widgets Problem Version 1.0.97 #306

Description

@dennishei

Exported Dashboard / Widgets from Logexplorer Installation A - Version: Version 1.0.97.
Unable to Import to another Logexplorer Installation B with same Version 1.0.97.

widgets.json:
{ "name": "Export dashboard", "date": "2022-07-29 08:51:09", "version": "1.0.97", "widgets": { "1": { "id": 1, "title": "Top IPs", "type": 3, "table": "nginx_access", "column": "ip", "query": "", "order_desc": true, "size": 20 }, "2": { "id": 2, "title": "Top URLs", "type": 3, "table": "nginx_access", "column": "request", "query": "", "order_desc": true, "size": 20 }, "3": { "id": 3, "title": "Methods", "type": 4, "table": "nginx_access", "column": "method", "query": "", "order_desc": true, "size": 20 }, "4": { "id": 4, "title": "Hit Counter Sum", "type": 1, "table": "nginx_access", "column": null, "query": "", "order_desc": true, "size": 5 }, "5": { "id": 5, "title": "Top Useragents", "type": 3, "table": "apache_access", "column": "useragent", "query": "", "order_desc": true, "size": 20 }, "6": { "id": 6, "title": "Host", "type": 4, "table": "apache_access", "column": "vhost", "query": "", "order_desc": true, "size": 20 }, "7": { "id": 7, "title": "Status Codes", "type": 4, "table": "nginx_access", "column": "status", "query": "", "order_desc": true, "size": 20 } }, "dashboards": [] }

Error in apache error log:
{"message":"Uncaught Error: Argument 1 passed to App\\Entity\\Widget::setColumn() must be of the type string, null given, called in /var/opt/repos/logexplorer/src/Services/Export/DashboardExportImportService.php on line 123","context":{"exception":{"class":"TypeError","message":"Argument 1 passed to App\\Entity\\Widget::setColumn() must be of the type string, null given, called in /var/opt/repos/logexplorer/src/Services/Export/DashboardExportImportService.php on line 123","code":0,"file":"/var/opt/repos/logexplorer/src/Entity/Widget.php:211"}},"level":500,"level_name":"CRITICAL","channel":"php","datetime":"2022-07-29T09:01:53.113372+02:00","extra":{}} {"message":"Uncaught PHP Exception TypeError: \"Argument 1 passed to App\\Entity\\Widget::setColumn() must be of the type string, null given, called in /var/opt/repos/logexplorer/src/Services/Export/DashboardExportImportService.php on line 123\" at /var/opt/repos/logexplorer/src/Entity/Widget.php line 211","context":{"exception":{"class":"TypeError","message":"Argument 1 passed to App\\Entity\\Widget::setColumn() must be of the type string, null given, called in /var/opt/repos/logexplorer/src/Services/Export/DashboardExportImportService.php on line 123","code":0,"file":"/var/opt/repos/logexplorer/src/Entity/Widget.php:211"}},"level":500,"level_name":"CRITICAL","channel":"request","datetime":"2022-07-29T09:01:53.113768+02:00","extra":{}} {"message":"Stored the security token in the session.","context":{"key":"_security_main"},"level":100,"level_name":"DEBUG","channel":"security","datetime":"2022-07-29T09:01:53.115678+02:00","extra":{}}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions