New public file location errors & upload error

Technical Support
  • Hi guys,

    I'm having a lot of those errors in the log,

    Apr 28 23:50:51 nodebb[14916]: 28/4 23:50:51 [14935] - warn: [deprecated] Accessing `js-enabled.css` from `/` is deprecated. Use `/assets/js-enabled.css` to access this file.
    Apr 28 23:50:51 nodebb[14916]: 28/4 23:50:51 [14935] - warn: [deprecated] Accessing language files from `/api/language` is deprecated. Use `/assets/language/en-GB/language.json` for prefetch paths.
    Apr 28 23:50:52 vps301299 nodebb[14916]: 28/4 23:50:52 [14935] - warn: [deprecated] Accessing language files from `/api/language` is deprecated. Use `/assets/language/en-GB/modules.json` for prefetch paths.
    Apr 28 23:50:52 nodebb[14916]: 28/4 23:50:52 [14935] - warn: [deprecated] Accessing `src/modules/composer/preview.js` from `/` is deprecated. Use `/assets/src/modules/composer/preview.js` to access this file.
    Apr 28 23:50:52 nodebb[14916]: 28/4 23:50:52 [14935] - warn: [deprecated] Accessing `src/modules/composer/controls.js` from `/` is deprecated. Use `/assets/src/modules/composer/controls.js` to access this file.
    Apr 28 23:50:52 nodebb[14916]: 28/4 23:50:52 [14935] - warn: [deprecated] Accessing `src/client/chats/search.js` from `/` is deprecated. Use `/assets/src/client/chats/search.js` to access this file.
    Apr 28 23:50:53 nodebb[14916]: 28/4 23:50:53 [14935] - warn: [deprecated] Accessing `src/modules/buzz.js` from `/` is deprecated. Use `/assets/src/modules/buzz.js` to access this file.
    Apr 28 23:50:53 nodebb[14916]: 28/4 23:50:53 [14935] - warn: [deprecated] Accessing `src/client/chats/recent.js` from `/` is deprecated. Use `/assets/src/client/chats/recent.js` to access this file.
    Apr 28 23:50:53 nodebb[14916]: 28/4 23:50:53 [14935] - warn: [deprecated] Accessing `src/client/chats/messages.js` from `/` is deprecated. Use `/assets/src/client/chats/messages.js` to access this file.
    Apr 28 23:50:53 nodebb[14916]: 28/4 23:50:53 [14935] - warn: [deprecated] Accessing `src/modules/composer/formatting.js` from `/` is deprecated. Use `/assets/src/modules/composer/formatting.js` to access this file.
    Apr 28 23:50:53 nodebb[14916]: 28/4 23:50:53 [14935] - warn: [deprecated] Accessing `src/modules/mousetrap.js` from `/` is deprecated. Use `/assets/src/modules/mousetrap.js` to access this file.
    Apr 28 23:50:53 nodebb[14916]: 28/4 23:50:53 [14935] - warn: [deprecated] Accessing language files from `/api/language` is deprecated. Use `/assets/language/en-GB/global.json` for prefetch paths.
    Apr 29 00:42:32 nodebb[14916]: 29/4 00:42:32 [14935] - warn: [deprecated] Accessing `src/modules/composer.js` from `/` is deprecated. Use `/assets/src/modules/composer.js` to access this file.
    

    are these because of plugins or can I fix them? And shouldn't I be serving those files with Nginx, why there are logs in node? 😛

    Also I'm getting an upload error: I set up that users can upload only files with extension .pdf, but whenever they (or I) upload one of those, it gets the same error (Invalid file type. Allowed types are: .pdf) and there is nothing in the logs... Can you help me?

  • What is listed under Settings -> Uploads for allowed extensions?

    The warnings are just warnings. Nothing to be worried about yet. Some stuff still needs to get migrated to the new folders, but nothing will be broken (yet).

  • @teh_g "pdf" 😂

  • @Giggiux I wasn't sure if you put like ".pdf" and it was getting confused about the period. I am not sure why it would error out then.

  • @julian can you help me?

  • @Giggiux Are you using a custom theme? Those errors look like warnings due to the changed path (as assets are now built instead of referenced from the public directory)

  • @julian No, I'm using the Persona.
    Can you help me with the upload stuff, too?

  • Then in that case, I would check to make sure the version of Persona you have installed matches the version defined in package.json.


Suggested Topics