Docker: How to install PHP 7.4 extension ext-http?

I would like to install ext-http extension because I have this error when I execute composer install command in my php-apache container : The requested PHP extension ext-http * is missing from your system. Install or enable PHP’s http extension. My Dockerfile: ARG PHP_VERSION=”” FROM php:${PHP_VERSION}-apache ENV COMPOSER_ALLOW_SUPERUSER=1 EXPOSE 80 WORKDIR /${PROJECT_DIRECTORY} # git, unzip…

Details

I am trying to fetch data from Api with react, one api depends on “id” the second’s one,

here is my code, first fetch return good data but second fetch brings only promise const data = await axios.get( `${API_URL}/${id}` ); return data.data; }; const fetchData = async () => { setLoading(true); const res = await axios.get(“${API_URL}”); setData( res.data.map(el => { const fromApi = fetchIncomes(el.id); return { …el, …fromApi }; }) ) setLoading(false); };

Details

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…

Details