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

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Post Reply
xshark

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

Post 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!
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

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

Post by calguy1000 »

try calling adodb_connect() at the exit point(s) of your UDT.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
xshark

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

Post 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
Post Reply

Return to “Tips and Tricks”