The TypeError: this.each when wp.media.open() after using popper.js for bootstrap 4

I have fixed the problem through correction of the jQuery code. This is an example jQuery( document ).ready(function($) { // Instantiates the variable that holds the media library frame. var file_frame, meta_image_preview, meta_image; $(‘.image-upload’).on(‘click’, function( event ){ meta_image_preview = $(this).parent().parent().children(‘.image-preview’); meta_image = $(this).parent().children(‘.meta-image’); event.preventDefault(); // If the media frame already exists, reopen it. if ( … Read more

style.min.css code issue

You can tell by the ID on the <link href=”https://wordpress.stackexchange.com/questions/287569/… tag that the stylesheet”s ID is mesmerize-style, so you should be able to dequeue with this function in your child theme. wp_dequeue_style( ‘mesmerize-style’ ); Make sure it’s hooked into wp_enqueue_scripts with a higher priority than the parent theme’s hook (probably 10). That’s the general answer … Read more

Unable to properly load WordPress Admin page

Looks like theme problems to me. I’d change it back to one of the ‘Twenty’ themes as a first step. If OK, then start diagnosing the theme. (You could reinstall the theme manually which might protect settings, or FTP the theme files manually. Or just remove the theme and reinstall, but you might have to … Read more

How do I create a state of “don’t assign anything to variable” if WP_Error throws an error?

Looks like the line giving you the error is rather this one $data = json_decode( $this->get_json(), true); Like this (untested) it should work: private function get_data() { /** * Ingests the data from get_json() then converts / decodes into an array. */ $json = $this->get_json(); if (is_wp_error($json)) { return new WP_Error( ‘invalid-data’, esc_html__( ‘Something is … Read more