When a TEST mailing is sent with tracking link clicks enabled, then the URL DOES NOT include "public_html/"; however, when the mailing is scheduled and sent with tracking link clicks, then "public_html/" is INSERTED into URL.

Wordpress Version --> 4.9.2 CIVICRM Version --> 4.7.27

1 Answer 1


We are having this problem as well, also in WordPress 4.9.2. We have discovered that the issue arises because permissions get corrupted. According to SiteGround, our host, these permissions in particular are problematic:

  • ./wp-content/uploads/civicrm/templates_c/en_US/%%31/313
  • ./wp-content/uploads/civicrm/templates_c/en_US/%%D6/D67

We don't know what is causing permissions to break in the first place. For example, yesterday, we sent out three emails with trackable links within 1 hour. The first two worked perfectly. The last one didn't work - 'public_html' inserted into all the links.

Our solution has been to create a cron job in cPanel to reset permissions every 5 minutes.

  • 1
    Most likely your permissions are incorrect because your cron job isn't running as the same user as your web server. In VPS environments you can work around this but with shared hosting you generally can't. Mar 9, 2018 at 15:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.