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

Blank index.html pages :(

Quote Reply
Blank index.html pages :(
Please help!!!!

I've installed everything according to the readme.txt file and the admin.cgi is working nicely! I added a few categories and links and then clicked "Build ALL" and "Staggered (auto)". Didn't see any error messages, HOWEVER, when I hit "home page" at the top, it takes me to the main directory (pages) but is BLANK. I checked to see if an index.html file had been created, and it was there, but nothing in it.

Please advise!!!

Many thanks!!!
Quote Reply
Re: Blank index.html pages :( In reply to
I have the exact same problem. If you find a solution please e-mail me right away and I'll do the same for you
Quote Reply
Re: Blank index.html pages :( In reply to
I have the exact same problem. If you find a solution please e-mail me right away and I'll do the same for you
Quote Reply
Re: Blank index.html pages :( In reply to
Are you using templates or non-templates. If templates, check your link.html and home.html files for any tables you may not be closing or some other similar types of errors. Also look in site_html_templates.pl or site_html.pl (if not using templates) at sub site_html_link and sub site_html_home to see if there is anything wrong.

I hope this helps.
Quote Reply
Re: Blank index.html pages :( In reply to
I am not using any templates (yet). I am still in the installation/debugging phase and tried to do a "test" build.

I looked at the 2 lines you mentioned above but how do I know if they are ok?

Can you give me more details on what I should be checking?

I am learning Perl and CGI for the first time "on the fly" so please be patient! Smile

Quote Reply
Re: Blank index.html pages :( In reply to
Can you provide a URL to the home page so I can take a look at it?

Is it possible that your text color and background color are the same, resulting in a blank screen when it really isn't?
Quote Reply
Re: Blank index.html pages :( In reply to
I have gone very carefully through my site html fiel and find no differences in the code. You will find it below.

I am virtualy hosted on Linux machines running Apache.

My web administraion system is called I think "Administrative Suite".

I used it to protect my admin directory as suggested in your documentation.

Could this have somehow protected my other files?

Here are the permissions for my WEBINDEX directory where I plan to build the pages.


drwxrwxrwx WEBINDEX

The permissions for the files:

-rw-r--r-- background.gif
-rwxr--r-- index.html
-rw-r--r-- links.css


Have a look and tell me what you think

Code:
-------------EXTRACT FROM SITE_HTML.PL-----------------

sub site_html_link {
# --------------------------------------------------------
# This routine is used to display what a link should look
# like. It's a little complex looking just because we have to
# check for blank entries..

my (%rec) = @_;

$build_detailed ?
($output = qq~<ul><li><a class="link" href="$build_detail_url/$rec{$db_key}$build_extension">$rec{'Title'}</a>~) :
($output = qq~<ul><li><a class="link" href="$build_jump_url?$db_key=$rec{$db_key}">$rec{'Title'}</a>~);

if ($rec{'Description'}) { $output .= qq~ <span class="descript">- $rec{'Description'}</span>\n~; }
if ($rec{'isNew'} eq "Yes") { $output .= qq~ <small><sup class="new">new</sup></small>~; }
if ($rec{'isPopular'} eq "Yes") { $output .= qq~ <small><sup class="pop">pop</sup></small>~; }

$output .= qq~ <small class="date">(Added: $rec{'Date'} Hits: $rec{'Hits'} Rating: $rec{'Rating'} Votes: $rec{'Votes'}) <a href="$build_rate_url?ID=$rec{'ID'}">Rate It</a></small>
</ul>
~;

return $output;
}

##########################################################
## Home Page ##
##########################################################

sub site_html_home {
# --------------------------------------------------------
# This routine will build a home page. It is not meant to have any
# links on it, only subcategories.
#
# $category : The list of subcategories.
# $time : The current time.
# $date : The current date.
# $grand_total : The total number of links.
#

my ($output);

$output = qq~
<$dtd>
<html>

<head>
<title>$site_title</title>
<meta name="description" content="put your description here">
<meta name="keywords" content="put your keywords here">
<$css>
</head>

<$site_body>

<h1 class="home">$site_title</h1>

$site_menu

<p>Site description</p>

<h2>Categories:</h2>

$category

<p class="grandtotal">There are <strong>$grand_total</strong> links for you to choose from!</p>

$site_search
$site_footer

</body>
</html>
~;

return $output;
}
Quote Reply
Re: Blank index.html pages :( In reply to
The two routines in site_html.pl I mentioned should look like this:

Code:
sub site_html_link {
# --------------------------------------------------------
# This routine is used to display what a link should look
# like. It's a little complex looking just because we have to
# check for blank entries..

my (%rec) = @_;

$build_detailed ?
($output = qq~<ul><li><a class="link" href="$build_detail_url/$rec{$db_key}$build_extension">$rec{'Title'}</a>~) :
($output = qq~<ul><li><a class="link" href="$build_jump_url?$db_key=$rec{$db_key}">$rec{'Title'}</a>~);

if ($rec{'Description'}) { $output .= qq~ <span class="descript">- $rec{'Description'}</span>\n~; }
if ($rec{'isNew'} eq "Yes") { $output .= qq~ <small><sup class="new">new</sup></small>~; }
if ($rec{'isPopular'} eq "Yes") { $output .= qq~ <small><sup class="pop">pop</sup></small>~; }

$output .= qq~ <small class="date">(Added: $rec{'Date'} Hits: $rec{'Hits'} Rating: $rec{'Rating'} Votes: $rec{'Votes'}) <a href="$build_rate_url?ID=$rec{'ID'}">Rate It</a></small>
</ul>
~;

return $output;
}

sub site_html_home {
# --------------------------------------------------------
# This routine will build a home page. It is not meant to have any
# links on it, only subcategories.
#
# $category : The list of subcategories.
# $time : The current time.
# $date : The current date.
# $grand_total : The total number of links.
#

my ($output);

$output = qq~
<$dtd>
<html>

<head>
<title>$site_title</title>
<meta name="description" content="put your description here">
<meta name="keywords" content="put your keywords here">
<$css>
</head>

<$site_body>

<h1 class="home">$site_title</h1>

$site_menu

<p>Site description</p>

<h2>Categories:</h2>

$category

<p class="grandtotal">There are <strong>$grand_total</strong> links for you to choose from!</p>

$site_search
$site_footer

</body>
</html>
~;

return $output;
}

I hope this helps.
Quote Reply
Re: Blank index.html pages :( In reply to
Had the exact same problem. I fixed it by looking for the following code in my links.cfg file:

# Use Templates: instead of editing site_html.pl, you can edit regular html pages
# encoded with special <%links_tags%>. It's not as flexible as site_html.pl, but it
# may be easier.
$build_use_templates = 1;

... And I changed the 1 to a zero (for off). That fixed it for me. Hope it works for you!