Problem with globalcontent:footer when using "user defined tags"

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
moiv

Problem with globalcontent:footer when using "user defined tags"

Post by moiv »

Hi,

I want to insert content from a database into my pages. I have created a new "user-defined tag" with my php code and without the php quotes. And in my page I have inserted my {user-defined tag}. The php code works and the relevant data ís properly displayed one the page. However in the footer section I get this error message:

string(61) "Smarty error: unable to read resource: "globalcontent:footer"" string(61) "Smarty error: unable to read resource: "globalcontent:footer""

I haven't altered anything regarding the footer tag in the template and the problem occurs both when I try it on a new content page , when I try it on an existing default page and if I try to insert the tag in the template.

Any help to solve this problem?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Problem with globalcontent:footer when using "user defined tags"

Post by Dr.CSS »

That usually means that it's not there to be read, have you deleted it or changed the name of it?
moiv

Re: Problem with globalcontent:footer when using "user defined tags"

Post by moiv »

mark wrote: That usually means that it's not there to be read, have you deleted it or changed the name of it?
Well that is exactly the problem I don't understand - I haven't touched anything else. I have only defined the tags and inserted them on the page. As soon as I delete the tag, the footer is displayed without an error message?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Problem with globalcontent:footer when using "user defined tags"

Post by Dr.CSS »

Any chance you could post the template code?
moiv

Re: Problem with globalcontent:footer when using "user defined tags"

Post by moiv »

mark wrote: Any chance you could post the template code?
Thank you - I have pasted it below. This is the original template code, apart from minor changes of titles. I have just discovered that the template code is automatically altered when I enter the tag into the relevant page. Apparently the footer part (typed in bold at the end of the template code) disappears when I use the tag? How can this be avoided?








{sitename} - {title}


{metadata}



{stylesheet}


{cms_selflink dir="start" rellink=1}
{cms_selflink dir="prev" rellink=1}
{cms_selflink dir="next" rellink=1}



{literal}

=b){nw=b+"px";}if(w



#pagewrapper {width:expression(P7_MinMaxW(720,950));}
#container {height: 1%;}


{/literal}









   
   
      {anchor anchor='menu_vert' title='Skip to navigation' accesskey='n' text='Skip to navigation'}
      {anchor anchor='main' title='Skip to content' accesskey='s' text='Skip to content'}
   
   


   
   


   
   
           {cms_selflink dir="start" text="$sitename"}
   
   
   


   


   
   
        {breadcrumbs starttext='You are here' root='Home' delimiter='»'}
   
   
   


   
   

     
     

     
     
         Navigation
         {menu template='simple_navigation.tpl' collapse='1'}
     
     

     
     
         Nyheder
          {news limit=3 detailpage='news'}
     
     

     
     


     
     
         {print showbutton=true script=true}
         {title}
         {content}

         


         


{anchor anchor='main' text='^ Top'}

         
            {cms_selflink dir="previous" label="Previous page: "}

            {cms_selflink dir="next"}
         
         


     
           
 


   
   


   
   
   {global_content name='footer'}
      
   





moiv

Re: Problem with globalcontent:footer when using "user defined tags"

Post by moiv »

Sorry - I don't know why it appeared as I wrote in the last reply. I have just made another test and the template stayes unaltered when I insert the tag on the page. So the template code is excatly as it appears after the tag has been inserted.
dmizer

Re: Problem with globalcontent:footer when using "user defined tags"

Post by dmizer »

i'll bump this with a hearty "me too".  i don't see a solution posted yet, and searches have not revealed any other possible solutions.
webropa

Re: Problem with globalcontent:footer when using "user defined tags"

Post by webropa »

Hi All,
I dont know if this will help you, but, I was getting the "string61" error and found that thanks to Member "aravenwood" that the problem was I was inserting data from an outside database.

I inserted the required tables from that database into CMS database and renamed the tables with the "cms_" prefix and that solved the problem for me.
OOpabloOO
New Member
New Member
Posts: 7
Joined: Sat Aug 02, 2008 6:40 pm

Re: Problem with globalcontent:footer when using "user defined tags"

Post by OOpabloOO »

Hi all,
I've got the same problem here. I'm using CMSMS 1.3.1, and the template is the same for all pages...
I cannot move the tables inside cmsms db nor renaming them.
Should I consider this a bug and reporting it into the dev section?
Tnx
Locked

Return to “CMSMS Core”