facebookarchive / facebook-for-magento2

* Pixel on all pages, which trigger events link, PageView, ViewContent, AddToCart, Initiatecheckout and Purchase.* In the background, Syncs the products from the merchants product catalog to Facebook Catalog.* Stores all the data, like pixel id, catalog id, business maanger id, on to the local database on the instance.
Other
46 stars 36 forks source link

[Bug]: Product Image Link error #101

Open ibaritakis opened 2 years ago

ibaritakis commented 2 years ago

Contact Details

ibaritakis@gmail.com

What happened?

In Facebook > Commerce Manager > Catalogue > Issues I have a lot of items not being shown. Their problem is the image link which is: https://kois-optics.gr/pub/media/catalog/productk/o/kois_optics_9284_c3.jpg as you can see in the above link, after the word /product should be a “/” but there isn't so it ends to a 404 page. The correct link should be https://kois-optics.gr/pub/media/catalog/product/k/o/kois_optics_9284_c3.jpg

Magento Version

2.4.1

Plugin Version

1.4.4

Relevant log output

No response

Code of Conduct

igmltd commented 2 years ago

Had the same issue managed to resolve by a simple fix adding a "/"

go to file : vendor > facebook > facebook-for-magento2 > model > product > feed > Builder.php

change this line: $this->fbeHelper->getBaseUrlMedia() . 'catalog/product' . $mainImage

to

$this->fbeHelper->getBaseUrlMedia() . 'catalog/product/' . $mainImage