steph.hope Posted August 26, 2020 Share Posted August 26, 2020 In the Upcoming Domain Renewal Notice email, there's a link for the client to renew the domain: Quote To renew your domain, <a href="{$domain_renewal_url}">click here</a> It seems that the value of the {$domain_renewal_url} merge field sometimes isn't correct though. In an email which was generated by the cron the link destination is https://(mydomain)/whmcs/www/html/whmcs/index.php?rp=/domain/(domain)/renew rather than https://(mydomain)/whmcs/index.php?rp=/domain/(domain)/renew as it should be. I subsequently tried sending the email by using the Send Message button on the Domains tab, and this email had the correct link URL. I forced the DomainRenewalNotices cron task to run and the resulting email had the wrong URL again. I can see that a similar thing has happened to others in the past: https://whmcs.community/topic/293317-domain-renewal-url-incorrect/ In this case it was a friendly URL issue but we have those turned off (set to Basic URLs) https://whmcs.community/topic/289121-domain-renewal-url-formatting-link-incorrectly/ According to this it was apparently fixed as #CORE-12253 in v7.6.0 https://docs.whmcs.com/Changelog:WHMCS_V7.6 Any ideas on what could be still causing this to happen when the emails are generated by cron but not when manually requested? 0 Quote Link to comment Share on other sites More sharing options...
steph.hope Posted September 2, 2020 Author Share Posted September 2, 2020 Bumping this before I give in and edit the email template. 0 Quote Link to comment Share on other sites More sharing options...
vmavids Posted October 28, 2020 Share Posted October 28, 2020 I am getting the same issue - is there a resolution yet? 0 Quote Link to comment Share on other sites More sharing options...
steph.hope Posted October 28, 2020 Author Share Posted October 28, 2020 I got around it by changing the link in the email template to <a href="{$whmcs_url}index.php?rp=/domain/{$domain_name}/renew"> 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.