Bug with File Manager #412

Closed
opened 2026-04-05 20:27:46 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @moggiex on 4/24/2023

CloudPanel version(s) affected

2.2.2

Description

I am wary that this is borderline a feature request, but it is still causing an error, so have logged it as a bug.

I have added a new volume to the VPS and transferred one of the websites files to the new volume, then created a symbolic link back to the home directory.

Location of website before:
/home/website

Location of site after move
/mnt/HC_Volume_123456/home/website

Then the link back in the home folder shows as
/home/website
but really is:
/mnt/HC_Volume_123456/home/website

The site works as expected. However, I found that when using the file manager tab in CP, it sees the folders, eg varnish -cache, backups, htdocs, logs, tmp etc... but when I click into say "htdocs", the section where I expect files to be shown is blank and we get this error in the console and the file manager no longer works.

filemanager.js?v=2.2.2:3837 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'value')
    at filemanager.js?v=2.2.2:3837:51
(anonymous) @ filemanager.js?v=2.2.2:3837
Promise.then (async)
PanelView.ProcessPath @ filemanager.js?v=2.2.2:3829
(anonymous) @ filemanager.js?v=2.2.2:3816
notify @ filemanager.js?v=2.2.2:1937
set @ filemanager.js?v=2.2.2:1988
DataViewBase.ShowSubFolder @ filemanager.js?v=2.2.2:2344
DataViewBase.Activate @ filemanager.js?v=2.2.2:2323
onItemDblClick @ filemanager.js?v=2.2.2:3453
callEvent @ webix.js?v=2.2.2:407
ic @ webix.js?v=2.2.2:23877
tc @ webix.js?v=2.2.2:7473
Gu @ webix.js?v=2.2.2:7467
(anonymous) @ webix.js?v=2.2.2:291

webix.js?v=2.2.2:622     GET https://<REMOVED>.189:8443/file-manager/backend/folders?id=%2Fhome%website%2Fhtdocs 500
(anonymous) @ webix.js?v=2.2.2:622
setTimeout (async)
S @ webix.js?v=2.2.2:621
get @ webix.js?v=2.2.2:653
E @ webix.js?v=2.2.2:567
Backend.folders @ filemanager.js?v=2.2.2:4831
folders @ (index):50
(anonymous) @ (index):66
callEvent @ webix.js?v=2.2.2:407
Ec @ webix.js?v=2.2.2:7923
select @ webix.js?v=2.2.2:7933
(anonymous) @ filemanager.js?v=2.2.2:3392
notify @ filemanager.js?v=2.2.2:1937
set @ filemanager.js?v=2.2.2:1988
DataViewBase.ShowSubFolder @ filemanager.js?v=2.2.2:2344
DataViewBase.Activate @ filemanager.js?v=2.2.2:2323
onItemDblClick @ filemanager.js?v=2.2.2:3453
callEvent @ webix.js?v=2.2.2:407
ic @ webix.js?v=2.2.2:23877
tc @ webix.js?v=2.2.2:7473
Gu @ webix.js?v=2.2.2:7467
(anonymous) @ webix.js?v=2.2.2:291

How to reproduce

Follow the same steps above, create a website, move to a separate folder, symbolic link it back tot he home folder, go to the file manager for that site, and observe the browser consol.e

Possible Solution

No response

Additional Context

No response

*Originally created by @moggiex on 4/24/2023* ### CloudPanel version(s) affected 2.2.2 ### Description I am wary that this is borderline a feature request, but it is still causing an error, so have logged it as a bug. I have added a new volume to the VPS and transferred one of the websites files to the new volume, then created a symbolic link back to the home directory. Location of website before: `/home/website` Location of site after move `/mnt/HC_Volume_123456/home/website` Then the link back in the home folder shows as `/home/website` but really is: `/mnt/HC_Volume_123456/home/website` The site works as expected. However, I found that when using the file manager tab in CP, it sees the folders, eg varnish -cache, backups, htdocs, logs, tmp etc... but when I click into say "htdocs", the section where I expect files to be shown is blank and we get this error in the console and the file manager no longer works. ``` filemanager.js?v=2.2.2:3837 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'value') at filemanager.js?v=2.2.2:3837:51 (anonymous) @ filemanager.js?v=2.2.2:3837 Promise.then (async) PanelView.ProcessPath @ filemanager.js?v=2.2.2:3829 (anonymous) @ filemanager.js?v=2.2.2:3816 notify @ filemanager.js?v=2.2.2:1937 set @ filemanager.js?v=2.2.2:1988 DataViewBase.ShowSubFolder @ filemanager.js?v=2.2.2:2344 DataViewBase.Activate @ filemanager.js?v=2.2.2:2323 onItemDblClick @ filemanager.js?v=2.2.2:3453 callEvent @ webix.js?v=2.2.2:407 ic @ webix.js?v=2.2.2:23877 tc @ webix.js?v=2.2.2:7473 Gu @ webix.js?v=2.2.2:7467 (anonymous) @ webix.js?v=2.2.2:291 webix.js?v=2.2.2:622 GET https://<REMOVED>.189:8443/file-manager/backend/folders?id=%2Fhome%website%2Fhtdocs 500 (anonymous) @ webix.js?v=2.2.2:622 setTimeout (async) S @ webix.js?v=2.2.2:621 get @ webix.js?v=2.2.2:653 E @ webix.js?v=2.2.2:567 Backend.folders @ filemanager.js?v=2.2.2:4831 folders @ (index):50 (anonymous) @ (index):66 callEvent @ webix.js?v=2.2.2:407 Ec @ webix.js?v=2.2.2:7923 select @ webix.js?v=2.2.2:7933 (anonymous) @ filemanager.js?v=2.2.2:3392 notify @ filemanager.js?v=2.2.2:1937 set @ filemanager.js?v=2.2.2:1988 DataViewBase.ShowSubFolder @ filemanager.js?v=2.2.2:2344 DataViewBase.Activate @ filemanager.js?v=2.2.2:2323 onItemDblClick @ filemanager.js?v=2.2.2:3453 callEvent @ webix.js?v=2.2.2:407 ic @ webix.js?v=2.2.2:23877 tc @ webix.js?v=2.2.2:7473 Gu @ webix.js?v=2.2.2:7467 (anonymous) @ webix.js?v=2.2.2:291 ``` ### How to reproduce Follow the same steps above, create a website, move to a separate folder, symbolic link it back tot he home folder, go to the file manager for that site, and observe the browser consol.e ### Possible Solution _No response_ ### Additional Context _No response_
Sign in to join this conversation.