<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    I have created a custom module which I want to use with webforms.<br>
    <br>
    My webform post was failing due to getEntityModuleInfo failing.<br>
    <br>
    this appears to be because there was no entry in <i>vtiger_entityname
    </i>so I added this:<br>
    <table id="table_results" class="ajax pma_table">
      <tbody>
        <tr class="odd">
          <td class="data grid_edit not_null relation condition nowrap "
            align="right"><span>52</span></td>
          <td class="data grid_edit not_null condition "><span>VCLvisitors</span></td>
          <td class="data grid_edit not_null condition "><span>vtiger_vclvisitors</span></td>
          <td class="data grid_edit not_null condition "><span>vclvisitorsid</span></td>
          <td class="data grid_edit not_null condition "><span>vclvisitorsid</span></td>
          <td class="data grid_edit not_null condition "><span>vclvisitorsid</span></td>
        </tr>
      </tbody>
    </table>
    <br>
    Unfortunately, once this is added the system is not able to render
    detailview:<br>
    <blockquote type="cite">PHP Fatal error:  Call to a member function
      getPermissions() on a non-object in
      /test/templates_c/vlayout/xxx.file.DetailViewHeaderTitle.tpl.php
      on line 36</blockquote>
    <br>
    So, clearly although this is an issue, my solution is incorrect. Can
    someone please offer me some advice?<br>
    <br>
    TIA<br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Richard Hills
TechnologyWise Ltd, Tauranga, NZ
<a class="moz-txt-link-abbreviated" href="mailto:richard@tw.co.nz">richard@tw.co.nz</a>
<a class="moz-txt-link-abbreviated" href="http://www.technologywise.co.nz">www.technologywise.co.nz</a>
ph: +64 (0)7 571 1060
fax: +64 (0)7 571 1061</pre>
  </body>
</html>