I have a very strange issue in my site. When I access any of my product images, I can access by this type of url:
abc.com/media/catalog/product/0/1/0101-white.jpg
Whereas this image is at:
/var/www/html/pub/media/catalog/product/0/1/0101-white.jpg.
So I am wondering why I am not able to access my product images like this:
abc.com/pub/media/catalog/product/0/1/0101-white.jpg.
In the front end all product images are showing fine. But the issue is coming in Google Feed because Google Feed is giving this error:
image links are not found
because it is accessing images from the pub url
abc.com/pub/media/catalog/product/0/1/0101-white.jpg
So I want to access my product images with the pub url.
Is there anyone else facing this type of issue. It would be really great if someone can help me with this.
You can try to run following command and flush cache
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
Related
we have a fresh build of Magento 2.4.3 which when we sync products from an api call works fine and the products display correctly but we want to import the database and products from an existing Magento 2.3.4 site. When we import the database the products are not showing on the catalog pages. The products are shown in the backend in the products listing and also under the categories tree and in products in category in the category page. Going directly to the products url key displays the product and show the breadcrumb for it's categories but none of the catalog listings show any products. The search pages return no results as well
we have checked the setting for elastic search in the core_config_data table and they seem correct and we have tried reindexing but the products still don't show. Any one any ideas as we are at a loss at what to try now.
You can check for errors in var/log. If you share specific errors in these files, the problem will be easier to solve.
I had the same problem. Magento falls back to use ES6 but your version needs ES7.
php bin/magento config:set catalog/search/engine elasticsearch7
php bin/magento cache:clean config
php bin/magento indexer:reindex
I have developed a daily csv file with php and mysql technology. Facebook uses this csv to show all our products on our facebook store.
The problem is that facebook displays a wrong image for some products. I have checked my csv and the image is right.
After that, I accessed to facebook catalog administration over a wrong image, then I saw that the product is showing the right image on the administration page.
Example:
Wrong image: https://www.facebook.com/products/image/?item_id=2344243688984642&display=multi&version=1&image_id=2169702346485626&image_width=186&image_height=186&display_option=background_padding&logging_boundary=item_preview
The right image that appears on 'edit product': https://external.xx.fbcdn.net/safe_image.php?d=AQCLCxZ9xrRUhd9m&url=https%3A%2F%2Fshop.atosa.es%2Fimg%2Fp%2F1%2F0%2F1%2F1%2F1011.jpg&_nc_hash=AQDWNd_Ct7njTn3V
It seems the wrong image is hosted by facebook and the right image by our server
I think that FB has a cache or something similar that do not update the image.
Any idea to update that wrong images?
I believe once before when you've been creating your catalog you still served a wrong image to FB. When FB fetches you feed now it sees the same URL and doesn't update the image because of that.
The solution would be to add any arbitrary parameter at the end of you image link like.
https://youserver/image.jpg?id=1
It should still return your image, but be a new link so that FB could recognize smth has change. It helped in many cases I had with wrong images in catalogs.
The ultimate solution would be to change the product's ID in the feed which will lead to FB creating an absolutely new product in the catalog. Mind, that it will discard product stats and you'll have to send that new ID in pixel or you mobile app.
Try the link solution first. You can also duplicate the product just adding a test one to the feed and check if a new fake test product looks correctly.
Let me know if it helps.
I've configured Facebook Login, and it works on desktop browsers. However, when using an actual iPhone connected to my laptop, two things happen:
the first time I enter my login details (with Cordova in-app browser), Facebook gives me this page: http://cl.ly/image/0n3Z083o2H0j
after I close and reopen the app, I look in GapDebug and see a request to something like https://auth.firebase.com/auth/facebook/callback?code=YDFasdfjsdfh893&fb_redirect_uri%22%3A%22file... with an error message "Failed to load resource: You do not have permission to access the requested resource."
It looks like the fb_redirect_uri is trying to get a file path instead of a URL -- is that right? Do I have a data access problem or what?
Not sure exactly what was going on, but I updated AngularFire and FirebaseSimpleLogin and then it worked.
So, same Problem like the Guy before and alot more people on the web, but this time i try to make a good discription. My english is not perfect, but please realise that i really try to tell you the details here.
There is a Function in the Famous Phoca Gallery Plugin for Joomla to integrate whole Facebook-Albums into the Gallery-System and show them next to the local ablums and pictures of the website in the same style and css.
here the detailed description by the deveopener of phoca gallery, how this integration normaly works, please look here:
http://www.phoca.cz/documents/2-phoca-gallery-component/443-displaying-facebook-albums
So, easy to tell: U have to create an facebook-application, give phoca galery the usernamem & pw, App-ID and secret-nr and it gets the rest of the needed data automatically via facebook.
Then, you have to create an new category inside of the phoca galerysystem and define the Facebook-Album you want as source. this is finally the step, that doesnt work with my page. U have to select the choosen facebook user, this is working, but if I try to select an fb-album of this user, i just get following error:
Facebook API Failure: Unknown method (3)
Normaly, on most Systems its working, but there are a few systems, where its just not working. Have a look on this forum, a lot of people have the same error like me.
http://www.phoca.cz/forum/viewtopic.php?f=1&t=23126
Developeners of Phoca tried to fix, but finally they started to tell the people, they should ask the developeners of facebook, because since now nobody was sucessfull to fix or just find the error.
So, this is now the try to tell u about this problem, maybe there is a way
Hopefully u are not just closing this, if anybody knows the problem and and have a fix, PLEASE tell
Not sure about phoca gallery, but I've developed a plugin for showing your Facebook albums (fanpage only) into your Joomla site. Thousands of people are using it successfully on their sites. It also has a WordPress version.
BTW, It's not free.
JFBAlbum
JFBAlbum Demo
I am trying to integrate Facebook log in on my mvc3 website but, whenever I click on the login button it comes up with this:
An error occurred. Please try later
I am following this tutorial
The log in link generated is this:
https://www.facebook.com/dialog/oauth?api_key=%7B106425032813017%7D&app_id=%7B106425032813017%7D&client_id=%7B106425032813017%7D&display=popup&domain=localhost&locale=en_US&origin=1&redirect_uri=https%3A%2F%2Fs-static.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D3%23cb%3Df1fc578f9%26origin%3Dhttp%253A%252F%252Flocalhost%253A14567%252Ff1e7b8471%26relation%3Dopener%26transport%3Dpostmessage%26frame%3Df40e3fefc&response_type=token%2Csigned_request&sdk=joey
I have tried other tutorials as well but I get the same error. Even by downloading working source code and changing appId and appSecret I get the same error.
Anybody know what's going on?
Your token replacement code on your server did not run correctly.