ash-f Posted October 24, 2023 Share Posted October 24, 2023 (edited) For some reason, emails sent from Prestashop has a wrong url. It's the old domain of dev site. I can not find any old domain in the DB or the htaccess or the config file I'm aware of. Template variable is "mailThemesUrl." i.e. Wrong url on emails https://dev.***.com//mails/themes/modern/assets/baseline-location_on-24px.png The url should be like this. https://www.***.com/mails/themes/modern/assets/baseline-location_on-24px.png Strange thing is that when I preview emails in the backend, it has the correct domain. The old domain appears only on sent messages. Do you guys know how can I update it? Prestashop version: 8.1.2 Edited October 24, 2023 by ash-f (see edit history) Link to comment Share on other sites More sharing options...
vadimest Posted June 3 Share Posted June 3 Have you found a solution? I have the same problem. I can't find where to change mailThemesUrl Link to comment Share on other sites More sharing options...
Knowband Plugins Posted June 4 Share Posted June 4 Hi, Check your database for any lingering references to the old domain. You can run the following SQL query to search for any instances of the old domain: SELECT * FROM ps_configuration WHERE value LIKE '%dev.%'; If you find any entries, update them with the correct domain: UPDATE ps_configuration SET value = 'https://www.***.com' WHERE value = 'https://dev.***.com'; Regards. Link to comment Share on other sites More sharing options...
vadimest Posted June 4 Share Posted June 4 Thanks for the reply! The store used to be on the "epood" subdomain, now it's on the "pood" subdomain. The image address still points to the "epood" subdomain. Checked the entire database and there search does not find "epood". The address is probably written in some file, but in which one I can't find. Link to comment Share on other sites More sharing options...
kamppa Posted June 18 Share Posted June 18 Did anyone figure this out? Domain was changed in back end and all references to old domain corrected in database. Still the email image URL's point to old domain. Link to comment Share on other sites More sharing options...
kamppa Posted June 18 Share Posted June 18 The images are hardcoded in mail templates. You can change them inside /mails/*language* folder. Edit each .html file to change the URL. Link to comment Share on other sites More sharing options...
AddWeb Solution Posted June 19 Share Posted June 19 On 10/25/2023 at 1:18 AM, ash-f said: For some reason, emails sent from Prestashop has a wrong url. It's the old domain of dev site. I can not find any old domain in the DB or the htaccess or the config file I'm aware of. Template variable is "mailThemesUrl." i.e. Wrong url on emails https://dev.***.com//mails/themes/modern/assets/baseline-location_on-24px.png The url should be like this. https://www.***.com/mails/themes/modern/assets/baseline-location_on-24px.png Strange thing is that when I preview emails in the backend, it has the correct domain. The old domain appears only on sent messages. Do you guys know how can I update it? Prestashop version: 8.1.2 Hi, Clear the cache in Prestashop. Check email template files for hardcoded URLs. Verify all relevant database entries. Ensure all URL settings in Prestashop admin are correct. Check server configuration and .htaccess files. Verify email sending configuration. Review custom modules and overrides for hardcoded URLs. By systematically checking these areas, you should be able to identify where the old domain is being referenced and update it to the new domain. Thanks! Link to comment Share on other sites More sharing options...
kamppa Posted June 19 Share Posted June 19 Also check robots.txt for old domain. Link to comment Share on other sites More sharing options...
Nickz Posted June 19 Share Posted June 19 19 minutes ago, kamppa said: Also check robots.txt for old domain. Care to explain? Never heard of a robots.txt having a direct influence over a site/shop. Link to comment Share on other sites More sharing options...
kamppa Posted June 19 Share Posted June 19 Old domain was there under sitemap. Creating robots.txt again surely would have changed it also. Link to comment Share on other sites More sharing options...
vadimest Posted June 20 Share Posted June 20 I checked everything: htaccess robots sitemap database mails templates cache cleaned But the image address in the mail still points to old subdomain... Link to comment Share on other sites More sharing options...
AddWeb Solution Posted June 20 Share Posted June 20 4 minutes ago, vadimest said: I checked everything: htaccess robots sitemap database mails templates cache cleaned But the image address in the mail still points to old subdomain... Hi, It's possible the URL is hardcoded somewhere in the codebase. Use the grep command to search for the old domain in all files. Example : Quote grep -r "dev.old-domain.com" /path/to/prestashop/ Thanks! Link to comment Share on other sites More sharing options...
Nickz Posted June 20 Share Posted June 20 20 hours ago, kamppa said: Old domain was there under sitemap. Creating robots.txt again surely would have changed it also. Sitemap and Robots.txt have cero influence how a website reacts. Both give details to search engines. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now