Jump to content

activity log email error


nicklfire

Recommended Posts

Noticed this error in the activity log when someone placed a new order. I checked the order confirmation email template and the body is not empty.

 

Sending Failed - Message body empty

 

19/04/2011 11:24

Email Sending Failed - Message body empty (User ID: 56 - Subject: Order Confirmation)

Client

19/04/2011 11:24

Smarty Error: [in emailtpl:emailmessage line 23]: syntax error: unclosed tag \{if} (opened line 20). (Smarty_Compiler.class.php, line 317)

Client

19/04/2011 11:24

Email Sent to Jason (Customer Invoice)

Client

19/04/2011 11:24

Created Invoice - Invoice ID: 5287

Client

19/04/2011 11:24

New Order Placed - Order ID: 84 - User ID: 56

Client

19/04/2011 11:24

Email Sent to Jason (Welcome)

System

19/04/2011 11:24

Created Client Jason - User ID: 56

System

Link to comment
Share on other sites

Did you customise the order confirmation email? The smarty error suggests that something isn't nested correctly.

 

The body empty message is a result of the order confirmation email not being generated correctly (i.e merged with the client's details) so by the time it's passed of to the mailer it's actually empty.

Link to comment
Share on other sites

Here is the order confirmation email, maybe you can check it over to see if i goofed, dont think i did:

 

Dear {$client_name},

 

 

We have received your order and will be processing it shortly. Because of security we choose to process all orders manually. This of course delays your setup but protects everyone in the interest of security. The details of the order are below:

 

 

Order Number: {$order_number}

 

 

{$order_details}

 

 

You will receive an email from us shortly once your account has been setup. Please quote your order reference number if you wish to contact us about this order.

 

 

If you are using an existing domain with your new hosting account, you will need to update the nameservers to point to the nameservers listed below.

 

 

Nameserver 1: {$service_ns1} ({$service_ns1_ip})

Nameserver 2: {$service_ns2} ({$service_ns2_ip}){if $service_ns3}

 

 

{$signature}

 

 

Link to comment
Share on other sites

The text you posted tells you the error. You need to remove the unclosed "if".

 

Smarty Error: [in emailtpl:emailmessage line 23]: syntax error: unclosed tag \{if} (opened line 20). (Smarty_Compiler.class.php, line 317)

 

Nameserver 2: {$service_ns2} ({$service_ns2_ip}){if $service_ns3}

Link to comment
Share on other sites

Our default template reads

Dear {$client_name},

We have received your order and will be processing it shortly. The details of the order are below:

Order Number: {$order_number}

{$order_details}

You will receive an email from us shortly once your account has been setup. Please quote your order reference number if you wish to contact us about this order.

{$signature} 

but we've not made any changes to it since the initial install.

 

You can either remove {if $service_ns3} or add the closing if tag. If you're using 3 or 4 nameservers you'll want to add an if for the fourth as well.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated