5.2.14 update broked printing!

To be honest there should be no reason printing would just stop working. Did you try removing and adding printers again in sambapos?

No, if i cannot restore old DB I will try to reinstall printers

This doesn’t work too
 I tried to google this problem and people speaking about the same problem in programs which working with SQL.

So when I used standart template from samples, I don’t had the error. I think is problem with ticket template syntax, maybe in new version was deleted some functions for HTML printers or modified?

I can’t to restore old version. pls help me with ticket template problem!

Ok I’ll look at it one second.

1 Like

Thank you!
I tested more solutions and I am sure that the problem lies in the ticket template. Changing printer types and re-creation doesn’t work.

Download notepad++ and paste into that with HTML highlighting/colours.
Is a great way to check your opening/closing brackets/quotes/>< etc

Ok so i Figured it out. The nested tags at beginning of your template.

[LAYOUT]
<div style="font-size:12px;font-family:Calibri">
<table>
<tr>
<td width=130 align=Left>Bar order</td> <td width=90 align=Right>{TICKET TIME}</td>
</tr>
<tr>
<td width=130 align=Left>Time:</td> <td width=90 align=Right>{TICKET TIME}</td>
</tr>
<tr>
<td width=130 align=Left>Date:</td> <td width=90 align=Right>{TICKET DATE}</td>
</tr>
<tr>
<td width=130 align=Left>Waiter:<td> <td width=90 align=Right>{USER NAME}</td>
</tr>
<tr>
<td width=130 align=Left>{TICKET TYPE} No:</td> <td width=90 align=Right>{TICKET NO}</td>

See where you have TICKET TIME and USERNAME all of those if you remove those extra td tags it works.

Example this works:

[LAYOUT]
<div style="font-size:12px;font-family:Calibri">
<table>
<tr>
<td width=130 align=Left>Bar order</td>
</tr>
<tr>
<td width=130 align=Left>Time:</td>
</tr>
<tr>
<td width=130 align=Left>Date:</td>
</tr>
<tr>
<td width=130 align=Left>Waiter:<td>
</tr>
<tr>
<td width=130 align=Left>{TICKET TYPE} No:</td>
1 Like

No problem, but it works in 5.2.12


Just get rid of the spaces between them. example.

[LAYOUT]
<div style="font-size:12px;font-family:Calibri">
<table>
<tr>
<td width=130 align=Left>Bar order</td><td width=90 align=Right>{TICKET TIME}</td>
</tr>
<tr>
<td width=130 align=Left>Time:</td><td width=90 align=Right>{TICKET TIME}</td>
</tr>
<tr>
<td width=130 align=Left>Date:</td><td width=90 align=Right>{TICKET DATE}</td>
</tr>
<tr>
<td width=130 align=Left>Waiter:<td><td width=90 align=Right>{USER NAME}</td>
</tr>
<tr>
<td width=130 align=Left>{TICKET TYPE} No:</td><td width=90 align=Right>{TICKET NO}</td>

He fixed some stuff that broke yours because you were writing it wrong. This also produces same result and is correct way to write it.

[LAYOUT]
<div style="font-size:12px;font-family:Calibri">
<table>
<tr>
<td width=130 align=Left>Bar order</td>
<td width=90 align=Right>{TICKET TIME}</td>
</tr>
<tr>
<td width=130 align=Left>Time:</td>
<td width=90 align=Right>{TICKET TIME}</td>
</tr>
<tr>
<td width=130 align=Left>Date:</td>
<td width=90 align=Right>{TICKET DATE}</td>
</tr>
<tr>
<td width=130 align=Left>Waiter:<td>
<td width=90 align=Right>{USER NAME}</td>
</tr>
<tr>
<td width=130 align=Left>{TICKET TYPE} No:</td>
<td width=90 align=Right>{TICKET NO}</td>
1 Like

So a fix in 5.2.14 broke yours because you wrote your html wrong. But just write it like I showed and you should be fine.

1 Like

The last fix from you works! Thank you, I will fix it!

So the way I figured it out was just deleting chunks of the template until the error went away. I knew right away it was a template error.

2 Likes