• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

New public file location errors & upload error

Scheduled Pinned Locked Moved Technical Support
8 Posts 3 Posters 2.4k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • GiggiuxG Offline
    GiggiuxG Offline
    Giggiux
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
  • teh_gT Offline
    teh_gT Offline
    teh_g
    wrote on last edited by
    #2

    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).

    GiggiuxG 1 Reply Last reply
    0
  • GiggiuxG Offline
    GiggiuxG Offline
    Giggiux
    replied to teh_g on last edited by
    #3

    @teh_g "pdf" 😂

    teh_gT 1 Reply Last reply
    0
  • teh_gT Offline
    teh_gT Offline
    teh_g
    replied to Giggiux on last edited by
    #4

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

    1 Reply Last reply
    0
  • GiggiuxG Offline
    GiggiuxG Offline
    Giggiux
    wrote on last edited by
    #5

    @julian can you help me?

    julianJ 1 Reply Last reply
    0
  • julianJ Offline
    julianJ Offline
    julian GNU/Linux
    replied to Giggiux on last edited by
    #6

    @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)

    GiggiuxG 1 Reply Last reply
    0
  • GiggiuxG Offline
    GiggiuxG Offline
    Giggiux
    replied to julian on last edited by
    #7

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

    1 Reply Last reply
    0
  • julianJ Offline
    julianJ Offline
    julian GNU/Linux
    wrote on last edited by
    #8

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

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development