warning in log x from '\' is deprecated
-
I made the changes in 1.4.5 for serving static assets, but am seeing some warning in the log that I assume are related.
23/3 12:19:26 [1467] - warn: [deprecated] Accessing `stylesheet.css` from `/` is deprecated. Use `/assets/stylesheet.css` to access this file. 23/3 12:54:52 [1467] - warn: [deprecated] Accessing `src/modules/composer.js` from `/` is deprecated. Use `/assets/src/modules/composer.js` to access this file. 23/3 13:51:13 [1467] - warn: [deprecated] Accessing `language/en_US/modules.json` from `/` is deprecated. Use `/assets/language/en_US/modules.json` to access this file. 23/3 13:51:14 [1467] - warn: [deprecated] Accessing `language/en_US/tags.json` from `/` is deprecated. Use `/assets/language/en_US/tags.json` to access this file. 23/3 13:51:14 [1467] - warn: [deprecated] Accessing `templates/composer.tpl` from `/` is deprecated. Use `/assets/templates/composer.tpl` to access this file. 23/3 13:51:15 [1467] - warn: [deprecated] Accessing `language/en_US/topic.json` from `/` is deprecated. Use `/assets/language/en_US/topic.json` to access this file. 23/3 13:51:15 [1467] - warn: [deprecated] Accessing `src/modules/composer/categoryList.js` from `/` is deprecated. Use `/assets/src/modules/composer/categoryList.js` to access this file. 23/3 13:51:16 [1467] - warn: [deprecated] Accessing `stylesheet.css` from `/` is deprecated. Use `/assets/stylesheet.css` to access this file. 23/3 13:51:16 [1467] - warn: [deprecated] Accessing `src/modules/composer/tags.js` from `/` is deprecated. Use `/assets/src/modules/composer/tags.js` to access this file. 23/3 13:51:17 [1467] - warn: [deprecated] Accessing `language/en_US/markdown.json` from `/` is deprecated. Use `/assets/language/en_US/markdown.json` to access this file. 23/3 13:51:17 [1467] - warn: [deprecated] Accessing `src/modules/composer/uploads.js` from `/` is deprecated. Use `/assets/src/modules/composer/uploads.js` to access this file. 23/3 13:51:18 [1467] - warn: [deprecated] Accessing `src/modules/composer/resize.js` from `/` is deprecated. Use `/assets/src/modules/composer/resize.js` to access this file. 23/3 13:51:18 [1467] - warn: [deprecated] Accessing `vendor/jquery/js/jquery-ui-1.10.4.custom.js` from `/` is deprecated. Use `/assets/vendor/jquery/js/jquery-ui-1.10.4.custom.js` to access this file. 23/3 13:51:22 [1467] - warn: [deprecated] Accessing `nodebb.min.js` from `/` is deprecated. Use `/assets/nodebb.min.js` to access this file. 23/3 13:51:32 [1467] - warn: [deprecated] Accessing `src/modules/scrollStop.js` from `/` is deprecated. Use `/assets/src/modules/scrollStop.js` to access this file. 23/3 13:51:33 [1467] - warn: [deprecated] Accessing `src/modules/mousetrap.js` from `/` is deprecated. Use `/assets/src/modules/mousetrap.js` to access this file. 23/3 13:51:34 [1467] - warn: [deprecated] Accessing `src/client/chats/search.js` from `/` is deprecated. Use `/assets/src/client/chats/search.js` to access this file. 23/3 13:52:27 [1467] - warn: [deprecated] Accessing `src/client/topic/votes.js` from `/` is deprecated. Use `/assets/src/client/topic/votes.js` to access this file. 23/3 18:49:35 [1467] - warn: [deprecated] Accessing `language/en_US/topic.json` from `/` is deprecated. Use `/assets/language/en_US/topic.json` to access this file. 23/3 18:49:35 [1467] - warn: [deprecated] Accessing `language/en_US/modules.json` from `/` is deprecated. Use `/assets/language/en_US/modules.json` to access this file. 23/3 18:49:35 [1467] - warn: [deprecated] Accessing `language/en_US/tags.json` from `/` is deprecated. Use `/assets/language/en_US/tags.json` to access this file. 23/3 18:49:36 [1467] - warn: [deprecated] Accessing `language/en_US/markdown.json` from `/` is deprecated. Use `/assets/language/en_US/markdown.json` to access this file. 23/3 20:18 [1467] - error: [plugins/twitch-monitor] Error has occurred, message: getaddrinfo ENOTFOUND api.twitch.tv api.twitch.tv:443 23/3 20:18:36 [1467] - warn: [deprecated] Accessing `src/modules/composer/uploads.js` from `/` is deprecated. Use `/assets/src/modules/composer/uploads.js` to access this file. 23/3 21:07 [1467] - error: [plugins/twitch-monitor] Error has occurred, message: getaddrinfo ENOTFOUND api.twitch.tv api.twitch.tv:443 23/3 21:17 [1467] - error: [plugins/twitch-monitor] Error has occurred, message: getaddrinfo ENOTFOUND api.twitch.tv api.twitch.tv:443 23/3 21:37:46 [1467] - warn: [deprecated] Accessing `language/en_US/modules.json` from `/` is deprecated. Use `/assets/language/en_US/modules.json` to access this file. 23/3 21:37:46 [1467] - warn: [deprecated] Accessing `vendor/jquery/js/jquery-ui-1.10.4.custom.js` from `/` is deprecated. Use `/assets/vendor/jquery/js/jquery-ui-1.10.4.custom.js` to access this file. 23/3 21:37:47 [1467] - warn: [deprecated] Accessing `src/modules/composer/autocomplete.js` from `/` is deprecated. Use `/assets/src/modules/composer/autocomplete.js` to access this file. 23/3 21:37:48 [1467] - warn: [deprecated] Accessing `src/modules/composer.js` from `/` is deprecated. Use `/assets/src/modules/composer.js` to access this file. 23/3 21:37:48 [1467] - warn: [deprecated] Accessing `language/en_US/markdown.json` from `/` is deprecated. Use `/assets/language/en_US/markdown.json` to access this file. 23/3 21:37:49 [1467] - warn: [deprecated] Accessing `src/modules/composer/resize.js` from `/` is deprecated. Use `/assets/src/modules/composer/resize.js` to access this file. 23/3 21:37:50 [1467] - warn: [deprecated] Accessing `language/en_US/tags.json` from `/` is deprecated. Use `/assets/language/en_US/tags.json` to access this file. 23/3 21:37:52 [1467] - warn: [deprecated] Accessing `language/en_US/topic.json` from `/` is deprecated. Use `/assets/language/en_US/topic.json` to access this file.
-
@teh_g can you inspect the response headers to see if
X-Powered-By: NodeBB
is there? If you made the changes to nginx, then those warnings should not be showing, unless the issue is that your theme uses the old paths. -
@PitaJ said in warning in log x from '\' is deprecated:
@teh_g can you inspect the response headers to see if
X-Powered-By: NodeBB
is there? If you made the changes to nginx, then those warnings should not be showing, unless the issue is that your theme uses the old paths.I see the
X-Powered-By: NodeBB
. Here is the response I get when going to my site (gamingexodus.comaccess-control-allow-origin:null cf-ray:344ade7fed9c7c28-LAX content-encoding:gzip content-security-policy:default-src 'self'; connect-src 'self' wss: https://api.github.com https://packages.nodebb.org https://bootswatch.com; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://iframely.gamingexodus.com https://storage.googleapis.com https://checkout.stripe.com https://s.imgur.com https://www.google.com https://www.gstatic.com; img-src 'self' data: https:; style-src 'self' 'unsafe-inline' https://maxcdn.bootstrapcdn.com https://fonts.googleapis.com; font-src 'self' https://maxcdn.bootstrapcdn.com https://fonts.gstatic.com; child-src https:; object-src 'none' content-type:text/html; charset=utf-8 date:Fri, 24 Mar 2017 16:04:57 GMT server:cloudflare-nginx status:200 strict-transport-security:max-age=15552000; includeSubDomains; preload vary:Accept-Encoding x-content-type-options:nosniff x-frame-options:SAMEORIGIN x-powered-by:NodeBB x-xss-protection:1; mode=block
I am using the Persona theme, so I'd imagine it is using the right paths
Here is my location blocks from my nginx config
location @nodebb { proxy_pass http://127.0.0.1:4567; } location ~ ^/assets/(.*) { root /var/www/nodebb/forums/; try_files /build/public/$1 /public/$1 @nodebb; } location /plugins/ { root /var/www/nodebb/forums/build/public/; try_files $uri @nodebb; } location / { proxy_pass http://127.0.0.1:4567; }
-
-
@teh_g is that log for a single request? If not, can you run
./nodebb dev
and make a single request? Can you reproduce anywhere else? Is this in a public facing website I can look at? Have you tried./nodebb build
? -
@PitaJ said in warning in log x from '\' is deprecated:
@teh_g is that log for a single request? If not, can you run
./nodebb dev
and make a single request? Can you reproduce anywhere else? Is this in a public facing website I can look at? Have you tried./nodebb build
?Unfortunately the log is just from my production instance at https://gamingexodus.com. I haven't narrowed down a specific request that causes the warnings.
I did a
./nodebb build
and am running in dev mode now. I did some basic clicking around, and I do not see anything coming up in the log yet. The warnings did not happen too often though, so I kind of expect it to not be on every click. -
I can't tell if my clicking did this, or if it was someone else on my site. I noticed this warning right after I clicked the https://gamingexodus.com/groups link:
27/3 12:33:03 [6371] - warn: [deprecated] Accessing `images/cover-default.png` from `/` is deprecated. Use `/assets/images/cover-default.png` to access this file.
-
With the
Lavender
theme I get these on my console:27/3 06:04:01 [26017] - warn: [deprecated] Accessing `stylesheet.css` from `/` is deprecated. Use `/assets/stylesheet.css` to access this file. 27/3 06:04:02 [26017] - warn: [deprecated] Accessing `nodebb.min.js` from `/` is deprecated. Use `/assets/nodebb.min.js` to access this file. 27/3 06:04:06 [26017] - warn: [deprecated] Accessing `src/client/chats/recent.js` from `/` is deprecated. Use `/assets/src/client/chats/recent.js` to access this file. 27/3 06:04:07 [26017] - warn: [deprecated] Accessing `src/client/chats/search.js` from `/` is deprecated. Use `/assets/src/client/chats/search.js` to access this file. 27/3 06:04:08 [26017] - warn: [deprecated] Accessing `src/client/chats/messages.js` from `/` is deprecated. Use `/assets/src/client/chats/messages.js` to access this file. 27/3 06:04:08 [26017] - warn: [deprecated] Accessing `src/modules/scrollStop.js` from `/` is deprecated. Use `/assets/src/modules/scrollStop.js` to access this file.
-
@rod what version lavender? Latest is 4.0.0.
-
@teh_g ok, can you check user profile pages as well? And upgrade script should have updated that.
Regardless, these deprecation warnings are for developers, and can be safely ignored until NodeBB v2.0.0, which is still far out.
-
@rod what version of NodeBB are you on? [email protected] is compatible with NodeBB 1.4.4+