Magento 2.2.6 issue: php bin/magento catalog:image:resize
When run command php bin/magento catalog:image:resize
, it stops after few images and shows error.
How fix this?
I tried manually reupload images to this folder after this problem.
magento2 magento2.2.6
add a comment |
When run command php bin/magento catalog:image:resize
, it stops after few images and shows error.
How fix this?
I tried manually reupload images to this folder after this problem.
magento2 magento2.2.6
Check file/folder permission atvendor/magento/module-catalog/view/base/web/images/product/placeholder
– Amit Bera♦
Sep 19 '18 at 9:24
I tried change folder placeholder permission 755 to 777 but it is same problem.
– Peter
Sep 19 '18 at 10:02
have you fix this error? if yes please add solution. I have same issue.
– Jalpesh Patel
Nov 2 '18 at 19:08
add a comment |
When run command php bin/magento catalog:image:resize
, it stops after few images and shows error.
How fix this?
I tried manually reupload images to this folder after this problem.
magento2 magento2.2.6
When run command php bin/magento catalog:image:resize
, it stops after few images and shows error.
How fix this?
I tried manually reupload images to this folder after this problem.
magento2 magento2.2.6
magento2 magento2.2.6
edited Sep 19 '18 at 9:23
Amit Bera♦
58.6k1475174
58.6k1475174
asked Sep 19 '18 at 7:53
PeterPeter
617
617
Check file/folder permission atvendor/magento/module-catalog/view/base/web/images/product/placeholder
– Amit Bera♦
Sep 19 '18 at 9:24
I tried change folder placeholder permission 755 to 777 but it is same problem.
– Peter
Sep 19 '18 at 10:02
have you fix this error? if yes please add solution. I have same issue.
– Jalpesh Patel
Nov 2 '18 at 19:08
add a comment |
Check file/folder permission atvendor/magento/module-catalog/view/base/web/images/product/placeholder
– Amit Bera♦
Sep 19 '18 at 9:24
I tried change folder placeholder permission 755 to 777 but it is same problem.
– Peter
Sep 19 '18 at 10:02
have you fix this error? if yes please add solution. I have same issue.
– Jalpesh Patel
Nov 2 '18 at 19:08
Check file/folder permission at
vendor/magento/module-catalog/view/base/web/images/product/placeholder
– Amit Bera♦
Sep 19 '18 at 9:24
Check file/folder permission at
vendor/magento/module-catalog/view/base/web/images/product/placeholder
– Amit Bera♦
Sep 19 '18 at 9:24
I tried change folder placeholder permission 755 to 777 but it is same problem.
– Peter
Sep 19 '18 at 10:02
I tried change folder placeholder permission 755 to 777 but it is same problem.
– Peter
Sep 19 '18 at 10:02
have you fix this error? if yes please add solution. I have same issue.
– Jalpesh Patel
Nov 2 '18 at 19:08
have you fix this error? if yes please add solution. I have same issue.
– Jalpesh Patel
Nov 2 '18 at 19:08
add a comment |
4 Answers
4
active
oldest
votes
I noticed the path in my error message looks strange and yours looks the same with slightly different folder names.
File '/var/www/magento/pub/media/var/www/magento/vendor/magento/module-catalog/view/base/web/images/product/placeholder/swatch_image.jpg' does not exist.
The second half of that path is real and the image is there:
var/www/magento/vendor/magento/module-catalog/view/base/web/images/product/placeholder/swatch_image.jpg
However the error implies that it's prepending that location with var/www/magento/pub/media/
Is that intentionally like that or is this problem related to where it's looking for the image?
have you got any solution?
– Jalpesh Patel
Nov 2 '18 at 19:14
how is this an answer?
– Andy
Jan 25 at 13:41
If you have a new question, please ask it by clicking the Ask Question button. Include a link to this question if it helps provide context. - From Review
– Jai
11 hours ago
add a comment |
Peter,
It seems you are missing swatch image place holder.
Either upload it from the backend or upload manually to below file path
/home/public_html/vendor/magento/module-catalog/view/base/web/images/product/placeholder
name should be swatch_image.jpg only.
You are reading my message? "I tried manually reupload images to this folder after this problem." Check second image.
– Peter
Sep 20 '18 at 8:12
add a comment |
Please Read
https://devdocs.magento.com/guides/v2.2/release-notes/ReleaseNotes2.2.6CE.html
The catalog:image:resize command execution time has been reduced by up to 90% in the release. However, this improvement necessitates these additional steps after upgrading your Magento instance to 2.2.6:
Remove pub/media/catalog/product/cache . (Removing this folder frees up space.)
Run bin/magento catalog:image:resize to generate a new image cache. (This step is necessary because we’ve changed the path to cached images and must remove the previously cached images.)
I tried remove folder cache and var content but still same issue.
– Peter
Sep 19 '18 at 10:31
I solved issue removing placeholder folder content files swatch_image.jpg, image.jpg, small_image.jpg and thumbnail.jpg. When restore back to placeholder content files it show same error. But problem is still why it show error for placeholder content files?
– Peter
Sep 20 '18 at 9:42
Because such condition are there in to code that's why.
– Pratik
Sep 20 '18 at 14:03
add a comment |
I'm experiencing the same problem and I can confirm that the script is prepending [webroot]/pub/media/ to the path of the image it wants to resize and therefore can't find it.
Thus, it's not a solution to add an image to that path since the path does not exist.
Anyway, you can still just ignore the error and skip the batch resizing. The result will be the same as after emptying the image cache from the admin interface.
In consequence, resized images will be generated on demand for each product when the product (detail page) is viewed by a frontend user for the first time. This will slow down performance for the first impression of each product's detail page. Apart from that, there should not be any negative consequences.
add a comment |
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%2f242817%2fmagento-2-2-6-issue-php-bin-magento-catalogimageresize%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
I noticed the path in my error message looks strange and yours looks the same with slightly different folder names.
File '/var/www/magento/pub/media/var/www/magento/vendor/magento/module-catalog/view/base/web/images/product/placeholder/swatch_image.jpg' does not exist.
The second half of that path is real and the image is there:
var/www/magento/vendor/magento/module-catalog/view/base/web/images/product/placeholder/swatch_image.jpg
However the error implies that it's prepending that location with var/www/magento/pub/media/
Is that intentionally like that or is this problem related to where it's looking for the image?
have you got any solution?
– Jalpesh Patel
Nov 2 '18 at 19:14
how is this an answer?
– Andy
Jan 25 at 13:41
If you have a new question, please ask it by clicking the Ask Question button. Include a link to this question if it helps provide context. - From Review
– Jai
11 hours ago
add a comment |
I noticed the path in my error message looks strange and yours looks the same with slightly different folder names.
File '/var/www/magento/pub/media/var/www/magento/vendor/magento/module-catalog/view/base/web/images/product/placeholder/swatch_image.jpg' does not exist.
The second half of that path is real and the image is there:
var/www/magento/vendor/magento/module-catalog/view/base/web/images/product/placeholder/swatch_image.jpg
However the error implies that it's prepending that location with var/www/magento/pub/media/
Is that intentionally like that or is this problem related to where it's looking for the image?
have you got any solution?
– Jalpesh Patel
Nov 2 '18 at 19:14
how is this an answer?
– Andy
Jan 25 at 13:41
If you have a new question, please ask it by clicking the Ask Question button. Include a link to this question if it helps provide context. - From Review
– Jai
11 hours ago
add a comment |
I noticed the path in my error message looks strange and yours looks the same with slightly different folder names.
File '/var/www/magento/pub/media/var/www/magento/vendor/magento/module-catalog/view/base/web/images/product/placeholder/swatch_image.jpg' does not exist.
The second half of that path is real and the image is there:
var/www/magento/vendor/magento/module-catalog/view/base/web/images/product/placeholder/swatch_image.jpg
However the error implies that it's prepending that location with var/www/magento/pub/media/
Is that intentionally like that or is this problem related to where it's looking for the image?
I noticed the path in my error message looks strange and yours looks the same with slightly different folder names.
File '/var/www/magento/pub/media/var/www/magento/vendor/magento/module-catalog/view/base/web/images/product/placeholder/swatch_image.jpg' does not exist.
The second half of that path is real and the image is there:
var/www/magento/vendor/magento/module-catalog/view/base/web/images/product/placeholder/swatch_image.jpg
However the error implies that it's prepending that location with var/www/magento/pub/media/
Is that intentionally like that or is this problem related to where it's looking for the image?
edited 14 mins ago
Teja Bhagavan Kollepara
2,96341847
2,96341847
answered Sep 20 '18 at 23:15
user2060821user2060821
687
687
have you got any solution?
– Jalpesh Patel
Nov 2 '18 at 19:14
how is this an answer?
– Andy
Jan 25 at 13:41
If you have a new question, please ask it by clicking the Ask Question button. Include a link to this question if it helps provide context. - From Review
– Jai
11 hours ago
add a comment |
have you got any solution?
– Jalpesh Patel
Nov 2 '18 at 19:14
how is this an answer?
– Andy
Jan 25 at 13:41
If you have a new question, please ask it by clicking the Ask Question button. Include a link to this question if it helps provide context. - From Review
– Jai
11 hours ago
have you got any solution?
– Jalpesh Patel
Nov 2 '18 at 19:14
have you got any solution?
– Jalpesh Patel
Nov 2 '18 at 19:14
how is this an answer?
– Andy
Jan 25 at 13:41
how is this an answer?
– Andy
Jan 25 at 13:41
If you have a new question, please ask it by clicking the Ask Question button. Include a link to this question if it helps provide context. - From Review
– Jai
11 hours ago
If you have a new question, please ask it by clicking the Ask Question button. Include a link to this question if it helps provide context. - From Review
– Jai
11 hours ago
add a comment |
Peter,
It seems you are missing swatch image place holder.
Either upload it from the backend or upload manually to below file path
/home/public_html/vendor/magento/module-catalog/view/base/web/images/product/placeholder
name should be swatch_image.jpg only.
You are reading my message? "I tried manually reupload images to this folder after this problem." Check second image.
– Peter
Sep 20 '18 at 8:12
add a comment |
Peter,
It seems you are missing swatch image place holder.
Either upload it from the backend or upload manually to below file path
/home/public_html/vendor/magento/module-catalog/view/base/web/images/product/placeholder
name should be swatch_image.jpg only.
You are reading my message? "I tried manually reupload images to this folder after this problem." Check second image.
– Peter
Sep 20 '18 at 8:12
add a comment |
Peter,
It seems you are missing swatch image place holder.
Either upload it from the backend or upload manually to below file path
/home/public_html/vendor/magento/module-catalog/view/base/web/images/product/placeholder
name should be swatch_image.jpg only.
Peter,
It seems you are missing swatch image place holder.
Either upload it from the backend or upload manually to below file path
/home/public_html/vendor/magento/module-catalog/view/base/web/images/product/placeholder
name should be swatch_image.jpg only.
answered Sep 20 '18 at 3:00
Abhay KhatariyaAbhay Khatariya
311
311
You are reading my message? "I tried manually reupload images to this folder after this problem." Check second image.
– Peter
Sep 20 '18 at 8:12
add a comment |
You are reading my message? "I tried manually reupload images to this folder after this problem." Check second image.
– Peter
Sep 20 '18 at 8:12
You are reading my message? "I tried manually reupload images to this folder after this problem." Check second image.
– Peter
Sep 20 '18 at 8:12
You are reading my message? "I tried manually reupload images to this folder after this problem." Check second image.
– Peter
Sep 20 '18 at 8:12
add a comment |
Please Read
https://devdocs.magento.com/guides/v2.2/release-notes/ReleaseNotes2.2.6CE.html
The catalog:image:resize command execution time has been reduced by up to 90% in the release. However, this improvement necessitates these additional steps after upgrading your Magento instance to 2.2.6:
Remove pub/media/catalog/product/cache . (Removing this folder frees up space.)
Run bin/magento catalog:image:resize to generate a new image cache. (This step is necessary because we’ve changed the path to cached images and must remove the previously cached images.)
I tried remove folder cache and var content but still same issue.
– Peter
Sep 19 '18 at 10:31
I solved issue removing placeholder folder content files swatch_image.jpg, image.jpg, small_image.jpg and thumbnail.jpg. When restore back to placeholder content files it show same error. But problem is still why it show error for placeholder content files?
– Peter
Sep 20 '18 at 9:42
Because such condition are there in to code that's why.
– Pratik
Sep 20 '18 at 14:03
add a comment |
Please Read
https://devdocs.magento.com/guides/v2.2/release-notes/ReleaseNotes2.2.6CE.html
The catalog:image:resize command execution time has been reduced by up to 90% in the release. However, this improvement necessitates these additional steps after upgrading your Magento instance to 2.2.6:
Remove pub/media/catalog/product/cache . (Removing this folder frees up space.)
Run bin/magento catalog:image:resize to generate a new image cache. (This step is necessary because we’ve changed the path to cached images and must remove the previously cached images.)
I tried remove folder cache and var content but still same issue.
– Peter
Sep 19 '18 at 10:31
I solved issue removing placeholder folder content files swatch_image.jpg, image.jpg, small_image.jpg and thumbnail.jpg. When restore back to placeholder content files it show same error. But problem is still why it show error for placeholder content files?
– Peter
Sep 20 '18 at 9:42
Because such condition are there in to code that's why.
– Pratik
Sep 20 '18 at 14:03
add a comment |
Please Read
https://devdocs.magento.com/guides/v2.2/release-notes/ReleaseNotes2.2.6CE.html
The catalog:image:resize command execution time has been reduced by up to 90% in the release. However, this improvement necessitates these additional steps after upgrading your Magento instance to 2.2.6:
Remove pub/media/catalog/product/cache . (Removing this folder frees up space.)
Run bin/magento catalog:image:resize to generate a new image cache. (This step is necessary because we’ve changed the path to cached images and must remove the previously cached images.)
Please Read
https://devdocs.magento.com/guides/v2.2/release-notes/ReleaseNotes2.2.6CE.html
The catalog:image:resize command execution time has been reduced by up to 90% in the release. However, this improvement necessitates these additional steps after upgrading your Magento instance to 2.2.6:
Remove pub/media/catalog/product/cache . (Removing this folder frees up space.)
Run bin/magento catalog:image:resize to generate a new image cache. (This step is necessary because we’ve changed the path to cached images and must remove the previously cached images.)
answered Sep 19 '18 at 10:11
PratikPratik
2,17851342
2,17851342
I tried remove folder cache and var content but still same issue.
– Peter
Sep 19 '18 at 10:31
I solved issue removing placeholder folder content files swatch_image.jpg, image.jpg, small_image.jpg and thumbnail.jpg. When restore back to placeholder content files it show same error. But problem is still why it show error for placeholder content files?
– Peter
Sep 20 '18 at 9:42
Because such condition are there in to code that's why.
– Pratik
Sep 20 '18 at 14:03
add a comment |
I tried remove folder cache and var content but still same issue.
– Peter
Sep 19 '18 at 10:31
I solved issue removing placeholder folder content files swatch_image.jpg, image.jpg, small_image.jpg and thumbnail.jpg. When restore back to placeholder content files it show same error. But problem is still why it show error for placeholder content files?
– Peter
Sep 20 '18 at 9:42
Because such condition are there in to code that's why.
– Pratik
Sep 20 '18 at 14:03
I tried remove folder cache and var content but still same issue.
– Peter
Sep 19 '18 at 10:31
I tried remove folder cache and var content but still same issue.
– Peter
Sep 19 '18 at 10:31
I solved issue removing placeholder folder content files swatch_image.jpg, image.jpg, small_image.jpg and thumbnail.jpg. When restore back to placeholder content files it show same error. But problem is still why it show error for placeholder content files?
– Peter
Sep 20 '18 at 9:42
I solved issue removing placeholder folder content files swatch_image.jpg, image.jpg, small_image.jpg and thumbnail.jpg. When restore back to placeholder content files it show same error. But problem is still why it show error for placeholder content files?
– Peter
Sep 20 '18 at 9:42
Because such condition are there in to code that's why.
– Pratik
Sep 20 '18 at 14:03
Because such condition are there in to code that's why.
– Pratik
Sep 20 '18 at 14:03
add a comment |
I'm experiencing the same problem and I can confirm that the script is prepending [webroot]/pub/media/ to the path of the image it wants to resize and therefore can't find it.
Thus, it's not a solution to add an image to that path since the path does not exist.
Anyway, you can still just ignore the error and skip the batch resizing. The result will be the same as after emptying the image cache from the admin interface.
In consequence, resized images will be generated on demand for each product when the product (detail page) is viewed by a frontend user for the first time. This will slow down performance for the first impression of each product's detail page. Apart from that, there should not be any negative consequences.
add a comment |
I'm experiencing the same problem and I can confirm that the script is prepending [webroot]/pub/media/ to the path of the image it wants to resize and therefore can't find it.
Thus, it's not a solution to add an image to that path since the path does not exist.
Anyway, you can still just ignore the error and skip the batch resizing. The result will be the same as after emptying the image cache from the admin interface.
In consequence, resized images will be generated on demand for each product when the product (detail page) is viewed by a frontend user for the first time. This will slow down performance for the first impression of each product's detail page. Apart from that, there should not be any negative consequences.
add a comment |
I'm experiencing the same problem and I can confirm that the script is prepending [webroot]/pub/media/ to the path of the image it wants to resize and therefore can't find it.
Thus, it's not a solution to add an image to that path since the path does not exist.
Anyway, you can still just ignore the error and skip the batch resizing. The result will be the same as after emptying the image cache from the admin interface.
In consequence, resized images will be generated on demand for each product when the product (detail page) is viewed by a frontend user for the first time. This will slow down performance for the first impression of each product's detail page. Apart from that, there should not be any negative consequences.
I'm experiencing the same problem and I can confirm that the script is prepending [webroot]/pub/media/ to the path of the image it wants to resize and therefore can't find it.
Thus, it's not a solution to add an image to that path since the path does not exist.
Anyway, you can still just ignore the error and skip the batch resizing. The result will be the same as after emptying the image cache from the admin interface.
In consequence, resized images will be generated on demand for each product when the product (detail page) is viewed by a frontend user for the first time. This will slow down performance for the first impression of each product's detail page. Apart from that, there should not be any negative consequences.
answered Sep 21 '18 at 0:01
DanielDaniel
211
211
add a comment |
add a comment |
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%2f242817%2fmagento-2-2-6-issue-php-bin-magento-catalogimageresize%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
Check file/folder permission at
vendor/magento/module-catalog/view/base/web/images/product/placeholder
– Amit Bera♦
Sep 19 '18 at 9:24
I tried change folder placeholder permission 755 to 777 but it is same problem.
– Peter
Sep 19 '18 at 10:02
have you fix this error? if yes please add solution. I have same issue.
– Jalpesh Patel
Nov 2 '18 at 19:08