Error in dashboard
-
It’s a pity, it generates this kind of errors in the backend and broke some javascript functionality…
– Uncaught TypeError: Cannot set property ‘visibility’ of undefined
– TypeError: null is not an object (evaluating ‘e.style[a]=s[a]’)
I use Elegant Extra Theme with Divi Builder.
Why not disable the implementation of all you tags in the backend as the rich editor is only needed on the frontend ?edit :
solved by creating a mu-plugin with the followed code
$current_url = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] . ''; // listener for the thin load /* if ( is_admin() ) { add_filter( 'option_active_plugins', 'disable_these_plugins' ); } */ if(is_admin()) { global $pagenow; //echo $pagenow; if(strstr( $current_url, 'post.php' ) || strstr( $current_url, 'edit.php' ) || strstr( $current_url, 'post-new.php' )){ add_filter( 'option_active_plugins', 'disable_these_plugins' ); } } function disable_these_plugins( $plugins ) { $plugins_not_needed = array( 'rich-text-editor-field-for-contact-form-7/rich-text-editor-contact-form7.php' ); foreach ( $plugins_not_needed as $plugin ) { $key = array_search( $plugin, $plugins ); if ( false !== $key ) { unset( $plugins[ $key ] ); } } return $plugins; }
- The topic ‘Error in dashboard’ is closed to new replies.