WordPress Admin Ajax 400 Bad Request

I have looked through what seems like hundreds of these similar issues and can’t seem to nail my problem down. Keep getting a 400 error. I know the URL is correct, so it is probably something very small. wp_enqueue_script(‘theme-scripts’, get_theme_file_uri(‘dist/js/app.min.js’), [‘jquery’], filemtime(get_template_directory() . ‘/dist/js/app.min.js’), true); wp_localize_script( ‘theme-scripts’, ‘rp_get_form’, [ “ajax_url” => admin_url(‘admin-ajax.php’) ]); add_action( ‘wp_ajax_gf_fields_ajax’,…

Magento 2 Custom UI grid form.php validate upload file extension

I want to check the upload file extension in form.php, I have three upload file options I want to check the upload file is pdf or not. Thanks in advance. my form.php file is namespace Vendor\Extension\Block\Adminhtml\Blog\Edit; use Magento\Backend\Block\Template\Context; use Magento\Framework\Registry; use Magento\Framework\Data\FormFactory; use Vendor\Extension\Block\Adminhtml\Status; class Form extends \Magento\Backend\Block\Widget\Form\Generic { protected $_systemStore; public function __construct( Context…

How to fix blog page issue in Magento 2?

1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element ‘container’, attribute ‘role’: The attribute ‘role’ is not allowed. Line: 112 Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element ‘container’, attribute ‘role’: The attribute ‘role’ is not allowed. Line: 112 #1 Magento\Framework\Config\Dom->__construct() called at [vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:116] #2 Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject() called at [vendor/magento/framework/ObjectManager/Factory/Compiled.php:108] #3 Magento\Framework\ObjectManager\Factory\Compiled->create() called at [vendor/magento/framework/ObjectManager/ObjectManager.php:56] #4 Magento\Framework\ObjectManager\ObjectManager->create() called at [vendor/magento/framework/Config/DomFactory.php:43] #5 Magento\Framework\Config\DomFactory->createDom() called…