I am getting an error that is preventing me from editing menus
It is a JavaScript Error
Uncaught TypeError: Cannot read property ‘id’ of undefinedload-scripts.php?c=1&load[]=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check,jquery…:333 (anonymous function)load-scripts.php?c=1&load[]=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check,jquery…:333 (anonymous function)
It only occurs when enfold is activated.
The variable that is being evaluated is wp.media.view.settings.post.id. I would really love to get this figured out
You can see this on the Menu Admin screen. Just check the JavaScript console.
Hey!
Try adding this line to your wp-config.php file:
define('CONCATENATE_SCRIPTS', false );
Also, you forgot the link to your site.
Regards,
Josue
oh yeah I did :-(
https://www.geistinteractive.com
So I added that to the top of wp-cofig.php. And now I can edit the menus. But the same wp.media.view.settings.post.id Error is still there.
You can now see that the error is in media-audiovideo.min.js:1
Uncaught TypeError: Cannot read property ‘id’ of undefined
That is not a theme file
What else can we do?
Thanks
Todd
Hello,
Have you tried disabling all third-party plugins to see if it gets fixed?
Regards,
Josue
no, but it only happens with enfold. If I switch to another theme. The error goes away.
Todd
It may be a plugin-theme issue then, please try disabling all third-party plugins temporarily and check what happens. Also, is this error preventing you from doing something in the Dashboard?
Regards,
Josue