Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

Message error "Contained no data" ??

Quote Reply
Message error "Contained no data" ??
I just re-installed links 2.0 for the second time on a new server. Now, when I buiding pages I don't get any errors. But, when I want to see the result at my web site the index.html apear blank for each categories !?. I have 300 links in my data base in the different categories pages. I dont change any TEMPLATE, I just tranfert to other server !? Same problem with search result page, exemple: 60 links found but nothing apear in page !?

any idea ???

thank

Quote Reply
Re: Message error "Contained no data" ?? In reply to
As mentioned a number of times in many Threads in the Links 2.0 forums...make sure that your tags are on separate lines in your template files:

Example:

Code:

<%if links%>
<%links%>
<%endif%>


in the category.html file.

Example:

Code:

<%if link_results%>
<%link_results%>
<%endif%>


in the search_results.html

OR download the Enhanced Template.pm codes in the Resource Center that will allow you to have tags on the same line, like:

Code:

<%if links%><%links%><%endif%>


Regards,

Eliot Lee

Quote Reply
Re: Message error "Contained no data" ?? In reply to
Ok, but on my other server Links 2.0 working find with the same templates files ???? I don't change anything on the templates ??


Quote Reply
Re: Message error "Contained no data" ?? In reply to
Well...the reason that the links are not showing up is because your tags are malformatted. Your template files could've been screwed up when you transferred them to your new server...

Regards,

Eliot Lee

Quote Reply
Re: Message error "Contained no data" ?? In reply to
This is the the line with tag in my category.html file:


<%if related%>
<h2>Related Categories:</h2>
<ul><%related%></ul>
<%endif%>

It is correct?

Quote Reply
Re: Message error "Contained no data" ?? In reply to
That is correct for the Related Categories...What do you have for the links (<%links%>) and categories (<%category%>)?

Regards,

Eliot Lee

Quote Reply
Re: Message error "Contained no data" ?? In reply to
the complet cod in category.html file:


<%if category%>
<h2>Categories:</h2>
<%category%>
<%endif%>


<%if links%>
<h2>Links: </h2>
<%links%>
<%endif%>


<p align=center>
<%if prev%>
<small><a href="<%prev%>">Prev <%build_links_per_page%></a></small>
<%endif%>
<%if next%>
<small><a href="<%next%>">Next <%build_links_per_page%></a></small>
<%endif%>
</p>


Quote Reply
Re: Message error "Contained no data" ?? In reply to
Well, those codes look correct. I would try to install the default copies of the template files and see what happens.

Regards,

Eliot Lee

Quote Reply
Re: Message error "Contained no data" ?? In reply to
I try but I have the same problem...


Quote Reply
Re: Message error "Contained no data" ?? In reply to
I try but I have the same problem...