Closed bluestar800 closed 6 months ago
Hello @bluestar800 , we just released CADViewer v8.88.5 for NextCloud which solves a similar issue in which the apps folder is named extra_apps. we believe your custom_apps named folder is a similar issue. Please test and let us know.
@CADViewer Thanks for your help. I have updated the cadviewer to v8.88.5 but there still wrong.
error still
Undefined array key "parameters" at /nextcloud/custom_apps/cadviewer/lib/Controller/CadviewerController.php#302
Undefined array key "lineWeightFactor" at /nextcloud/custom_apps/cadviewer/lib/Controller/CadviewerController.php#276
`
`
@CADViewer I tried to reinstall cadviewer,but nothing changed. In doctor,the icon can not be displayed or loaded
Hi @bluestar800 , the top screenshot of CADViewer in nextcloud, indicates that somehow the redirection of the .htaccess is not correct, as there are no icon menu being generated. Can you please open the browser console, Ctrl+Shift+I, and then send a listing of what CADViewer tries to load in? It will tell us what CADViewer is trying to load in, and from the location it wants to do it from. Thanks!
/> Hi @bluestar800 , the top screenshot of CADViewer in nextcloud, indicates that somehow the redirection of the .htaccess is not correct, as there are no icon menu being generated. Can you please open the browser console, Ctrl+Shift+I, and then send a listing of what CADViewer tries to load in? It will tell us what CADViewer is trying to load in, and from the location it wants to do it from. Thanks!
This is the list: `RESIZE - cvjs_resizeWindow_position
logoJS.png:1 GET https://abc.com/apps/cadviewer//assets/app//images/logoJS.png 404
Image (async)
jt @ cadviewer_8.88.5.min.js:2
zt @ cadviewer_8.88.5.min.js:2
append @ cadviewer_8.88.5.min.js:2
hB @ cadviewer_8.88.5.min.js:2
(anonymous) @ cadviewer_8.88.5.min.js:2
ap @ cadviewer_8.88.5.min.js:2
lp @ cadviewer_8.88.5.min.js:2
(anonymous) @ cadviewer_8.88.5.min.js:2
xh @ cadviewer_8.88.5.min.js:2
initCadviewer @ CADViewerCanvas.vue:773
(anonymous) @ CADViewerCanvas.vue:14
d @ CADViewerCanvas.vue:42
(anonymous) @ CADViewerCanvas.vue:42
(anonymous) @ CADViewerCanvas.vue:42
y @ CADViewerCanvas.vue:228
r @ CADViewerCanvas.vue:237
(anonymous) @ CADViewerCanvas.vue:237
(anonymous) @ CADViewerCanvas.vue:234
(anonymous) @ CADViewerCanvas.vue:1
l @ jquery.js:3536
fireWith @ jquery.js:3666
S @ jquery.js:9878
(anonymous) @ jquery.js:10139
load (async)
send @ jquery.js:10158
ajax @ jquery.js:9772
(anonymous) @ jquery-migrate.min.js:2
t.
There is some error in browser console,like this: XHRPOST https://abc.com/apps/cadviewer/converter/php/call-Api_Conversion.php [HTTP/2 404 116ms] GET https://abc.com/apps/cadviewer//assets/app//images/cvjsToolbar_dra_pageChange_11B.png [HTTP/2 404 115ms] Uncaught (in promise) Error: Your focus-trap must have at least one container with at least one tabbable node in it at all times XHRPOST https://abc.com/apps/cadviewer/converter/php/load-file.php [HTTP/2 404 65ms] Content-Security-Policy:页面设置阻止读取位于 eval 的一项资源("script-src")。 2 cadviewer_9.17.2.min.js:2:1558
Hello @bluestar800 , so we have one fix up which is when using Snap with Nextcloud on Ubuntu 22.04, the apps are installed into extra-apps, so we have a fix for that , it should also work for *custom-apps* but we have not been able to verify on a platform that uses custom-apps***, so please check.
Hello @bluestar800 , so we have one fix up which is when using Snap with Nextcloud on Ubuntu 22.04, the apps are installed into extra-apps, so we have a fix for that , it should also work for *custom-apps but we have not been able to verify on a platform that uses custom-apps, so please check.
I got it and updated to 9.18.8 but the issues persist. The issues just like this :
There is some error in browser console,like this: XHRPOST https://abc.com/apps/cadviewer/converter/php/call-Api_Conversion.php [HTTP/2 404 116ms] GET https://abc.com/apps/cadviewer//assets/app//images/cvjsToolbar_dra_pageChange_11B.png [HTTP/2 404 115ms] Uncaught (in promise) Error: Your focus-trap must have at least one container with at least one tabbable node in it at all times XHRPOST https://abc.com/apps/cadviewer/converter/php/load-file.php [HTTP/2 404 65ms] Content-Security-Policy:页面设置阻止读取位于 eval 的一项资源("script-src")。 2 cadviewer_9.17.2.min.js:2:1558
The url is incorrect https://abc.com/apps/cadviewer//assets/app//images/cvjsToolbar_dra_pageChange_11B.png It maybe: https://abc.com/apps/cadviewer/assets/app/images/cvjsToolbar_dra_pageChange_11B.png
Nextcloud on debian 11 by php8.2 nginx and mariadb
When I continue to install V9.19.6 in the custom_apps folder, the browser console shows that the called cadviewer is still in the apps folder.
I tried installing to apps folder , but I still get the error. (The customs_apps folder still exists and is used by others)(RewriteCond %{REQUEST_FILENAME} !/**custom_apps**/cadviewer/converter/php/*\.*
changed to RewriteCond %{REQUEST_FILENAME} !/**apps**/cadviewer/converter/php/*\.*
)
The console shows :
cadviewer_9.19.6.min.js:2 POST https://abc.com/apps/cadviewer/converter/php/call-Api_Conversion.php 404
cadviewer_9.19.6.min.js:2 POST https://abc.com/apps/cadviewer/converter/php/load-file.php 404
focus-trap.esm.js:482 Uncaught (in promise) Error: Your focus-trap must have at least one container with at least one tabbable node in it at all times at h (focus-trap.esm.js:482:15) at Object.activate (index.js:45:15) at NcModal.js:2:170598 at d (NcModal.js:2:159742) at Generator.<anonymous> (NcModal.js:2:161079) at Generator.next (NcModal.js:2:160105) at A (NcModal.js:2:165730) at r (NcModal.js:2:170752)
In nextcloud logs:
Undefined array key "parameters" at /var/www/nextcloud/apps/cadviewer/lib/Controller/CadviewerController.php#302
Undefined array key "lineWeightFactor" at /var/www/nextcloud/apps/cadviewer/lib/Controller/CadviewerController.php#276
What should I do?
Hello @bluestar800 , with the latest version 9.47.1, we have added code to check the .httacess and update the rewrite conditions, and if there is insufficient permissions, we now provide an error message in the admin console with instructions.
nextcloud:27.0.2 OS:OMV 6.0(debian 11) nextcloud is installed in host The nextcloud root folder is "nextcloud" cadviewer folder :nextcloud/custom_apps/cadviewer
I also follow the instructions in the doc to set permissions on the right file and folder, even try 777 permission Put
RewriteCond %{REQUEST_FILENAME} !/**custom_**apps/cadviewer/converter/php/*\.*
in .htaccess Change the nextcloud config in nginxlocation /**custom_**apps/cadviewer/converter/php/ { location ~ \.php$ { fastcgi_split_path_info ^(.+?\.php)(/.*)$; set $path_info $fastcgi_path_info; try_files $fastcgi_script_name =404; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $path_info; fastcgi_param HTTPS on; fastcgi_param modHeadersAvailable true; fastcgi_param front_controller_active true; fastcgi_pass php-handler; #unix:/run/php/php8.2-fpm.sock; fastcgi_intercept_errors on; fastcgi_request_buffering off; fastcgi_max_temp_file_size 0; } try_files $uri $uri/ =403; }
In nextcloud there are some errorsfile_get_contents(/nextcloud/custom_apps/cadviewer/converter//converter/converters/ax2024/linux/ax_unmapped_fonts.txt): Failed to open stream: No such file or directory at /nextcloud/custom_apps/cadviewer/lib/Controller/SettingsController.php#275
file_get_contents(/nextcloud/custom_apps/cadviewer/converter//converter/converters/ax2024/linux/ax_font_map.txt): Failed to open stream: No such file or directory at /nextcloud/custom_apps/cadviewer/lib/Controller/SettingsController.php#269
Open the dwg and the nextcloud log
Undefined array key "parameters" at /nextcloud/custom_apps/cadviewer/lib/Controller/CadviewerController.php#302
Undefined array key "lineWeightFactor" at /nextcloud/custom_apps/cadviewer/lib/Controller/CadviewerController.php#276
What should I do?