Magento 2: show list of all customers in custom grid

I created modal window similar functionality of when click on Add related products on product edit page, now in the modal window I need a list of all customers in grid. Currently its showing Error: Fatal error: Uncaught Error: Call to a member function setPageSize() on null in /var/www/html/magento/vendor/magento/module-ui/DataProvider/AbstractDataProvider.php:220 Stack trace: #0 Here is my…

what is the best option for international phone validation like Google libphonenumber?

what is the best option for international phone validation like Google libphonenumber? how to use libphonenumber validtion in magento 2 with php code. The below extention is available for js validtion. we need to implement server- side validation for magento 2. I have found below reference. https://github.com/giggsey/libphonenumber-for-php https://github.com/MaxMage/international-telephone-input

Magento 2: show list of all customers in custom grid

I created modal window similar functionality of when click on Add related products on product edit page, now in the modal window I need a list of all customers in grid. Currently its showing Error: Fatal error: Uncaught Error: Call to a member function setPageSize() on null in /var/www/html/magento/vendor/magento/module-ui/DataProvider/AbstractDataProvider.php:220 Stack trace: #0 Here is my…

Custom Module Controller: Invalid security or form key. Please refresh the page

I have a custom module with an admin controller, but when I try to access from the administration page I get the following error: My controller is in Controller/Adminhtml/Login/Index.php class Index extends \Magento\Backend\App\Action {…} and the route decalaration in etc/adminhtml/routes.xml <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:App/etc/routes.xsd”> <router id=”admin”> <route id=”oct” frontName=”oct”> <module name=”Oct_Oct” before=”Magento_Backend” /> </route>…