Installation of a local virtual host with W3C Validator script. (http://monvalidator.org)

The validator return no results. When you validate the form after choosing elements and content types, none of corresponding URL are checked. (0 URL, 0 error, 0 Warning)
After analysis, the URLs tree to check is good. The function w3c_validator_site_validate_path() in w3c_validator_site.module don't return the results.

the function _w3c_validator_validate_uri() on line 215 must return $results['response'] for the test "if ($results['response']->code != 200)" on line 217.
This test must be change to check that "$results['response']" exist or not and then display the result or exit the function.

Comments

nicomar31’s picture

StatusFileSize
new585 bytes

Corresponding patch

Pedro Lozano’s picture

StatusFileSize
new650 bytes

I haven't tested it but the patch is trivially correct, and if it works for you... :-)

I just improved the patch a little, as seen in system.module.

Thanks.

Pedro Lozano’s picture

Status: Needs review » Fixed

Commited.

sdelbosc’s picture

Just to track the issue...

nicomar31’s picture

I've tested the new version of the patch. It works fine for me.
thanks

powery’s picture

Patch #2 works great. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.