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.

eZ debug

Timing: Jan 19 2025 04:40:02
Script start
Timing: Jan 19 2025 04:40:02
Module start 'layout'
Timing: Jan 19 2025 04:40:02
Module start 'content'
Timing: Jan 19 2025 04:40:02
Module end 'content'
Timing: Jan 19 2025 04:40:02
Script end

Main resources:

Total runtime0.6549 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 590.8359152.6563
Module start 'layout' 0.00730.0032 743.492239.5078
Module start 'content' 0.01060.6425 783.0000540.6641
Module end 'content' 0.65310.0018 1,323.664112.1094
Script end 0.6549  1,335.7734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.6034160.0002
Check MTime0.00170.2621160.0001
Mysql Total
Database connection0.00160.241710.0016
Mysqli_queries0.597691.2490600.0100
Looping result0.00050.0786580.0000
Template Total0.617094.220.3085
Template load0.00230.347720.0011
Template processing0.614793.858520.3073
Template load and register function0.00020.028410.0002
states
state_id_array0.00140.207410.0014
state_identifier_array0.00080.129620.0004
Override
Cache load0.00200.3096210.0001
Sytem overhead
Fetch class attribute can translate value0.00080.128320.0004
Fetch class attribute name0.00140.218350.0003
XML
Image XML parsing0.00070.113120.0004
class_abstraction
Instantiating content class attribute0.00000.002050.0000
General
dbfile0.00140.2116170.0001
String conversion0.00000.001440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0003 secs