Platform: Cannot read property 'split' of undefined
Summary of issue
Cannot display permissions tab in Admin/ backend for a User Role
Steps to reproduce
- Select A User or User Role
- Select the permissions tab
app.js:1312 [Vue warn]: Error in render: “TypeError: Cannot read property ‘split’ of undefined”
found in
—> <AsgardPermissions> at Modules/User/Assets/js/components/AsgardPermissions.vue <ElTabPane> <ElTabs> <ElForm> <RoleForm> at Modules/User/Assets/js/components/RoleForm.vue <Root> warn @ app.js:1312 logError @ app.js:2445 globalHandleError @ app.js:2440 handleError @ app.js:2429 Vue._render @ app.js:5208 updateComponent @ app.js:3497 get @ app.js:3847 run @ app.js:3924 flushSchedulerQueue @ app.js:3686 (anonymous) @ app.js:2545 flushCallbacks @ app.js:2466 Promise.then (async) microTimerFunc @ app.js:2514 nextTick @ app.js:2558 queueWatcher @ app.js:3773 update @ app.js:3914 notify @ app.js:1418 reactiveSetter @ app.js:1743 proxySetter @ app.js:4005 (anonymous) @ app.js:112509 Promise.then (async) fetchPermissions @ app.js:112507 boundFn @ app.js:925 mounted @ app.js:112521 callHook @ app.js:3627 insert @ app.js:4822 invokeInsertHook @ app.js:6596 patch @ app.js:6815 Vue._update @ app.js:3369 updateComponent @ app.js:3497 get @ app.js:3847 Watcher @ app.js:3836 mountComponent @ app.js:3504 Vue$3.$mount @ app.js:9161 Vue$3.$mount @ app.js:11522 Vue._init @ app.js:5302 Vue$3 @ app.js:5391 (anonymous) @ app.js:49652 webpack_require @ app.js:20 (anonymous) @ app.js:49552 webpack_require @ app.js:20 (anonymous) @ app.js:63 (anonymous) @ app.js:66 app.js:2449 TypeError: Cannot read property ‘split’ of undefined at VueComponent.trans (app.js:115822) at VueComponent.boundFn [as trans] (app.js:924) at VueComponent.parseTranslation (app.js:112485) at Proxy.boundFn (app.js:924) at app.js:112770 at Proxy.renderList (app.js:4404) at app.js:112750 at Proxy.renderList (app.js:4416) at app.js:112655 at Proxy.renderList (app.js:4416) logError @ app.js:2449 globalHandleError @ app.js:2440 handleError @ app.js:2429 Vue._render @ app.js:5208 updateComponent @ app.js:3497 get @ app.js:3847 run @ app.js:3924 flushSchedulerQueue @ app.js:3686 (anonymous) @ app.js:2545 flushCallbacks @ app.js:2466 Promise.then (async) microTimerFunc @ app.js:2514 nextTick @ app.js:2558 queueWatcher @ app.js:3773 update @ app.js:3914 notify @ app.js:1418 reactiveSetter @ app.js:1743 proxySetter @ app.js:4005 (anonymous) @ app.js:112509 Promise.then (async) fetchPermissions @ app.js:112507 boundFn @ app.js:925 mounted @ app.js:112521 callHook @ app.js:3627 insert @ app.js:4822 invokeInsertHook @ app.js:6596 patch @ app.js:6815 Vue._update @ app.js:3369 updateComponent @ app.js:3497 get @ app.js:3847 Watcher @ app.js:3836 mountComponent @ app.js:3504 Vue$3.$mount @ app.js:9161 Vue$3.$mount @ app.js:11522 Vue._init @ app.js:5302 Vue$3 @ app.js:5391 (anonymous) @ app.js:49652 webpack_require @ app.js:20 (anonymous) @ app.js:49552 webpack_require @ app.js:20 (anonymous) @ app.js:63 (anonymous) @ app.js:66
System Details
- Operating System - Linux
- PHP Version - 7.0.32
- Laravel Version - 5.5.43
Asgardcms/Platform
version - 3.x
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 18 (8 by maintainers)
Apparently something was being passed as “undefined” in the code I mentioned. I just hacked it and it was resolved. You guys need to update it I guess.
What did you hack?