Magento version – Adobe Commerce ver. 2.4.5-p1
Issue – Product images are not showing up on the front end.
I’m debugging this file, getting below data.
vendor/magento/module-catalog/view/frontend/templates/product/view/gallery.phtml
echo "<pre>";
print_r($mainImage);
exit;
MagentoFrameworkDataObject Object
(
[_data:protected] => Array
(
[value_id] => 195402
[file] => /c/o/controlflex-coupling-cpfrg16-25-at.jpg
[media_type] => image
[row_id] => 56037
[label] => CPFRG16/25-AT - Controlflex Coupling Frog
[position] => 1
[disabled] => 0
[label_default] => CPFRG16/25-AT - Controlflex Coupling Frog
[position_default] => 1
[disabled_default] => 0
[video_provider] =>
[video_url] =>
[video_title] =>
[video_description] =>
[video_metadata] =>
[video_provider_default] =>
[video_url_default] =>
[video_title_default] =>
[video_description_default] =>
[video_metadata_default] =>
[url] => http://local.projectsetup.com/media/catalog/product/c/o/controlflex-coupling-cpfrg16-25-at.jpg
[id] => 195402
[path] => /var/www/html/projectsetup/pub/media/catalog/product/c/o/controlflex-coupling-cpfrg16-25-at.jpg
[small_image_url] => http://local.projectsetup.com/media/catalog/product/cache/75d5f1f9c56243b29d3c2276c04865ad/c/o/controlflex-coupling-cpfrg16-25-at.jpg
[medium_image_url] => http://local.projectsetup.com/media/catalog/product/cache/426e0568c4ced36d62c614ab0f9619f2/c/o/controlflex-coupling-cpfrg16-25-at.jpg
[large_image_url] => http://local.projectsetup.com/media/catalog/product/cache/982cff22d03368d7a9f3983da767218f/c/o/controlflex-coupling-cpfrg16-25-at.jpg
)
)
I have checked this URL: http://local.projectsetup.com/media/catalog/product/c/o/controlflex-coupling-cpfrg16-25-at.jpg , I was able to open the product image.
cache images are not generating.
[small_image_url] => http://local.projectsetup.com/media/catalog/product/cache/75d5f1f9c56243b29d3c2276c04865ad/c/o/controlflex-coupling-cpfrg16-25-at.jpg
[medium_image_url] => http://local.projectsetup.com/media/catalog/product/cache/426e0568c4ced36d62c614ab0f9619f2/c/o/controlflex-coupling-cpfrg16-25-at.jpg
[large_image_url] => http://local.projectsetup.com/media/catalog/product/cache/982cff22d03368d7a9f3983da767218f/c/o/controlflex-coupling-cpfrg16-25-at.jpg
Anyone faced the same issue? Thank You.