Link checker cron marks valid links as invalid

Author Message

Loyd Glenn

Thursday 23 September 2004 1:10:46 pm

Links to web pages that work well are marked invalid by the link checking cron. I wonder whether pages that take too long to come up might be marked invalid.

Anyone have any ideas?

Loyd

Paul Borgermans

Friday 24 September 2004 1:42:44 am

Yes,

If there is a delay in fetching, this will happen. Are you behind a firewall? If yes, you will need the curl based linkchecker from teh contributions.

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Loyd Glenn

Friday 24 September 2004 9:27:38 am

Yes I am behind a firewall, but some of the affected links are also behind the same firewall. I will try curl based link checking. Thank you.

Loyd

Loyd Glenn

Friday 24 September 2004 11:32:17 am

I solved the problem. I changed the timeout value for the URL checking.

1 Open the linkcheck.php file in the cronjobs folder.
2 Find the line: $fp = @fopen( $url, "r");
3 Put this line before it: stream_set_timeout($fp, 15);

The 15 is for a fifteen second timeout. It can be increased or decreased, of course.

Loyd

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.