Closed MrDaar closed 6 years ago
We're experiencing the same issue with the built-in product stock alert module, which generates its emails via cron.
Just noted that this is a duplicate of #8868.
Finally found workaround: http://magento.stackexchange.com/a/167869/567
@scottsb
You can force the media url in config:
Stores > Configuration > Web
So if you set the config value in control centre it'll also be fine.
Base URL for User Media Files {{unsecure_base_url}}media/
Secure Base URL for User Media Files {{secure_base_url}}media/
(edited)
I attempted that, but it didn't seem to resolve the issue for me. Either I did something wrong, forgot to clear my cache or it's another issue with single-store mode (maybe related to #8137).
We experienced the same problem, where the media paths in the generated sitemap.xml file were incorrect when the sitemap.xml was generated by the cronjob, if you generate it manually, the paths were correct.
Solution from @MrDaar fixed it for us, but it shouldn't contain the forward slash in the middle, it should be:
{{unsecure_base_url}}media/
{{secure_base_url}}media/
@MrDaar, thank you for your report. We've created internal ticket(s) MAGETWO-82739 to track progress on the issue.
Hi @MrDaar We are now closing this as a duplicate of https://github.com/magento/magento2/issues/8868
Thank you for participation
Hi,
Thank you for your solutions, I've been debugging this problem for a moment now!
The only thing is that I also had to change the web/(un)secure/base_static_url
paths to {{(un)secure_base_url}}static/
to make it work.
I can corroborate that setting the base_static_url
path to {{(un)secure_base_url}}static/
solves the issue for me. The config that needs to be set probably depends if your images are in media or static folder.
@magento-engcom-team give me 2.3-develop instance
Hi @nahuelsanchez. Thank you for your request. I'm working on Magento 2.3-develop instance for you
Hi @nahuelsanchez, here is your Magento instance.
Admin access: https://i-9111-2-3-develop.engcom.dev.magento.com/admin
Login: admin
Password: 123123q
Instance will be terminated in up to 3 hours.
WHAT IS THIS MAGIC?
In have to add cron process in extension ,which can shown in a cron_schedule tabel. how can i add? in Magento1 Googleshopping Extension.
Hello same issue can you plz help me what is step resolve this issue
Preconditions
Steps to reproduce
Content > Design > Configuration > Edit > Transactional Emails > Logo Image
Expected result
Actual result
The image above is set in config, but the issue will also happen for product image urls generated by:
or images included with directives:
You can force the media url in config:
Stores > Configuration > Web
But that shouldn't be necessary.Magento\Store\Model\Store->getBaseUrl(...)
returns wrong value.