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

Building new pages don't run

Quote Reply
Building new pages don't run
Hi,

I have a new problem, after change my server (solaris) for red-hat 7.0, i see the script (links 2.0) don't run correctly. All functions run, when i add a new link and validate i go to rebuilding all pages...see a e.g:

Building Pages

Pages built on 12-Dez-2002 at 17:50:26
--------------------------------------------------------

Backing up database . . .
Backup exists for today.. Skipping
Done.

Building URL Index . . .
Done.

Updating New and Popular Records . . .
What's New Cutoff: 14 days
Popular Cutoff: 2048 hits
Updating record: 20, marking as pop.
Updating record: 23, marking as pop.
Updating record: 19, marking as pop.

......

Updating record: 3240, marking as pop.
Done.

Updating ratings ..
Done.

Loading Category Information . . .
Done.

Gathering Category and Link information . . .
Done

Building Home Pages . . .
Categories: 40
Total Links: 3240
Opening page: /xxx/xxxx/xxxx/xxxx/xxxx/pages/index.html
Closing page.
Done

Building What's New Page . . .
Total New Links: ( **** HERE IS MY PROBLEM **** )

Done

Building Cool Sites Page . . .
Total Cool Sites: 103
Done

Building Top 10 Page . . .
Per Rate: 943222 .. 12345
Per Ratio: Yes .. No
Done



Building Category pages . . .
Building Category: axxxxx1

Sub Categories: 3
Links: 7
Directorie: /usr/local/xxx/xxx/axxx1
File Name: /usr/local/xxx/xxx/axxx1/index.shtml
Sub Page: /usr/local/xxx/xxx/axxx1/more2.html

Into the end, no have problems, i rebuilding all links (3240) with 19 ~25 segunds, not have problems, all categories is ok, all subcategories is ok, all pages is generated, all permissions is ok, all is ok . EXCEPT FOR the new sites added is not see, not is marking how to new, it does't appear new sites per day....Noting for new sites... I run several tests and not see a soluction. When i change a server i note problem with a date format

fatal error: invalid date format: 02-Aug-01 - parsed as (day: 2, month: 7, year: -1899). Reason: Can't handle date (0, 0, 0, 2, 7, -1899) at /home/.sites/122/site482/web/cgi-bin/links2/admin1/links.cfg line 173

I have searched the forum and found the fix provided by designerx in Jan:-

*********************************
Strangly enough the solution is absurdely simple. In your links.cfg script you would make one alteration... you simply add a 1 to the end of the $year

So for example on (my line 292) in links.cfg It would look like:
$time = &Time::Local::timelocal(0,0,0, $day, $months{$mon}, $year1);

instead of:
$time = &Time::Local::timelocal(0,0,0, $day, $months{$mon}, $year);

I think, my problem with no marking a news links is possible directly it is related to the problem with dates of the Unix. I use a Perl










Please i need a avanced assistence.

Thanks for your time,

Quirino





Help to me
Subject Author Views Date
Thread Building new pages don't run Quirino 7997 Dec 13, 2002, 12:38 AM
Thread Re: [Quirino] Building new pages don't run
Sanguinarius 7890 Dec 13, 2002, 12:46 PM
Thread Re: [Sanguinarius] Building new pages don't run
Quirino 7874 Dec 13, 2002, 4:26 PM
Thread Re: [Quirino] Building new pages don't run
Quirino 7859 Dec 13, 2002, 4:37 PM
Thread Re: [Quirino] Building new pages don't run
PerlFlunkie 7856 Dec 13, 2002, 9:37 PM
Post Re: [PerlFlunkie] Building new pages don't run
Quirino 7844 Dec 13, 2002, 10:15 PM
Post Re: [PerlFlunkie] Building new pages don't run
Sanguinarius 7872 Dec 14, 2002, 4:59 PM
Post Re: [Quirino] Building new pages don't run
rcull 7515 Mar 2, 2004, 6:57 PM