When displaying the edit screen for an article using a post type created with “Custom Post Type UI” and clicking the “Sidebar” menu displayed on the right, the following error message appears and editing becomes impossible. Please tell me how to resolve this issue.
“An unexpected error occurred in the editor.”
TypeError: Cannot read properties of undefined (reading ‘advanced-sidebar-menu/link-title’) at b (https://preview-support.logiless.com/wp-content/plugins/advanced-sidebar-menu-pro/js/dist/advanced-sidebar-menu-pro-block-editor.min.js?ver=9.5.7:2:2754) at d (https://preview-support.logiless.com/wp-content/plugins/advanced-sidebar-menu-pro/js/dist/advanced-sidebar-menu-pro-block-editor.min.js?ver=9.5.7:2:32094) at wt (https://preview-support.logiless.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:47637) at js (https://preview-support.logiless.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:120584) at wl (https://preview-support.logiless.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:88659) at bl (https://preview-support.logiless.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:88587) at yl (https://preview-support.logiless.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:88450) at il (https://preview-support.logiless.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:85274) at fl (https://preview-support.logiless.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:85661) at Nn (https://preview-support.logiless.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:32474)
- WordPress Version: 6.5.5
- plugin version: 9.5.7
OnPoint Plugins
Hi Masakazu,
I followed the provided link and login and receive the following message:
Please update the provided test user to access the item so I can see what is happening.
In the meantime, I will try to recreate the issue in a test environment.
Thank you.
OnPoint Plugins
Hi Masakazu,
I was able to recreate the issue on a test site. I’m working on a solution and will let you know what I come up with.
OnPoint Plugins
Hi Masakazu,
I tracked the issue down to custom post types which do not support “Custom Fields”.
It turns out that if a post type does not support Custom Fields then post meta is not available in the REST API which is required to save the settings from the block editor.
To resolve this issue on your site:
The next version of the Advanced Sidebar Menu PRO plugin will automatically exclude the “Advanced Sidebar” panel from the block editor on post types which do not support Custom Fields.
Have a great weekend!
Masakazu Matsubara
Sorry for the test user permission error.
Thanks for looking for a solution to the problem!
I was able to solve the problem by enabling custom fields!