Jump to content
ian@fairerepair.ca

Square Payments Step 4 Blank Page Confirmation

Recommended Posts

When checking out using "Pay by Credit Card & Visa Debit" which is the Square Plugin The first three steps work then when you enter the credit card information it goes to a blank screen but the payment charges the credit card. 

https://fairerepair.ca/store/index.php?_a=gateway  

Is the page that goes blank on Step 4 but charges the card... and does not show up in square dashboard as a made payment. 

Anyone able to help, day two  of this issue. 

My System Error Log states these errors

   
 
Today, 14:03 [Exception] /home/fairerep/public_html/store/includes/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:5 - Syntax error in template "string:

Thank You {$BILLING.first_name}!

..." on line 5 "

 

 
Today, 09:13 [Exception] /home/fairerep/public_html/store/includes/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:5 - Syntax error in template "string:

Thank You {$BILLING.first_name}!

..." on line 5 "

 

 
Today, 09:06 [Exception] /home/fairerep/public_html/store/includes/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:5 - Syntax error in template "string:

Thank You {$BILLING.first_name}!

..." on line 5 "

 

 
Today, 09:05 [Exception] /home/fairerep/public_html/store/includes/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:5 - Syntax error in template "string:

Thank You {$BILLING.first_name}!

..." on line 5 "

 

 
Today, 08:09 [Exception] /home/fairerep/public_html/store/includes/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:5 - Syntax error in template "string:

Thank You {$BILLING.first_name}!

..." on line 5 "

 

 
Today, 08:05 [Exception] /home/fairerep/public_html/store/includes/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:5 - Syntax error in template "string:

Thank You {$BILLING.first_name}!

..." on line 5 "

 

 
Today, 08:04 [Exception] /home/fairerep/public_html/store/includes/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:5 - Syntax error in template "string:

Thank You {$BILLING.first_name}!

..." on line 5 "

 

 
Today, 08:01 [Exception] /home/fairerep/public_html/store/includes/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:5 - Syntax error in template "string:

Thank You {$BILLING.first_name}!

..." on line 5 "

 

 
Today, 08:00 [Exception] /home/fairerep/public_html/store/includes/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:5 - Syntax error in template "string:

Thank You {$BILLING.first_name}!

..." on line 5 "

 

 
Today, 07:58 [Exception] /home/fairerep/public_html/store/includes/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:5 - Syntax error in template "string:

Thank You {$BILLING.first_name}!

..." on line 5 "

 

 
Today, 07:25 [Exception] /home/fairerep/public_html/store/includes/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:5 - Syntax error in template "string:

Thank You {$BILLING.first_name}!

..." on line 5 "

 

 
Today, 07:03 [Exception] /home/fairerep/public_html/store/includes/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:5 - Syntax error in template "string:

Thank You {$BILLING.first_name}!

..." on line 5 "

 

 
Today, 07:03 [Exception] /home/fairerep/public_html/store/includes/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:5 - Syntax error in template "string:

Thank You {$BILLING.first_name}!

..." on line 5 "

 

 
Today, 06:55 [Exception] /home/fairerep/public_html/store/includes/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:5 - Syntax error in template "string:

Thank You {$BILLING.first_name}!

..." on line 5 "

 

 
Today, 06:47 [Exception] /home/fairerep/public_html/store/includes/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:5 - Syntax error in template "string:

Thank You {$BILLING.first_name}!

..." on line 5 "

 

 
Today, 06:33 [Exception] /home/fairerep/public_html/store/includes/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:5 - Syntax error in template "string:

Thank You {$BILLING.first_name}!

..." on line 5 "

 

 
Today, 06:19 [Exception] /home/fairerep/public_html/store/includes/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:5 - Syntax error in template "string:

Thank You {$BILLING.first_name}!

..." on line 5 "

 

 
Today, 00:10 [Exception] /home/fairerep/public_html/store/includes/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:182 - Syntax error in template "file:/home/fairerep/public_html/store/skins/e-trend/templates/main.php" on line 182 "" unclosed {if} tag
Today, 00:10 [Exception] /home/fairerep/public_html/store/includes/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:182 - Syntax error in template "file:/home/fairerep/public_html/store/skins/e-trend/templates/main.php" on line 182 "" unclosed {if} tag

 

Share this post


Link to post
Share on other sites

With respect to the eTrend template, make sure the template main.php has the following at the end:

{if $COOKIE_DIALOGUE}
<form action="{$VAL_SELF}" class="cookies-notify" method="POST">
	<p>{$LANG.notification.cookie_dialogue|replace:'%s':{$CONFIG.store_name}}</p>
	<p{if $COOKIE_DIALOGUE_FAIL} class="retry"{/if}><input type="checkbox" name="accept_cookies" value="1" /> {$LANG.notification.cookie_dialogue_declaration} <input type="submit" name="accept_cookies_submit" value="{$LANG.common.continue}" /></p>
</form>
{/if}

</body>
</html>

As for the others, the email contents for Cart: Order Confirmed has Thank You {$DATA.first_name}!.

Line 5 is:

<p><a href="{$DATA.link}">{$DATA.link}</a></p>

So, in admin, Email Templates, click the Edit link on the Cart: Order Confirmed content template. On the Edit page, click the HTML Content tab. Then click on the editor's Source button. Make sure the fifth line looks like the above. If that looks fine, someone would need to look more closely to discover the actual syntax error.

Share this post


Link to post
Share on other sites

Unfortunately, it is Smarty that crashes PHP when a template has a syntax error. On the other hand, this template is an email, so, probably the email won't be sent but that leaves constructing the page untouched. However, I've seen errors in the templates cause problems in strange places.

 

Share this post


Link to post
Share on other sites

Please confirm the following: In admin, Email Templates, for Cart: Order Confirmation, click the flag of the default language of your store (hopefully, UK or USA).

On the next screen, click the HTML Content tab. Then, click the Source toolbar button on the editor.

Lines 1-5 should read:

<p>Thank You {$DATA.first_name}!</p>

<p>Your order {$DATA.cart_order_id} has been received which was placed on {$DATA.order_date}. Please keep this email for your records. It is possible to view the status of your order online.</p>

<p><a href="{$DATA.link}">{$DATA.link}</a></p>

If any part of the above is different, please describe the difference.

Share this post


Link to post
Share on other sites

This is what it says in Cart: Order Confirmed

 

<p>Thank You {$BILLING.first_name}!</p>

<p>Thank you for placing a order online! Your order {$DATA.cart_order_id} has been received. Please keep this email for your records. It is possible to view the status of your order <a href="https://www.fairerepair.ca/store/index.php?_a=vieworder">here</a></p>

<p><a 100="" href="&lt;!--{cke_protected}%7B%24DATA.link%7D%22%3E%7B%24DATA.link%7D--&gt;&lt;/a&gt;&lt;/p&gt;
&lt;table width="><strong>Billing address:</strong><br />
{$BILLING.first_name|capitalize} {$BILLING.last_name|capitalize}<br />
{if !empty($BILLING.company_name)}{$BILLING.company_name}<br />
{/if} {$BILLING.line1|capitalize}<br />
{if !empty($BILLING.line2)}{$BILLING.line2|capitalize}<br />
{/if} {$BILLING.town|upper}<br />
{if !empty($BILLING.state)}{$BILLING.state|upper}<br>{/if} {$BILLING.postcode}<br />
{$BILLING.country}<br />
{$BILLING.phone}<br />
<br />
<strong>Email:</strong><br />
{$BILLING.email} <strong>Shipping address:</strong><br />
{$SHIPPING.first_name|capitalize} {$SHIPPING.last_name|capitalize}<br />
{if !empty($SHIPPING.company_name)}{$SHIPPING.company_name}<br />
{/if}{$SHIPPING.line1|capitalize}<br />
{if !empty($SHIPPING.line2)}{$SHIPPING.line2|capitalize}<br />
{/if}{$SHIPPING.town|upper}<br />
{if !empty($SHIPPING.state)}{$SHIPPING.state|upper}<br>{/if} {$SHIPPING.postcode}<br />
{$SHIPPING.country} </a></p>

<table border="0" cellpadding="3" cellspacing="0" width="100%">
    <tbody>
        <tr>
            <td><a 100="" href="&lt;!--{cke_protected}%7B%24DATA.link%7D%22%3E%7B%24DATA.link%7D--&gt;&lt;/a&gt;&lt;/p&gt;
&lt;table width="><strong>Item</strong></a></td>
            <td><a 100="" href="&lt;!--{cke_protected}%7B%24DATA.link%7D%22%3E%7B%24DATA.link%7D--&gt;&lt;/a&gt;&lt;/p&gt;
&lt;table width="><strong>Quantity</strong></a></td>
            <td><a 100="" href="&lt;!--{cke_protected}%7B%24DATA.link%7D%22%3E%7B%24DATA.link%7D--&gt;&lt;/a&gt;&lt;/p&gt;
&lt;table width="><strong>Cost</strong></a></td>
        </tr>
        <!--{foreach from=$PRODUCTS item=product}-->
        <tr>
            <td><a 100="" href="&lt;!--{cke_protected}%7B%24DATA.link%7D%22%3E%7B%24DATA.link%7D--&gt;&lt;/a&gt;&lt;/p&gt;
&lt;table width=">{$product.name} <br>{$product.product_options}</a></td>
            <td><a 100="" href="&lt;!--{cke_protected}%7B%24DATA.link%7D%22%3E%7B%24DATA.link%7D--&gt;&lt;/a&gt;&lt;/p&gt;
&lt;table width=">{$product.quantity}</a></td>
            <td><a 100="" href="&lt;!--{cke_protected}%7B%24DATA.link%7D%22%3E%7B%24DATA.link%7D--&gt;&lt;/a&gt;&lt;/p&gt;
&lt;table width=">{$product.price}</a></td>
        </tr>
        <!--{/foreach}-->
        <tr>
            <td><a 100="" href="&lt;!--{cke_protected}%7B%24DATA.link%7D%22%3E%7B%24DATA.link%7D--&gt;&lt;/a&gt;&lt;/p&gt;
&lt;table width=">&nbsp;</a></td>
            <td><a 100="" href="&lt;!--{cke_protected}%7B%24DATA.link%7D%22%3E%7B%24DATA.link%7D--&gt;&lt;/a&gt;&lt;/p&gt;
&lt;table width=">{if !empty($DATA.ship_method)}{$DATA.ship_method}:{if !empty($DATA.ship_product)} ({$DATA.ship_product}){/if}{else}Shipping:{/if}</a></td>
            <td><a 100="" href="&lt;!--{cke_protected}%7B%24DATA.link%7D%22%3E%7B%24DATA.link%7D--&gt;&lt;/a&gt;&lt;/p&gt;
&lt;table width=">{$DATA.shipping}</a></td>
        </tr>
        <tr>
            <td><a 100="" href="&lt;!--{cke_protected}%7B%24DATA.link%7D%22%3E%7B%24DATA.link%7D--&gt;&lt;/a&gt;&lt;/p&gt;
&lt;table width=">&nbsp;</a></td>
            <td><a 100="" href="&lt;!--{cke_protected}%7B%24DATA.link%7D%22%3E%7B%24DATA.link%7D--&gt;&lt;/a&gt;&lt;/p&gt;
&lt;table width=">Discount:</a></td>
            <td><a 100="" href="&lt;!--{cke_protected}%7B%24DATA.link%7D%22%3E%7B%24DATA.link%7D--&gt;&lt;/a&gt;&lt;/p&gt;
&lt;table width=">{$DATA.discount}</a></td>
        </tr>
        <tr>
            <td><a 100="" href="&lt;!--{cke_protected}%7B%24DATA.link%7D%22%3E%7B%24DATA.link%7D--&gt;&lt;/a&gt;&lt;/p&gt;
&lt;table width=">&nbsp;</a></td>
            <td><a 100="" href="&lt;!--{cke_protected}%7B%24DATA.link%7D%22%3E%7B%24DATA.link%7D--&gt;&lt;/a&gt;&lt;/p&gt;
&lt;table width=">Subtotal:</a></td>
            <td><a 100="" href="&lt;!--{cke_protected}%7B%24DATA.link%7D%22%3E%7B%24DATA.link%7D--&gt;&lt;/a&gt;&lt;/p&gt;
&lt;table width=">{$DATA.subtotal}</a></td>
        </tr>
        <!--{foreach from=$TAXES item=tax}-->
        <tr>
            <td><a 100="" href="&lt;!--{cke_protected}%7B%24DATA.link%7D%22%3E%7B%24DATA.link%7D--&gt;&lt;/a&gt;&lt;/p&gt;
&lt;table width=">&nbsp;</a></td>
            <td><a 100="" href="&lt;!--{cke_protected}%7B%24DATA.link%7D%22%3E%7B%24DATA.link%7D--&gt;&lt;/a&gt;&lt;/p&gt;
&lt;table width=">{$tax.tax_name}: ({$tax.tax_percent}%)</a></td>
            <td><a 100="" href="&lt;!--{cke_protected}%7B%24DATA.link%7D%22%3E%7B%24DATA.link%7D--&gt;&lt;/a&gt;&lt;/p&gt;
&lt;table width=">{$tax.tax_amount}</a></td>
        </tr>
        <!--{/foreach}-->
        <tr>
            <td><a 100="" href="&lt;!--{cke_protected}%7B%24DATA.link%7D%22%3E%7B%24DATA.link%7D--&gt;&lt;/a&gt;&lt;/p&gt;
&lt;table width=">&nbsp;</a></td>
            <td><a 100="" href="&lt;!--{cke_protected}%7B%24DATA.link%7D%22%3E%7B%24DATA.link%7D--&gt;&lt;/a&gt;&lt;/p&gt;
&lt;table width="><strong>Order Total: </strong></a></td>
            <td><a 100="" href="&lt;!--{cke_protected}%7B%24DATA.link%7D%22%3E%7B%24DATA.link%7D--&gt;&lt;/a&gt;&lt;/p&gt;
&lt;table width="><strong>{$DATA.total}</strong></a></td>
        </tr>
    </tbody>
</table>

<p><a 100="" href="&lt;!--{cke_protected}%7B%24DATA.link%7D%22%3E%7B%24DATA.link%7D--&gt;&lt;/a&gt;&lt;/p&gt;
&lt;table width=">{if !empty($DATA.note_to_customer)} </a></p>

<p><a 100="" href="&lt;!--{cke_protected}%7B%24DATA.link%7D%22%3E%7B%24DATA.link%7D--&gt;&lt;/a&gt;&lt;/p&gt;
&lt;table width=">&quot;{$DATA.note_to_customer}&quot;</a></p>

<p><a 100="" href="&lt;!--{cke_protected}%7B%24DATA.link%7D%22%3E%7B%24DATA.link%7D--&gt;&lt;/a&gt;&lt;/p&gt;
&lt;table width=">{/if}</a></p>

 
3 hours ago, bsmither said:

"If any part of the above is different, please describe the difference."

 

Share this post


Link to post
Share on other sites

We will have to repair this. I've sent you a Private Message.

 

Share this post


Link to post
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.


×
×
  • Create New...