简体   繁体   中英

Magento 2 Can't Install Sample Data

Magento 2 Sample Data suddenly stopped at this junction @ "Module'Magento_DownloadableSampleData':" during installation.

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 3449720 bytes) in C:\\wamp64\\www\\magento\\vendor\\magento\\module-downloadable-samp le-data\\Model\\Product\\Converter.php on line 103

Have tried every solution but doesn't work for me. But when I check memory limit with using php -r "echo ini_get('memory_limit').PHP_EOL; Discovered I have 128M. Off which have changed every files that have to do with memory_limit to 2048M.

I'm not really sure what I can do to alleviate this issue. Please someone help me

Here is the installation process:

Module 'Magento_Braintree': Module 'Magento_InstantPurchase': Module 'Magento_CatalogAnalytics': Module 'Magento_Inventory': Module 'Magento_InventoryAdminUi': Module 'Magento_InventoryApi': Module 'Magento_InventoryBundleProduct': Module 'Magento_InventoryBundleProductAdminUi': Module 'Magento_InventoryCatalog': Module 'Magento_InventorySales': Module 'Magento_InventoryCatalogAdminUi': Module 'Magento_InventoryCatalogApi': Module 'Magento_InventoryCatalogSearch': Module 'Magento_InventoryConfigurableProduct': Module 'Magento_InventoryConfigurableProductAdminUi': Module 'Magento_InventoryConfigurableProductIndexer': Module 'Magento_InventoryConfiguration': Module 'Magento_InventoryConfigurationApi': Module 'Magento_InventoryGroupedProduct': Module 'Magento_InventoryGroupedProductAdminUi': Module 'Magento_InventoryGroupedProductIndexer': Module 'Magento_InventoryImportExport': Module 'Magento_InventoryIndexer': Module 'Magento_InventoryLowQuantityNotification': Module 'Magento_Inventory LowQuantityNotificationAdminUi': Module 'Magento_InventoryLowQuantityNotificationApi': Module 'Magento_InventoryMultiDimensionalIndexerApi': Module 'Magento_InventoryProductAlert': Module 'Magento_InventoryReservations': Module 'Magento_InventoryReservationsApi': Module 'Magento_InventoryCache': Module 'Magento_InventorySalesAdminUi': Module 'Magento_InventorySalesApi': Module 'Magento_InventorySalesFrontendUi': Module 'Magento_InventoryShipping': Module 'Magento_Shipping': Module 'Magento_InventorySourceDeductionApi': Module 'Magento_InventorySourceSelection': Module 'Magento_InventorySourceSelectionApi': Module 'Magento_LayeredNavigation': Module 'Magento_Marketplace': Module 'Magento_MediaStorage': Module 'Magento_MessageQueue': Module 'Magento_GroupedProductSampleData': Module 'Magento_MsrpSampleData': Module 'Magento_Multishipping': Module 'Magento_MysqlMq': Running schema recurring... Module 'Magento_NewRelicReporting': Module 'Magento_ProductAlert': Running schema recurring... M odule 'Magento_OfflinePayments': Module 'Magento_SalesRule': Module 'Magento_OfflineShipping': Module 'Magento_PageCache': Module 'Magento_Captcha': Module 'Klarna_Ordermanagement': Module 'Magento_Persistent': Module 'Magento_Reports': Running schema recurring... Module 'Magento_Bundle': Running schema recurring... Module 'Magento_ProductVideo': Module 'Amazon_Login': Module 'Magento_QuoteAnalytics': Module 'Magento_QuoteGraphQl': Module 'Magento_ReleaseNotification': Module 'Magento_Review': Module 'Magento_RequireJs': Module 'Magento_SendFriend': Module 'Magento_ReviewAnalytics': Module 'Magento_BundleSampleData': Module 'Magento_Robots': Module 'Magento_Rss': Module 'Magento_ThemeSampleData': Module 'Amazon_Payment': Module 'Magento_SalesAnalytics': Module 'Magento_SalesInventory': Module 'Magento_OfflineShippingSampleData': Module 'Magento_DownloadableSampleData': Module 'Magento_TaxSampleData': Module 'Magento_ConfigurableSampleData': Module 'Magento_ProductLinksSampleData': Modu le 'Magento_Elasticsearch': Module 'Magento_CustomerAnalytics': Module 'Magento_Wishlist': Running schema recurring... Module 'Magento_InventoryShippingAdminUi': Module 'Magento_Signifyd': Module 'Magento_Sitemap': Module 'Magento_CatalogInventoryGraphQl': Module 'Magento_DownloadableGraphQl': Module 'Magento_Webapi': Module 'Magento_SwaggerWebapi': Module 'Magento_SwaggerWebapiAsync': Module 'Magento_Swatches': Module 'Magento_SwatchesGraphQl': Module 'Magento_SwatchesLayeredNavigation': Module 'Magento_SwatchesSampleData': Module 'Magento_ReviewSampleData': Module 'Magento_TaxGraphQl': Module 'Magento_TaxImportExport': Module 'Magento_CustomerSampleData': Module 'Magento_ConfigurableProductSales': Module 'Magento_CmsSampleData': Module 'Magento_Tinymce3': Module 'Magento_Translation': Module 'Magento_GoogleOptimizer': Module 'Magento_Ups': Module 'Magento_SalesSampleData': Module 'Magento_UrlRewriteGraphQl': Module 'Magento_AsynchronousOperations': Module 'Magento_Usps': Module 'Mage nto_CatalogRuleSampleData': Module 'Klarna_Kp': Module 'Magento_Version': Module 'Magento_Swagger': Module 'Magento_WebapiAsync': Module 'Magento_WebapiSecurity': Module 'Magento_SalesRuleSampleData': Module 'Magento_WeeeGraphQl': Module 'Magento_CatalogWidget': Module 'Magento_WidgetSampleData': Module 'Dotdigitalgroup_Email': Running schema recurring... Module 'Magento_WishlistAnalytics': Module 'Magento_WishlistSampleData': Module 'Temando_Shipping': Module 'Vertex_Tax': Data install/update: Module 'Magento_Store': Module 'Magento_Directory': Module 'Magento_Theme': Module 'Magento_Backend': Module 'Magento_Variable': Module 'Magento_Eav': Module 'Magento_AdminNotification': Module 'MSP_ReCaptcha': Module 'Magento_Config': Module 'Magento_Indexer': Module 'Magento_AdvancedPricingImportExport': Module 'Magento_Search': Module 'Magento_Amqp': Module 'Magento_Security': Module 'Magento_User': Module 'Magento_Authorization': Module 'Magento_Customer': Module 'Magento_Rule': Module 'Mage nto_Backup': Module 'Magento_Cms': Module 'Magento_Catalog': Module 'Magento_GraphQl': Module 'Magento_BundleImportExport': Module 'Magento_CatalogRule': Module 'Magento_CacheInvalidate': Module 'Magento_Quote': Module 'Magento_SalesSequence': Module 'Magento_Integration': Module 'Magento_EavGraphQl': Module 'Magento_CatalogImportExport': Module 'Magento_Payment': Module 'Magento_CatalogInventory': Module 'Magento_Cron': Module 'Magento_Msrp': Module 'Magento_CatalogSearch': Module 'Magento_Sales': Module 'Magento_Checkout': Module 'Magento_CatalogUrlRewrite': Module 'Magento_CatalogUrlRewriteGraphQl': Module 'Magento_Widget': Module 'Magento_Vault': Module 'Magento_CheckoutAgreements': Module 'Magento_Paypal': Module 'Magento_CmsGraphQl': Module 'Magento_Downloadable': Module 'Magento_CmsUrlRewrite': Module 'Magento_CmsUrlRewriteGraphQl': Module 'MSP_TwoFactorAuth': Module 'Magento_ConfigurableImportExport': Module 'Magento_UrlRewrite': Module 'Magento_StoreGraphQl': Module 'Magento_C onfigurableProduct': Module 'Magento_GroupedProduct': Module 'Magento_Contact': Module 'Magento_Cookie': Module 'Magento_Email': Module 'Magento_CurrencySymbol': Module 'Klarna_Core': Module 'Magento_Analytics': Module 'Magento_CustomerGraphQl': Module 'Magento_CustomerImportExport': Module 'Magento_SampleData': Module 'Magento_Deploy': Module 'Magento_Developer': Module 'Magento_Dhl': Module 'Amazon_Core': Module 'Magento_Tax': Module 'Magento_CatalogGraphQl': Module 'Magento_ImportExport': Module 'Magento_Weee': Module 'Magento_Authorizenet': Module 'Magento_BundleGraphQl': Module 'Magento_AdvancedSearch': Module 'Magento_Newsletter': Module 'Magento_EncryptionKey': Module 'Magento_Fedex': Module 'Magento_GiftMessage': Module 'Magento_GoogleAdwords': Module 'Magento_GoogleAnalytics': Module 'Magento_Ui': Module 'Magento_ConfigurableProductGraphQl': Module 'Magento_GroupedImportExport': Module 'Magento_CatalogRuleConfigurable': Module 'Magento_GroupedProductGraphQl': Module 'Magento_C atalogSampleData': Module 'Magento_DownloadableImportExport': Module 'Magento_Braintree': Module 'Magento_InstantPurchase': Module 'Magento_CatalogAnalytics': Module 'Magento_Inventory': Module 'Magento_InventoryAdminUi': Module 'Magento_InventoryApi': Module 'Magento_InventoryBundleProduct': Module 'Magento_InventoryBundleProductAdminUi': Module 'Magento_InventoryCatalog': Module 'Magento_InventorySales': Module 'Magento_InventoryCatalogAdminUi': Module 'Magento_InventoryCatalogApi': Module 'Magento_InventoryCatalogSearch': Module 'Magento_InventoryConfigurableProduct': Module 'Magento_InventoryConfigurableProductAdminUi': Module 'Magento_InventoryConfigurableProductIndexer': Module 'Magento_InventoryConfiguration': Module 'Magento_InventoryConfigurationApi': Module 'Magento_InventoryGroupedProduct': Module 'Magento_InventoryGroupedProductAdminUi': Module 'Magento_InventoryGroupedProductIndexer': Module 'Magento_InventoryImportExport': Module 'Magento_InventoryIndexer': Module 'Magent o_InventoryLowQuantityNotification': Module 'Magento_InventoryLowQuantityNotificationAdminUi': Module 'Magento_InventoryLowQuantityNotificationApi': Module 'Magento_InventoryMultiDimensionalIndexerApi': Module 'Magento_InventoryProductAlert': Module 'Magento_InventoryReservations': Module 'Magento_InventoryReservationsApi': Module 'Magento_InventoryCache': Module 'Magento_InventorySalesAdminUi': Module 'Magento_InventorySalesApi': Module 'Magento_InventorySalesFrontendUi': Module 'Magento_InventoryShipping': Module 'Magento_Shipping': Module 'Magento_InventorySourceDeductionApi': Module 'Magento_InventorySourceSelection': Module 'Magento_InventorySourceSelectionApi': Module 'Magento_LayeredNavigation': Module 'Magento_Marketplace': Module 'Magento_MediaStorage': Module 'Magento_MessageQueue': Module 'Magento_GroupedProductSampleData': Module 'Magento_MsrpSampleData': Module 'Magento_Multishipping': Module 'Magento_MysqlMq': Module 'Magento_NewRelicReporting': Module 'Magento_ProductAle rt': Module 'Magento_OfflinePayments': Module 'Magento_SalesRule': Module 'Magento_OfflineShipping': Module 'Magento_PageCache': Module 'Magento_Captcha': Module 'Klarna_Ordermanagement': Module 'Magento_Persistent': Module 'Magento_Reports': Module 'Magento_Bundle': Module 'Magento_ProductVideo': Module 'Amazon_Login': Module 'Magento_QuoteAnalytics': Module 'Magento_QuoteGraphQl': Module 'Magento_ReleaseNotification': Module 'Magento_Review': Module 'Magento_RequireJs': Module 'Magento_SendFriend': Module 'Magento_ReviewAnalytics': Module 'Magento_BundleSampleData': Module 'Magento_Robots': Module 'Magento_Rss': Module 'Magento_ThemeSampleData': Module 'Amazon_Payment': Module 'Magento_SalesAnalytics': Module 'Magento_SalesInventory': Module 'Magento_OfflineShippingSampleData': Module 'Magento_DownloadableSampleData':

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 3449720 bytes) in C:\\wamp64\\www\\magento\\vendor\\magento\\module-downloadable-samp le-data\\Model\\Product\\Converter.php on line 103

Check https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-error s for more info on how to handle out of memory errors. C:\\wamp64\\www\\magento>

Off which have changed every files that have to do with memory_limit to 2048M.

Well -- clearly not every file, because your memory limit it still set wrong. (which is super easy to do with PHP)

When I'm faced with this problem I use

$ php --ini
Configuration File (php.ini) Path: /usr/local/etc/php/7.3
Loaded Configuration File:         /usr/local/etc/php/7.3/php.ini
Scan for additional .ini files in: /usr/local/etc/php/7.3/conf.d
Additional .ini files parsed:      /usr/local/etc/php/7.3/conf.d/ext-opcache.ini

to get a list of every ini file that the command line version of PHP knows about. Then I perform a grep search for the memory_limit in all possible locations. In the above example, all the ini files live under the same directory so the following is sufficient.

# -O follow symbolic links
# -i case insensative grep
# -r search recursivly through folders
$ grep -O -i -r memory_limit /usr/local/etc/php/7.3

Give that a try, and I bet you find a memory_limit in an unexpected ini file.

Good luck!

WAMPServer 3 makes increasing the memory_limit really easy.

Using the wampmanager menus all you need to do is

  • left click wampmanager -> PHP -> PHP Settings -> Memory Limit

This tells you what the memory limit is set to, and provides a selection of other sizes you can pick from. Or use the choose option and enter a valid parameter value of your choise like 2G . I would suggest you start at 256M as even Magento should not need 2GIG.

Then pick a new memory limit size from the menu. Wampserver will then restart Apache to activate the change

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM