Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Support / AdsManager Support / Error When trying to Save an Invoice

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

Error When trying to Save an Invoice

  • expressmove
  • Topic Author
  • Offline
  • Silver
  • Silver
More
10 years 4 months ago #20966 by expressmove
Error When trying to Save an Invoice was created by expressmove
Hello Support Ads Manager,
I get this error, whenever I am trying to save an invoice. Also I get similar error in the frontend when I try to pay from something with Virtual money credits. I have tried to run a new installation of all Ads Manager itself and all the other ads manager components including invoicing, Paid system and virtual money but still the error persists.

Whenever for example, I set the status of and invoice to "Paid" and I click on "Save" at the backend, this error shows up but then the status of the invoice will be updated to the "Paid" alright.

Array
(
    [0] => LibXMLError Object
        (
            [level] => 3
            [code] => 76
            [column] => 6
            [message] => Opening and ending tag mismatch: br line 11 and tr
 
            [file] => 
            [line] => 13
        )
 
    [1] => LibXMLError Object
        (
            [level] => 3
            [code] => 76
            [column] => 10
            [message] => Opening and ending tag mismatch: td line 9 and table
 
            [file] => 
            [line] => 14
        )
 
    [2] => LibXMLError Object
        (
            [level] => 3
            [code] => 76
            [column] => 11
            [message] => Opening and ending tag mismatch: tr line 7 and div
 
            [file] => 
            [line] => 15
        )
 
    [3] => LibXMLError Object
        (
            [level] => 3
            [code] => 76
            [column] => 25
            [message] => Opening and ending tag mismatch: br line 23 and p
 
            [file] => 
            [line] => 26
        )
 
    [4] => LibXMLError Object
        (
            [level] => 3
            [code] => 76
            [column] => 22
            [message] => Opening and ending tag mismatch: p line 22 and td
 
            [file] => 
            [line] => 27
        )
 
    [5] => LibXMLError Object
        (
            [level] => 3
            [code] => 76
            [column] => 25
            [message] => Opening and ending tag mismatch: br line 33 and p
 
            [file] => 
            [line] => 35
        )
 
    [6] => LibXMLError Object
        (
            [level] => 3
            [code] => 76
            [column] => 22
            [message] => Opening and ending tag mismatch: br line 32 and td
 
            [file] => 
            [line] => 36
        )
 
    [7] => LibXMLError Object
        (
            [level] => 3
            [code] => 76
            [column] => 18
            [message] => Opening and ending tag mismatch: p line 31 and tr
 
            [file] => 
            [line] => 37
        )
 
    [8] => LibXMLError Object
        (
            [level] => 3
            [code] => 76
            [column] => 18
            [message] => Opening and ending tag mismatch: td line 28 and table
 
            [file] => 
            [line] => 38
        )
 
    [9] => LibXMLError Object
        (
            [level] => 3
            [code] => 76
            [column] => 11
            [message] => Opening and ending tag mismatch: td line 19 and div
 
            [file] => 
            [line] => 39
        )
 
    [10] => LibXMLError Object
        (
            [level] => 3
            [code] => 76
            [column] => 8
            [message] => Opening and ending tag mismatch: tr line 18 and page
 
            [file] => 
            [line] => 115
        )
 
    [11] => LibXMLError Object
        (
            [level] => 3
            [code] => 76
            [column] => 29
            [message] => Opening and ending tag mismatch: table line 17 and body
 
            [file] => 
            [line] => 115
        )
 
    [12] => LibXMLError Object
        (
            [level] => 3
            [code] => 76
            [column] => 36
            [message] => Opening and ending tag mismatch: div line 16 and html
 
            [file] => 
            [line] => 115
        )
 
    [13] => LibXMLError Object
        (
            [level] => 3
            [code] => 77
            [column] => 36
            [message] => Premature end of data in tag table line 7
 
            [file] => 
            [line] => 115
        )
 
    [14] => LibXMLError Object
        (
            [level] => 3
            [code] => 77
            [column] => 36
            [message] => Premature end of data in tag div line 6
 
            [file] => 
            [line] => 115
        )
 
    [15] => LibXMLError Object
        (
            [level] => 3
            [code] => 77
            [column] => 36
            [message] => Premature end of data in tag page line 4
 
            [file] => 
            [line] => 115
        )
 
    [16] => LibXMLError Object
        (
            [level] => 3
            [code] => 77
            [column] => 36
            [message] => Premature end of data in tag body line 2
 
            [file] => 
            [line] => 115
        )
 
    [17] => LibXMLError Object
        (
            [level] => 3
            [code] => 77
            [column] => 36
            [message] => Premature end of data in tag html line 2
 
            [file] => 
            [line] => 115
        )
 
)
More
10 years 4 months ago #20970 by loic
Replied by loic on topic Error When trying to Save an Invoice
Hello,

check your invoice and order template in the backend of the component Invoicing.
I think that error is caused because the HTML used to generate the PDF has errors.

Best regards.
  • expressmove
  • Topic Author
  • Offline
  • Silver
  • Silver
More
10 years 4 months ago #21031 by expressmove
Replied by expressmove on topic Error When trying to Save an Invoice
Thank you loic, for the reply,
Actually I haven't tried to edit those templates before. And I have checked those templates, I can't see where there is mismatch of tags. I was thinking about replacing some of the invoicing component folders/files on my server with new invoicing component folders or files from fresh installation. Regarding this invoicing issue, please which folder or file would you suggest I should replace. Hope that can solve the problem.

Thanks
More
10 years 4 months ago #21039 by loic
Replied by loic on topic Error When trying to Save an Invoice
Hello,

You don't have to replace any files or folders, the html template for the pdf are in the backend of your website 'Components -> Invoicing -> Setting -> Template'.

Best regards.
  • expressmove
  • Topic Author
  • Offline
  • Silver
  • Silver
More
10 years 4 months ago - 10 years 4 months ago #21070 by expressmove
Replied by expressmove on topic Error When trying to Save an Invoice
Hello I have tried to replace all the HTML codes in all templates at the backend with fresh ones that worked on another site. Still it did not solve the problem. SO I have pasted the HTML codes here if u can help me spot what's wrong in them. There HTML are from the site where I am having the problem. I pasted the HTML in my NotePad++ but each open tag had a closing tag. I couldn't see the errors in the HTML. Thanks
THE ORDER TEMPLATE 
 
<style type="text/css">
h1, h2, h3, h4, h5, h6{
    margin: 0px;
    padding: 0px;
    line-height: 1.5em;
}
h3{
    margin-bottom: 3mm;
    color: #16a4ec;
}
h5{
    font-size: 12pt;
    margin-bottom: 2mm;
}
page{
    color: #595959;
}
.invoiceId{
    margin-top: 40mm;
    margin-left: 10mm;
}
.fromCont{
    margin-left: 10mm;
}
.totalCont{
    margin-top: 10mm;
    width: 100%;
}
.fromCont{
    margin-top: 10mm;
}
.fromCont td{
    width: 90mm;
}
.invoiceCont{
    margin-top: 10mm;
}
th{
    background: #16a4ec;
    color: #ffffff;
    padding: 5mm 5mm 2mm 5mm;
}
.invoiceCont td, .totalCont td{
    padding: 5mm;
}
td.bordered, .invoiceCont td{
    border-bottom: 1px solid #e0e0e0;
}
th.firstCell, td.firstCell{
    text-align: left;
    padding: 5mm 5mm 5mm 10mm;
}
.notesCont{
    margin-top: 10mm;
    padding-left: 10mm;
}
.totalRow td{
    font-size: 16pt;
    font-weight: bold;
    line-height: 16pt;
    padding-bottom: 0mm;
}
</style>
<page>
    <div class="invoiceId">
        <table width="80%"><tr><td width="100%">
<img src="{vendor_logo}" />
</td><td width="50%"  class="logo" >
   <h5>[INVOICING_COMMON_ORDER] {invoice_number}</h5>
        <br>
        <span>[INVOICING_COMMON_DATE] {invoice_date}</span>
</tr>
</table>
    </div>
    <div class="fromCont">
        <table width="100%">
            <tr>
                <td>
 
                    <h3>{vendor_company_name}</h3>
                    <p>
                    {vendor_address1} {vendor_address2}<br>
                    {vendor_city}<br/>
                    {vendor_country}
                    </p>
                </td>
                <td>
                    [INVOICING_CUSTOMER_INFORMATION]
                    <h3>{customer_name}</h3>
                    <p>
                        {customer_address1} {customer_address2}<br>
                        {customer_zip} {customer_city}<br>
                        {customer_country}
                    </p>
                </td>
            </tr>
        </table>
    </div>
    <div class="invoiceCont">
        <table style="width:100%;">
            <thead>
                <tr>
                    <th style="width:40%;" class="firstCell">
                        [INVOICING_COMMON_DESCRIPTION]
                    </th>
                    <th style="width:18%;" align="left">
                        [INVOICING_COMMON_UNIT_PRICE]
                    </th>
                    <th style="width:12%;" align="left">
                        [INVOICING_COMMON_QUANTITY]
                    </th>
                    <th style="width:30%;" align="right">
                        [INVOICING_COMMON_UNIT_PRICE]
                    </th>
                </tr>
            </thead>
            <tbody>
                {item_start}
                <tr>
                    <td class="firstCell">
                        {item_name}
                    </td>
                    <td>
                        {item_net_unit_price}
                    </td>
                    <td>
                        {item_quantity}
                    </td>
                    <td align="right">
                        {item_net_amount}
                    </td>
                </tr>
                {item_end}
            </tbody>
        </table>
    </div>
    <div class="totalCont">
        <table style="width:100%;">
            <tbody>
                <tr>
                    <td style="width:40%;"></td>
                    <td class="bordered" style="width:35%;">
                        [INVOICING_DISCOUNT_TTC] :
                    </td>
                    <td class="bordered" style="width:25%;" align="right">
                        {invoice_gross_discount_amount}
                    </td>
                </tr>
                <tr>
                    <td style="width:40%;"></td>
                    <td class="bordered" style="width:35%;">
                        [INVOICING_COMMON_TAX] :
                    </td>
                    <td class="bordered" style="width:25%;" align="right">
                        {invoice_tax_amount}
                    </td>
                </tr>
                <tr class="totalRow">
                    <td style="width:40%;"></td>
                    <td class="bordered" style="width:35%;">
                        [INVOICING_COMMON_AMOUNT_WITH_TAX] :
                    </td>
                    <td class="bordered" style="width:25%;" align="right">
                        {invoice_gross_amount}
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    <div class="notesCont">
        <h5>[INVOICING_INVOICE_NOTES] :</h5>
        <p>{invoice_notes}</p>
    </div>
</page>  
 

INVOICE TEMPLATE
 
<style type="text/css">h1,h2,h3,h4,h5,h6{margin:0px;padding:0px;line-height:1.5em}h3{margin-bottom:3mm;color:#16a4ec}h5{font-size:12pt;margin-bottom:2mm}page{color:#595959}.invoiceId{margin-top:10mm;margin-left:10mm}.fromCont{margin-left:10mm}.totalCont{margin-top:10mm;width:100%}.fromCont{margin-top:10mm}.fromCont td{width:90mm}.invoiceCont{margin-top:10mm}th{background:#16a4ec;color:#fff;padding:5mm 5mm 2mm 5mm}.invoiceCont td,.totalCont td{padding:5mm}td.bordered,.invoiceCont td{border-bottom:1px solid #e0e0e0}th.firstCell,td.firstCell{text-align:left;padding:5mm 5mm 5mm 10mm}.notesCont{margin-top:10mm;padding-left:10mm}.totalRow td{font-size:16pt;font-weight:bold;line-height:16pt;padding-bottom:0mm}
.logo { text-align:right;}</style>
<page>
 
    <div class="invoiceId">
        <table width="80%"><tr><td width="100%">
<img src="{vendor_logo}" />
</td><td width="50%"  class="logo" >
   <h5>[INVOICING_COMMON_ORDER] {invoice_number}</h5>
        <br>
        <span>[INVOICING_COMMON_DATE] {invoice_date}</span>
</tr>
</table>
    </div>
    <div class="fromCont">
        <table width="100%">
            <tr>
                <td>
                    [INVOICING_COMMON_VENDOR]
                    <h3>{vendor_company_name}</h3>
                    <p>
                    {vendor_address1} {vendor_address2}<br>
                    {vendor_city}<br/>
                    {vendor_country}
                    </p>
                </td>
                <td>
                    [INVOICING_CUSTOMER_INFORMATION]
                    <h3>{customer_name}</h3>
                    <p>
                        {customer_address1} {customer_address2}<br>
                        {customer_zip} {customer_city}<br>
                        {customer_country}
                    </p>
                </td>
            </tr>
        </table>
    </div>
    <div class="invoiceCont">
        <table style="width:100%;">
            <thead>
                <tr>
                    <th style="width:40%;" class="firstCell">
                        [INVOICING_COMMON_DESCRIPTION]
                    </th>
                    <th style="width:18%;" align="left">
                        [INVOICING_COMMON_UNIT_PRICE]
                    </th>
                    <th style="width:12%;" align="left">
                        [INVOICING_COMMON_QUANTITY]
                    </th>
                    <th style="width:30%;" align="right">
                        [INVOICING_COMMON_UNIT_PRICE]
                    </th>
                </tr>
            </thead>
            <tbody>
                {item_start}
                <tr>
                    <td class="firstCell">
                        {item_name}
                    </td>
                    <td>
                        {item_net_unit_price}
                    </td>
                    <td>
                        {item_quantity}
                    </td>
                    <td align="right">
                        {item_net_amount}
                    </td>
                </tr>
                {item_end}
            </tbody>
        </table>
    </div>
    <div class="totalCont">
        <table style="width:100%;">
            <tbody>
                <tr>
                    <td style="width:40%;"></td>
                    <td class="bordered" style="width:35%;">
                        [INVOICING_DISCOUNT_TTC] :
                    </td>
                    <td class="bordered" style="width:25%;" align="right">
                        {invoice_gross_discount_amount}
                    </td>
                </tr>
                <tr>
                    <td style="width:40%;"></td>
                    <td class="bordered" style="width:35%;">
                        [INVOICING_COMMON_TAX] :
                    </td>
                    <td class="bordered" style="width:25%;" align="right">
                        {invoice_tax_amount}
                    </td>
                </tr>
                <tr class="totalRow">
                    <td style="width:45%;"></td>
                    <td class="bordered" style="width:35%;">
                        [INVOICING_COMMON_AMOUNT_WITH_TAX] :
                    </td>
                    <td class="bordered" style="width:25%;" align="right">
                        {invoice_gross_amount}
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    <div class="notesCont">
        <h5>[INVOICING_INVOICE_NOTES] :</h5>
        <p>{invoice_notes}</p>
    </div>
</page>               
QUOTE TEMPLATE
 
<style type="text/css">
h1, h2, h3, h4, h5, h6{
    margin: 0px;
    padding: 0px;
    line-height: 1.5em;
}
h3{
    margin-bottom: 3mm;
    color: #16a4ec;
}
h5{
    font-size: 12pt;
    margin-bottom: 2mm;
}
page{
    color: #595959;
}
.invoiceId{
    margin-top: 40mm;
    margin-left: 10mm;
}
.fromCont{
    margin-left: 10mm;
}
.totalCont{
    margin-top: 10mm;
    width: 100%;
}
.fromCont{
    margin-top: 10mm;
}
.fromCont td{
    width: 90mm;
}
.invoiceCont{
    margin-top: 10mm;
}
th{
    background: #16a4ec;
    color: #ffffff;
    padding: 5mm 5mm 2mm 5mm;
}
.invoiceCont td, .totalCont td{
    padding: 5mm;
}
td.bordered, .invoiceCont td{
    border-bottom: 1px solid #e0e0e0;
}
th.firstCell, td.firstCell{
    text-align: left;
    padding: 5mm 5mm 5mm 10mm;
}
.notesCont{
    margin-top: 10mm;
    padding-left: 10mm;
}
.totalRow td{
    font-size: 16pt;
    font-weight: bold;
    line-height: 16pt;
    padding-bottom: 0mm;
}
</style>
<page>
    <div class="invoiceId">
        <table width="80%"><tr><td width="100%">
<img src="{vendor_logo}" />
</td><td width="50%"  class="logo" >
   <h5>[INVOICING_COMMON_ORDER] {invoice_number}</h5>
        <br>
        <span>[INVOICING_COMMON_DATE] {invoice_date}</span>
</tr>
</table>
    </div>
    <div class="fromCont">
        <table width="100%">
            <tr>
                <td>
                    [INVOICING_COMMON_VENDOR]
                    <h3>{vendor_company_name}</h3>
                    <p>
                    {vendor_address1} {vendor_address2}<br>
                    {vendor_city}<br/>
                    {vendor_country}
                    </p>
                </td>
                <td>
                    [INVOICING_CUSTOMER_INFORMATION]
                    <h3>{customer_name}</h3>
                    <p>
                        {customer_address1} {customer_address2}<br>
                        {customer_zip} {customer_city}<br>
                        {customer_country}
                    </p>
                </td>
            </tr>
        </table>
    </div>
    <div class="invoiceCont">
        <table style="width:100%;">
            <thead>
                <tr>
                    <th style="width:40%;" class="firstCell">
                        [INVOICING_COMMON_DESCRIPTION]
                    </th>
                    <th style="width:18%;" align="left">
                        [INVOICING_COMMON_UNIT_PRICE]
                    </th>
                    <th style="width:12%;" align="left">
                        [INVOICING_COMMON_QUANTITY]
                    </th>
                    <th style="width:30%;" align="right">
                        [INVOICING_COMMON_UNIT_PRICE]
                    </th>
                </tr>
            </thead>
            <tbody>
                {item_start}
                <tr>
                    <td class="firstCell">
                        {item_name}
                    </td>
                    <td>
                        {item_net_unit_price}
                    </td>
                    <td>
                        {item_quantity}
                    </td>
                    <td align="right">
                        {item_net_amount}
                    </td>
                </tr>
                {item_end}
            </tbody>
        </table>
    </div>
    <div class="totalCont">
        <table style="width:100%;">
            <tbody>
                <tr>
                    <td style="width:40%;"></td>
                    <td class="bordered" style="width:35%;">
                        [INVOICING_DISCOUNT_TTC] :
                    </td>
                    <td class="bordered" style="width:25%;" align="right">
                        {invoice_gross_discount_amount}
                    </td>
                </tr>
                <tr>
                    <td style="width:40%;"></td>
                    <td class="bordered" style="width:35%;">
                        [INVOICING_COMMON_TAX] :
                    </td>
                    <td class="bordered" style="width:25%;" align="right">
                        {invoice_tax_amount}
                    </td>
                </tr>
                <tr class="totalRow">
                    <td style="width:40%;"></td>
                    <td class="bordered" style="width:35%;">
                        [INVOICING_COMMON_AMOUNT_WITH_TAX] :
                    </td>
                    <td class="bordered" style="width:25%;" align="right">
                        {invoice_gross_amount}
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    <div class="notesCont">
        <h5>[INVOICING_INVOICE_NOTES] :</h5>
        <p>{invoice_notes}</p>
    </div>
</page> 
 
Last edit: 10 years 4 months ago by expressmove.
More
10 years 4 months ago #21080 by loic
Replied by loic on topic Error When trying to Save an Invoice
Hello,

The HTML must be perfect in the template.

In your file, I see '<br>', tht is not right, it must be '<br/>'.

I didn't look at that in details, but what you can do is removed part of the code and test the pdf to see if it works. Once the pdf is generated correctly, you will know where the error is.

Best regards.
Time to create page: 0.068 seconds
Powered by Kunena Forum