Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/11/2020 in all areas

  1. Tyson

    Error activating product

    Blesta is trying to send an email but fails to do so because some tag in the email template is not being used correctly. Double-check your "Service Creation" email template and how you are using the tags. If email is sent successfully for other services, then the problematic tag is probably in the package's Welcome Email section instead (which is imported into the "Service Creation" email template as the tag "{package.email_html}"/"{package.email_text}"), so edit that service's package and take a look at the Welcome Email template for both text and HTML. Some tags cannot be displayed as written because they are not strings, and instead need to be iterated over. You should take a look at the package module's documentation for what tags are available and how to use them. For example, when using the cPanel module, there is a tag "{module.name_servers}". That tag cannot be displayed as a string since its data is an array of multiple nameservers. If you attempt to display it as written, you will receive the error that you encountered. In this example, you would use a "for" statement in the email template to loop over the nameservers as mentioned in the cPanel documentation: {% for name_server in module.name_servers %} Name server: {name_server}{% endfor %}
    1 point
×
×
  • Create New...