From 8c4bcbca41df43df446f2047b64b34667b96244b Mon Sep 17 00:00:00 2001 From: jokob-sk Date: Sun, 16 Jun 2024 09:11:21 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9A=20UI=20not=20visible=20docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/WEB_UI_PORT_DEBUG.md | 34 ++++++++++++++++++++++++++- front/php/server/devices.php | 4 +++- front/plugins/__template/rename_me.py | 2 +- 3 files changed, 37 insertions(+), 3 deletions(-) diff --git a/docs/WEB_UI_PORT_DEBUG.md b/docs/WEB_UI_PORT_DEBUG.md index 342c03fd..90ea2c2f 100755 --- a/docs/WEB_UI_PORT_DEBUG.md +++ b/docs/WEB_UI_PORT_DEBUG.md @@ -1,5 +1,7 @@ # Debugging inaccessible UI +## 1. Port conflicts + When opening an issue please: 1. Include a screenshot of what you see when accessing `HTTP:///20211` (or your custom port) @@ -11,4 +13,34 @@ When opening an issue please: 1. if you get `nginx: [emerg] bind() to 0.0.0.0:20211 failed (98: Address in use)` try using a different port number -![lsof ports](/docs/img/WEB_UI_PORT_DEBUG/container_port.png) \ No newline at end of file +![lsof ports](/docs/img/WEB_UI_PORT_DEBUG/container_port.png) + +## 2. JavaScript issues + +Check for browser console (F12 browser dev console) errors + check different browsers. + + +## 3. Clear the app cache and cached JavaScript files + +Refresh the browser cache (usually shoft + refresh), try a private window, or different browsers. Please also refresh the app cache by clicking the 🔃 (reload) button in the header of the application. + +## 4. Disable proxy + +If you have any reverse proxy or similar, try disabling it. + +## 5. Post your docker start details + +If you haven't, post your docker compose/run command. + +## 6. Check for errors in your PHP/NGINX error logs + +In the container execute: + +`cat /var/log/nginx/error.log` + +`cat /app/front/log/app.php_errors.log` + + +## 7. Make sure permissions are correct + +Please read the [Permissions troubleshooting guide](/docs/FILE_PERMISSIONS.md) and provide a screesnhot of the permissions and ownership in the `/app/db` and `app/config` directories. \ No newline at end of file diff --git a/front/php/server/devices.php b/front/php/server/devices.php index 19b3d91b..2bdcfd92 100755 --- a/front/php/server/devices.php +++ b/front/php/server/devices.php @@ -667,7 +667,9 @@ function getDevicesList() { handleNull($row['dev_Vendor']), handleNull($row['dev_Network_Node_port']), handleNull($row['dev_GUID']), - handleNull($row['dev_SyncHubNodeName']) + handleNull($row['dev_SyncHubNodeName']), + handleNull($row['dev_NetworkSite']), + handleNull($row['dev_SSID']) ); $newOrder = array(); diff --git a/front/plugins/__template/rename_me.py b/front/plugins/__template/rename_me.py index 1c4397f2..597b4eb3 100755 --- a/front/plugins/__template/rename_me.py +++ b/front/plugins/__template/rename_me.py @@ -72,7 +72,7 @@ def get_device_data(some_setting): device_data = [] - # do some processing, call exteranl APIs, and return a device list + # do some processing, call exteranl APIs, and return a device_data list # ... #