• 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

Upgrade error: fullname.substr is not a function

Scheduled Pinned Locked Moved Technical Support
4 Posts 2 Posters 457 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.
  • E Offline
    E Offline
    eesty
    wrote on last edited by
    #1

    Hi,

    I've been trying to run an upgrade from 1.14.3 to 1.16.1 however the upgrade is failing at the "Create fullname search set" stage.

    The error reads:

    → [2020/9/11] Create fullname search set...
        [##           ] (1000/4613) 21% Error occurred
    Error occurred during upgrade: TypeError: u.fullname.substr is not a function
        at userData.filter.map.u (/home/wtf/NodeBB/src/upgrades/1.15.0/fullname_search_set.js:19:49)
        at Array.map (<anonymous>)
        at batch.processSortedSet.batch (/home/wtf/NodeBB/src/upgrades/1.15.0/fullname_search_set.js:19:6)
        at process._tickCallback (internal/process/next_tick.js:68:7)
    2021-01-17T14:26:01.301Z [4567/27161] - error: uncaughtException: u.fullname.substr is not a function
    TypeError: u.fullname.substr is not a function
        at userData.filter.map.u (/home/wtf/NodeBB/src/upgrades/1.15.0/fullname_search_set.js:19:49)
        at Array.map (<anonymous>)
        at batch.processSortedSet.batch (/home/wtf/NodeBB/src/upgrades/1.15.0/fullname_search_set.js:19:6)
        at process._tickCallback (internal/process/next_tick.js:68:7) {"error":{},"stack":"TypeError: u.fullname.substr is not a function\n    at userData.filter.map.u (/home/wtf/NodeBB/src/upgrades/1.15.0/fullname_search_set.js:19:49)\n    at Array.map (<anonymous>)\n    at batch.processSortedSet.batch (/home/wtf/NodeBB/src/upgrades/1.15.0/fullname_search_set.js:19:6)\n    at process._tickCallback (internal/process/next_tick.js:68:7)","exception":true,"date":"Mon Jan 18 2021 01:26:01 GMT+1100 (Australian Eastern Daylight Time)","process":{"pid":27161,"uid":0,"gid":0,"cwd":"/home/wtf/NodeBB","execPath":"/root/.nvm/versions/node/v10.15.3/bin/node","version":"v10.15.3","argv":["/root/.nvm/versions/node/v10.15.3/bin/node","/home/wtf/NodeBB/nodebb","upgrade"],"memoryUsage":{"rss":139489280,"heapTotal":113721344,"heapUsed":78097440,"external":22051721}},"os":{"loadavg":[2.603515625,2.49853515625,3.0625],"uptime":93440},"trace":[{"column":49,"file":"/home/wtf/NodeBB/src/upgrades/1.15.0/fullname_search_set.js","function":"userData.filter.map.u","line":19,"method":"u","native":false},{"column":null,"file":null,"function":"Array.map","line":null,"method":"map","native":false},{"column":6,"file":"/home/wtf/NodeBB/src/upgrades/1.15.0/fullname_search_set.js","function":"batch.processSortedSet.batch","line":19,"method":"batch","native":false},{"column":7,"file":"internal/process/next_tick.js","function":"process._tickCallback","line":68,"method":"_tickCallback","native":false}]}
    

    The error suggests to me that there is an issue with someone's full name.

    Some background info: my forum was originally a phpbb forum, which migrated to Discourse then finally to NodeBB. It's possible that a legacy username is invalid.

    barisB 1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    replied to eesty on last edited by
    #2

    @eesty thanks for reporting, I'll take a look.

    1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    wrote on last edited by
    #3

    Let me know if it works after applying this change.
    https://github.com/NodeBB/NodeBB/commit/4fb907875e31501a28427c7ec1e41b4862649e35

    1 Reply Last reply
    0
  • E Offline
    E Offline
    eesty
    wrote on last edited by
    #4

    success!
    thanks 🙂

    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