Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import Dashboard / Widgets Problem Version 1.0.97 #306

Open
dennishei opened this issue Jul 29, 2022 · 0 comments
Open

Import Dashboard / Widgets Problem Version 1.0.97 #306

dennishei opened this issue Jul 29, 2022 · 0 comments
Assignees

Comments

@dennishei
Copy link
Collaborator

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":{}}

@nhatdo-nfq nhatdo-nfq self-assigned this Aug 3, 2022
@nhatdo-nfq nhatdo-nfq assigned dennishei and unassigned nhatdo-nfq Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants