warning in log x from '\' is deprecated

Technical Support
  • 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.comšŸ˜ž

    access-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;
            }
    
  • Is it Persona or a fork of Persona? Maybe you need to pull latest Persona in šŸ˜•

  • @julian said in warning in log x from '\' is deprecated:

    Is it Persona or a fork of Persona? Maybe you need to pull latest Persona in šŸ˜•

    It is just regular old Persona.

    nodebb-theme-persona
    Persona theme for NodeBB
    
    Installed 4.2.6 | Latest 4.2.6
    
  • Has anyone else seen this error?

    Any other info I can provide @julian to narrow this down?

  • @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.

  • @PitaJ

    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.

  • @PitaJ My Lavender is 3.0.15 yet my ACP does not show an update for it:

    0_1490633302061_upload-dda7c60b-03f9-4de4-b595-46d8571d223c

  • @rod what version of NodeBB are you on? [email protected] is compatible with NodeBB 1.4.4+

  • @PitaJ v1.4.4

    0_1490633559949_upload-031effbd-bc0a-4b32-8061-181db8d412f8


Suggested Topics


  • Update to v.1.18.5 don't work

    Solved Technical Support
    0 Votes
    11 Posts
    852 Views
  • 1 Votes
    17 Posts
    1125 Views
  • 0 Votes
    1 Posts
    130 Views
  • Can't find SSO settings

    Technical Support
    0 Votes
    2 Posts
    514 Views
  • 0 Votes
    1 Posts
    640 Views