Magento 2: product image upload errordata: current version - none, required version - 2.0.0Magento2: Products...
How to fix my table, centering of columns
Giving a talk in my old university, how prominently should I tell students my salary?
Where is the fallacy here?
Can an earth elemental drown/bury its opponent underground using earth glide?
The need of reserving one's ability in job interviews
Can I solder 12/2 Romex to extend wire 5 ft?
Did Amazon pay $0 in taxes last year?
Why won't the strings command stop?
Lock enemy's y-axis when using Vector3.MoveTowards to follow the player
Can a space-faring robot still function over a billion years?
How to get the first element while continue streaming?
Why doesn't "adolescent" take any articles in "listen to adolescent agonising"?
GDAL GetGeoTransform Documentation -- Is there an oversight, or what am I misunderstanding?
Is divide-by-zero a security vulnerability?
How to disable or uninstall iTunes under High Sierra without disabling SIP
What is a term for a function that when called repeatedly, has the same effect as calling once?
Why did the Cray-1 have 8 parity bits per word?
Deal the cards to the players
Why is it "take a leak?"
Was it really inappropriate to write a pull request for the company I interviewed with?
Formatting a table to look nice
GPL code private and stolen
How can I handle a player who pre-plans arguments about my rulings on RAW?
How to kill a localhost:8080
Magento 2: product image upload error
data: current version - none, required version - 2.0.0Magento2: Products group by filterable attributesUnable to synchronized app import configuration failedMagento 2 get availabe stock of productError at order shippingMagento2.2.4 : Uninstall a theme throw exceptions?Magento 2 Fatal Error on Setup pageMagento2 REST API get all customers detailsI am getting this error when I installed algolia search moduleMagento 2 Fatal error: Uncaught Error: Call to undefined method MagentoFrameworkSessionSaveHandlerNative::write()
I have run below code
use MagentoFrameworkAppBootstrap;
use MagentoCatalogBlockProductImage;
include("app/bootstrap.php");
//$product_id = 4814;
$bootstrap = Bootstrap::create(BP, $_SERVER);
$objectManager = $bootstrap->getObjectManager();
$objectManager = $bootstrap->getObjectManager();
$state = $objectManager->get('MagentoFrameworkAppState');
$state->setAreaCode('frontend');
$simple_product = $objectManager->create('MagentoCatalogModelProduct');
$storeId = '1'; //Store ID
$product_id = 4814;
$productFactory = $objectManager->get('MagentoCatalogModelProductFactory');
$product = $productFactory->create()->setStoreId($storeId)->load($product_id);
echo $imagePath = '/var/import/bulb.jpg'; // path of the image
//exit();
$product->addImageToMediaGallery($imagePath, array('image', 'small_image', 'thumbnail'), false, false);
$product->save();
And getting following error
Fatal error: Uncaught MagentoFrameworkExceptionLocalizedException: The image doesn't exist. in C:xampphtdocsmagento23vendormagentomodule-catalogModelProductGalleryProcessor.php:145 Stack trace: #0 C:xampphtdocsmagento23vendormagentomodule-catalogModelProduct.php(1577): MagentoCatalogModelProductGalleryProcessor->addImage(Object(MagentoCatalogModelProductInterceptor), '/var/import/bul...', Array, false, false) #1 C:xampphtdocsmagento23generatedcodeMagentoCatalogModelProductInterceptor.php(895): MagentoCatalogModelProduct->addImageToMediaGallery('/var/import/bul...', Array, false, false) #2 C:xampphtdocsmagento23image.php(22): MagentoCatalogModelProductInterceptor->addImageToMediaGallery('/var/import/bul...', Array, false, false) #3 {main} thrown in C:xampphtdocsmagento23vendormagentomodule-catalogModelProductGalleryProcessor.php on line 145
magento2
add a comment |
I have run below code
use MagentoFrameworkAppBootstrap;
use MagentoCatalogBlockProductImage;
include("app/bootstrap.php");
//$product_id = 4814;
$bootstrap = Bootstrap::create(BP, $_SERVER);
$objectManager = $bootstrap->getObjectManager();
$objectManager = $bootstrap->getObjectManager();
$state = $objectManager->get('MagentoFrameworkAppState');
$state->setAreaCode('frontend');
$simple_product = $objectManager->create('MagentoCatalogModelProduct');
$storeId = '1'; //Store ID
$product_id = 4814;
$productFactory = $objectManager->get('MagentoCatalogModelProductFactory');
$product = $productFactory->create()->setStoreId($storeId)->load($product_id);
echo $imagePath = '/var/import/bulb.jpg'; // path of the image
//exit();
$product->addImageToMediaGallery($imagePath, array('image', 'small_image', 'thumbnail'), false, false);
$product->save();
And getting following error
Fatal error: Uncaught MagentoFrameworkExceptionLocalizedException: The image doesn't exist. in C:xampphtdocsmagento23vendormagentomodule-catalogModelProductGalleryProcessor.php:145 Stack trace: #0 C:xampphtdocsmagento23vendormagentomodule-catalogModelProduct.php(1577): MagentoCatalogModelProductGalleryProcessor->addImage(Object(MagentoCatalogModelProductInterceptor), '/var/import/bul...', Array, false, false) #1 C:xampphtdocsmagento23generatedcodeMagentoCatalogModelProductInterceptor.php(895): MagentoCatalogModelProduct->addImageToMediaGallery('/var/import/bul...', Array, false, false) #2 C:xampphtdocsmagento23image.php(22): MagentoCatalogModelProductInterceptor->addImageToMediaGallery('/var/import/bul...', Array, false, false) #3 {main} thrown in C:xampphtdocsmagento23vendormagentomodule-catalogModelProductGalleryProcessor.php on line 145
magento2
add a comment |
I have run below code
use MagentoFrameworkAppBootstrap;
use MagentoCatalogBlockProductImage;
include("app/bootstrap.php");
//$product_id = 4814;
$bootstrap = Bootstrap::create(BP, $_SERVER);
$objectManager = $bootstrap->getObjectManager();
$objectManager = $bootstrap->getObjectManager();
$state = $objectManager->get('MagentoFrameworkAppState');
$state->setAreaCode('frontend');
$simple_product = $objectManager->create('MagentoCatalogModelProduct');
$storeId = '1'; //Store ID
$product_id = 4814;
$productFactory = $objectManager->get('MagentoCatalogModelProductFactory');
$product = $productFactory->create()->setStoreId($storeId)->load($product_id);
echo $imagePath = '/var/import/bulb.jpg'; // path of the image
//exit();
$product->addImageToMediaGallery($imagePath, array('image', 'small_image', 'thumbnail'), false, false);
$product->save();
And getting following error
Fatal error: Uncaught MagentoFrameworkExceptionLocalizedException: The image doesn't exist. in C:xampphtdocsmagento23vendormagentomodule-catalogModelProductGalleryProcessor.php:145 Stack trace: #0 C:xampphtdocsmagento23vendormagentomodule-catalogModelProduct.php(1577): MagentoCatalogModelProductGalleryProcessor->addImage(Object(MagentoCatalogModelProductInterceptor), '/var/import/bul...', Array, false, false) #1 C:xampphtdocsmagento23generatedcodeMagentoCatalogModelProductInterceptor.php(895): MagentoCatalogModelProduct->addImageToMediaGallery('/var/import/bul...', Array, false, false) #2 C:xampphtdocsmagento23image.php(22): MagentoCatalogModelProductInterceptor->addImageToMediaGallery('/var/import/bul...', Array, false, false) #3 {main} thrown in C:xampphtdocsmagento23vendormagentomodule-catalogModelProductGalleryProcessor.php on line 145
magento2
I have run below code
use MagentoFrameworkAppBootstrap;
use MagentoCatalogBlockProductImage;
include("app/bootstrap.php");
//$product_id = 4814;
$bootstrap = Bootstrap::create(BP, $_SERVER);
$objectManager = $bootstrap->getObjectManager();
$objectManager = $bootstrap->getObjectManager();
$state = $objectManager->get('MagentoFrameworkAppState');
$state->setAreaCode('frontend');
$simple_product = $objectManager->create('MagentoCatalogModelProduct');
$storeId = '1'; //Store ID
$product_id = 4814;
$productFactory = $objectManager->get('MagentoCatalogModelProductFactory');
$product = $productFactory->create()->setStoreId($storeId)->load($product_id);
echo $imagePath = '/var/import/bulb.jpg'; // path of the image
//exit();
$product->addImageToMediaGallery($imagePath, array('image', 'small_image', 'thumbnail'), false, false);
$product->save();
And getting following error
Fatal error: Uncaught MagentoFrameworkExceptionLocalizedException: The image doesn't exist. in C:xampphtdocsmagento23vendormagentomodule-catalogModelProductGalleryProcessor.php:145 Stack trace: #0 C:xampphtdocsmagento23vendormagentomodule-catalogModelProduct.php(1577): MagentoCatalogModelProductGalleryProcessor->addImage(Object(MagentoCatalogModelProductInterceptor), '/var/import/bul...', Array, false, false) #1 C:xampphtdocsmagento23generatedcodeMagentoCatalogModelProductInterceptor.php(895): MagentoCatalogModelProduct->addImageToMediaGallery('/var/import/bul...', Array, false, false) #2 C:xampphtdocsmagento23image.php(22): MagentoCatalogModelProductInterceptor->addImageToMediaGallery('/var/import/bul...', Array, false, false) #3 {main} thrown in C:xampphtdocsmagento23vendormagentomodule-catalogModelProductGalleryProcessor.php on line 145
magento2
magento2
asked 7 mins ago
AnwarAnwar
349
349
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f264790%2fmagento-2-product-image-upload-error%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f264790%2fmagento-2-product-image-upload-error%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown