Good evening,
I have an issue where my project fails to upload anything from file uploads. Like anything, no matter whether it's just a direct upload to the server or more complex file upload. I'm keep getting the same error:
{
"status": "500",
"message": "Cannot read properties of undefined (reading 'replace')",
"stack": "TypeError: Cannot read properties of undefined (reading 'replace')\n at Object.errorMessage (/opt/node_app/lib/validator/index.js:108:24)\n at Object.validateField (/opt/node_app/lib/validator/index.js:86:45)\n at async Object.validateFields (/opt/node_app/lib/validator/index.js:58:17)\n at async Object.init (/opt/node_app/lib/validator/index.js:11:13)\n at async App.define (/opt/node_app/lib/core/app.js:538:13)"
}
No matter what I do, changing channels, forcefully updating the project files, updating and cleaning node packages, nothing helps, I have even tried replacing validator file, without any luck. This is definitely due to corrupted project files. Some other things aren't working within the project, like automatic app connect component route placements within the layout head code, i have to do some of them manually, I can't query in database query builder, or on success action doesn't work on some forms.
These problems aren't present in other projects, so it's most likely corrupted files within the project itself. I'm wondering whether there's any other way via GUI or manually changing/updating core files, or should I proceed and move api/public/views/.wappler, etc folders to newly created project?












