Style attribute is available only for element nodes

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
measan
User
Posts: 33

Style attribute is available only for element nodes

Post by measan »

nothing happen in 2024.6.0 everything is ok
This error appear after export to pdf or export to xls or export to word in phpmaker 2024.7.0
C:\xampp\htdocs\demo1\vendor\imangazaliev\didom\src\DiDom\Element.php(343): Style attribute is available only for element nodes.

CustomTemplateGroupHeader

<table class="ew-table no-border">
  <tr>
    <td>
      <strong>Food Type : </strong> {{{food_type}}}
    </td>
  </tr>
</table>
<br>
<table class="table table-bordered table-sm ew-table ew-export-table w-100">
  <!-- table.ew-table (with border) -->
  <tr>
    <th>{{{caption food_nme}}}</th>
    <th>{{{caption food_price}}}</th>
    <th>{{{caption date_in}}}</th>
    <th>{{{caption long_day}}}</th>
  </tr>

CustomTemplateBody

<tr>
  <td>{{{food_nme}}}</td>
  <td>{{{food_price}}}</td>
  <td>{{{date_in}}}</td>
  <td>{{{long_day}}}</td>
</tr>

Webmaster
User
Posts: 9427

Post by Webmaster »

Update template and try again.


Post Reply