After we fixed the unsupported declare ‘strict_types’ error we ran into another error while running the Magento data migration tool. It had to do with the allow_url_fopen.

The following error is what we received after running the below commands:
composer config repositories.magento composer https://repo.magento.com
composer require magento/data-migration-tool:

We received the error:
The “https://repo.magento.com/packages.json” file could not be downloaded: allow_url_fopen must be enabled in php.ini (https:// wrapper is disabled in the server configuration by allow_url_fopen=0
failed to open stream: no suitable wrapper could be found)
https://repo.magento.com could not
[Composer\Downloader\TransportException] The “https://repo.packagist.org/packages.json” file could not be downloaded
: allow_url_fopen must be enabled in php.ini (https:// wrapper is disabled
in the server configuration by allow_url_fopen=0
failed to open stream: no suitable wrapper could be found)

To fix the issue we go to your MultiPHP INI Editor and select the PHP version you are using (PHP 7.2). For the PHP directive allow_url_fopen, change the setting to enabled. This should resolve your error message while running the Magento data migration tool.

Next, you might want to check about your memory size and make sure it’s compatible with Magento 2.

Elyssa McGregor

Hi! I'm Elyssa McGregor. I love helping people succeed online and promoting businesses with our wide range of promotional products. I have a love for search engine optimization (SEO) and getting companies out there on the world wide web. How can I help you?

View all posts

Add comment

Your email address will not be published. Required fields are marked *