I have installed Fresh Magento2.4 on Ubuntu 18.04 with PHP7.3 version. I have done all the configuration mentioned here https://docs.magento.com/user-guide/catalog/product-image-watermarks.html to add the watermark image.
After added the watermark image configuration I ran below commands
bin/magento cache:clean
bin/magento cache:flush
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content-deploy -f en_US en_GB
bin/magento indexer:reindex
bin/magento catalog:image:resize
After all doing this , watermark image is not showing on category pages or product detail pages
See below images
Watermark image
Any help will be really appreciatable
Go to admin side.
select the content.
select the design > configuration.
click on edit action on your store theme name.
Other setting.
product image watermarks.
Magento 2.3.4 provide to setup water mark for each image type.
Here are image types:
Base - Display image using mouse hover
Thumbnail - Display list under base image on product page
Small - Display on category page
Make sure you have followed all the steps provided by Magento doc
https://docs.magento.com/user-guide/catalog/product-image-watermarks.html
I don't think so you need setup upgrade command and static content deploy. You just need to clean cache only.
I have followed same instruction and here is result.
Related
I am trying to import products into my store however the rewrites are not generated in the database at all so the long default url remains. Anyone faced this issue and solved it before without using an external module?
The URL key is correctly set at the product page.
incorrect url
You can use faonni module indexer which will create URL rewrite for your products category and cms pages.
After installing the extension you can run indexer commands as follows.
php bin/magento indexer:reindex category_url_rewrite
php bin/magento indexer:reindex product_url_rewrite
php bin/magento indexer:reindex cms_page_url_rewrite
The issue is with the importer. When there are no images available however they are defined in the feed file the importer will stop processing further information. For example it won't create the rewrites in the database and won't process stock related information. Won't create the relevant stock related records in the database neither. Database tables impacted ( the ones I actually found so far ):
url_rewrite
cataloginventory_stock_status
cataloginventory_stock_item
I have done below steps but after this frontend and backend css fonts will not working properly in magento2.
Remove pub/static //not .htaccess
Remove var/cache
Remove var/composer_home
Remove var/generation
Remove var/page_cache
Remove var/view_preprocessed
Then open up app/etc/di.xml find the path
Magento\Framework\App\View\Asset\MaterializationStrategy\Symlink
and replace it with Magento\Framework\App\View\Asset\MaterializationStrategy\Copy
And finally run this:
php bin/magento setup:static-content:deploy
I have been facing strange issue, as the part moving modifications in static content. we removed pub/static and deployed setup:static-content:deploy.
After doing this, files are generated properly in pub/static folder but when i load front end, styles are vanished.
As in the source the file paths are loading with version1483082446
root/static/version1483082446/frontend/Smartwave/porto/en_US/mage/calendar.css
I have followed below commands, but my styles are not loading in frontend.
Delete var/cache var/page_cache generated var/view_proceesed pub/static/frontend pub/static/adminhtml
Perform setup:upgrade di:compile content:deploy cache:flush
Give 777 permission to the pub var and generated folder.
After completion of Magento 2 Community Edition , Images not showing in admin panel as well as no log out option is there.
You need to regenerate static content files and clear cache. All commands assume that your current folder is magento root folder. Enter the following command:
Regenerate static files:
php bin/magento setup:static-content:deploy
Clean and flush cache:
php bin/magento cache:clean
php bin/magento cache:flush
When I compile static with php bin/magento setup:static-content:deploy, I'm getting the following errors:
Unable to get content for 'frontend/Magento/blank/en_US/css/source/lib/_lib.less'
Unable to get content for 'frontend/Magento/luma/en_US/css/source/lib/_lib.less'
I was also facing the same issue. Then I went through the comments from different people on GitHub here. After that I was able to fix by recovering the folder "lib/web/css" or whole "lib/web" under root directory.
Lastly run the command and there was no error :
bin/magento setup:static-content:deploy en_US -f
Based on your setup version you can take it from here : https://github.com/magento/magento2/tree/2.3/lib
Your Magento probably was poorly updated, you might be able to fix it by getting a new composer installation in the same version and replacing your lib folder with a clean lib folder from the native installation.
There has been an error processing your request magento 1.7
Exception printing is disabled by default for security reasons.
Error log record number: 1116398732
Someone has a solution for this error? Please solve my problem
report number represent specific files in var/report folder in magento root
open var/report/ in your magento root dir,
open file called same as your report number , in this case: '1116398732'
paste contents here and we will proceed with finding out what was wrong
You can check the report by going to /var/report
Usually it occurs because of uncleared cache. Just go to /var/cache and delete all the files in cache folder. Refresh the page, it should work.
There are three simple steps to resolve this issue:
1- create tmp directory in your magento site
2- go to magento site/errors directory and update local.xml.sample to local.xml
3- go to magento site/lib/Zend/Cache/Backend/File.php and replace 'cache_dir' => null, to 'cache_dir' => 'tmp',
NOTE:tmp directory permission should be #777
Delete the generated/code directory rm -rf generated/code
Then run
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento cache:flush
chmo -R 0777 var/ pub/ generated/
Now try to run the site, it should be perfect now. Cheers