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

stray / in index.php and js/functions.php #1408

Closed
colmconn opened this issue Jun 9, 2020 · 3 comments
Closed

stray / in index.php and js/functions.php #1408

colmconn opened this issue Jun 9, 2020 · 3 comments

Comments

@colmconn
Copy link

colmconn commented Jun 9, 2020

Organizr Version: V 2.0.570
Branch: v2-master
WebServer: Nginx/Apache
Operating System: FreeBSD(freeNAS jail)

Problem Description:

I have Orgainzr installed on https://dashboard.home.lan/OrganizrV2 rather than the server root. I noticed some errors in error.log about missing files. This turned out to be due to two stray /, one in each of index.php and js/functions.php. The attached patch fixes both issues.

--- index.php.orig      2020-06-09 10:38:41.068768235 -0400
+++ index.php   2020-05-21 12:36:22.206926797 -0400
@@ -287,7 +287,7 @@
 <script src="plugins/bower_components/mousetrap/mousetrap.min.js"></script>
 <script src="plugins/bower_components/bootstrap-treeview-master/dist/bootstrap-treeview.min.js"></script>
 <script src="plugins/bower_components/jquery.easy-pie-chart/dist/jquery.easypiechart.min.js"></script>
-<script src="/js/gauge.min.js"></script>
+<script src="js/gauge.min.js"></script>
 <script src="js/jquery.mousewheel.min.js"></script>
 <script src="js/ua-parser.min.js"></script>
 <script src="js/plyr.js"></script>
--- js/functions.js.orig        2020-06-09 10:38:49.508565422 -0400
+++ js/functions.js     2020-05-22 11:02:02.636459015 -0400
@@ -3731,7 +3731,7 @@
 }
 function allIcons() {
     return $.ajax({
-        url: "/js/icons.json",
+        url: "js/icons.json",
     });
 }
 function organizrConnect(path){


Reproduction Steps:

Errors on screen? If so paste here:


@causefx
Copy link
Owner

causefx commented Jun 9, 2020

good catch, thanks!

@colmconn
Copy link
Author

colmconn commented Jun 9, 2020

I'm also getting the following errors, can they be safely ignored or are the indicative of other issues in need of fixing?

2020/05/29 16:16:03 [error] 28713#102103: *40574 open() "/usr/local/www/OrganizrV2/js/plyr.js.map" failed (2: No such file or directory), client: 192.168.1.51, server: dashboard.home.lan, request: "GET /Organizr/js/plyr.js.map HTTP/1.1", host: "dashboard.home.lan" 2020/05/29 16:16:03 [error] 28714#102515: *40573 open() "/usr/local/www/OrganizrV2/js/tinycolor.min.map" failed (2: No such file or directory), client: 192.168.1.51, server: dashboard.home.lan, request: "GET /Organizr/js/tinycolor.min.map HTTP/1.1", host: "dashboard.home.lan" 2020/05/29 16:16:15 [error] 28708#103186: *40569 open() "/usr/local/www/OrganizrV2/css/icons/material-design-iconic-font/scss/_path.scss" failed (2: No such file or directory), client: 192.168.1.51, server: dashboard.home.lan, request: "GET /Organizr/css/icons/material-design-iconic-font/scss/_path.scss HTTP/1.1", host: "dashboard.home.lan" 2020/05/29 16:16:15 [error] 28708#103186: *40569 open() "/usr/local/www/OrganizrV2/css/icons/material-design-iconic-font/scss/_core.scss" failed (2: No such file or directory), client: 192.168.1.51, server: dashboard.home.lan, request: "GET /Organizr/css/icons/material-design-iconic-font/scss/_core.scss HTTP/1.1", host: "dashboard.home.lan" 2020/05/29 16:16:15 [error] 28708#103186: *40569 open() "/usr/local/www/OrganizrV2/css/icons/material-design-iconic-font/scss/_icons.scss" failed (2: No such file or directory), client: 192.168.1.51, server: dashboard.home.lan, request: "GET /Organizr/css/icons/material-design-iconic-font/scss/_icons.scss HTTP/1.1", host: "dashboard.home.lan" 2020/05/29 16:16:15 [error] 28708#103186: *40569 open() "/usr/local/www/OrganizrV2/css/icons/material-design-iconic-font/scss/_extras.scss" failed (2: No such file or directory), client: 192.168.1.51, server: dashboard.home.lan, request: "GET /Organizr/css/icons/material-design-iconic-font/scss/_extras.scss HTTP/1.1", host: "dashboard.home.lan" 2020/06/09 11:30:06 [error] 61102#102111: *5743 open() "/usr/local/www/OrganizrV2/js/tinycolor.min.map" failed (2: No such file or directory), client: 192.168.1.51, server: dashboard.home.lan, request: "GET /Organizr/js/tinycolor.min.map HTTP/1.1", host: "dashboard.home.lan" 2020/06/09 11:30:06 [error] 61102#102111: *5743 open() "/usr/local/www/OrganizrV2/js/plyr.js.map" failed (2: No such file or directory), client: 192.168.1.51, server: dashboard.home.lan, request: "GET /Organizr/js/plyr.js.map HTTP/1.1", host: "dashboard.home.lan" 2020/06/09 11:33:00 [error] 62542#103284: *6 open() "/usr/local/www/OrganizrV2/js/tinycolor.min.map" failed (2: No such file or directory), client: 192.168.1.51, server: dashboard.home.lan, request: "GET /Organizr/js/tinycolor.min.map HTTP/1.1", host: "dashboard.home.lan" 2020/06/09 11:33:00 [error] 62542#103284: *6 open() "/usr/local/www/OrganizrV2/js/plyr.js.map" failed (2: No such file or directory), client: 192.168.1.51, server: dashboard.home.lan, request: "GET /Organizr/js/plyr.js.map HTTP/1.1", host: "dashboard.home.lan"

@causefx
Copy link
Owner

causefx commented Jun 9, 2020

yea they can be

@causefx causefx closed this as completed Jun 9, 2020
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