Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
This tag is used for questions that involve PHP code in any way. So as soon there is a PHP Exception returned or error report generated, this question qualifies to be tagged with PHP.
3
votes
1
answer
1k
views
Magento 2 REST API - Error with custom plugin when adding bundle product to cart
php
namespace MyCompany\MyModule\Plugin;
use Magento\Framework\Exception\CouldNotSaveException;
use Magento\Catalog\Api\ProductRepositoryInterface;
use Magento\Quote\Api\CartItemRepositoryInterface; …
2
votes
2
answers
3k
views
Running out of memory while reindexing using -d memory_limit=3G
After migration, I am running this command:
php -d memory_limit=3G bin/magento indexer:reindex customer_grid
But I am still getting a memory error:
PHP Fatal error: Allowed memory size of 3221225472 … I can confirm that:
$ php -r "echo ini_get('memory_limit').PHP_EOL;"
3G
I am using SSD so cannot create SWAP as per the instruction in the link above.
What can I do to fix this problem? …
1
vote
Accepted
Running out of memory while reindexing using -d memory_limit=3G
Increasing the server's memory from 4GB to 8GB, then assigning 7GB for PHP fixed the issue, Magento was able to re-index the customer grid in 10 minutes. …
1
vote
0
answers
258
views
Magento 2 - Error with custom plugin when adding bundle product
php
namespace MyCompany\MyModule\Plugin;
use Magento\Framework\Exception\CouldNotSaveException;
use Magento\Catalog\Api\ProductRepositoryInterface;
use Magento\Quote\Api\CartItemRepositoryInterface; …