Page 1 of 1

users tag, php code and Smarty error: unable to read resource message

Posted: Fri Sep 28, 2007 3:56 pm
by xshark
Hello,

Please help me. I was write own tag (plugin) and this plugin is work correctly, but generated this messages:

string(64) "Smarty error: unable to read resource: "globalcontent:navigacio"" string(64) "Smarty error: unable to read resource: "globalcontent:navigacio""

The navigacio is my navigation html blob bottom of the pages. I know several variables is restricted in the CMS, but my plugin dont use thiese (i think it :))

My plugin begin this:

Code: Select all

function smarty_cms_function_vivanetpartner($params, &$smarty)
    {
   $partner_host="localhost";
   $partner_user="shark";
   $partner_pass="49363947";
   $partner_database="vivanet";

    global $gCms;
    $pageinfo=&$gCms->variables['pageinfo'];
    $config=&$gCms->GetConfig();

    $partner_conn=&ADONewConnection('mysql', 'menu');
    $partner_conn->PConnect($partner_host, $partner_user, $partner_pass, $partner_database);

If i close this function this point, even if cause this smarty error messages.

Can anybody help me? Thanx!

Re: users tag, php code and Smarty error: unable to read resource message

Posted: Sun Sep 30, 2007 3:28 pm
by xshark
anybody?

Re: users tag, php code and Smarty error: unable to read resource message

Posted: Sun Sep 30, 2007 3:34 pm
by calguy1000
try calling adodb_connect() at the exit point(s) of your UDT.

Re: users tag, php code and Smarty error: unable to read resource message

Posted: Sun Sep 30, 2007 9:20 pm
by xshark
Hello Calguy1000,

Thank you the answare, but i dont know what i doing.. What are mean the exit points? Where my code go to exit ? The PConnect function is wrong?

Thank you!

Tamas