Running SimpleTests
An error has occurred.
Please continue to the error page
An error occurred. /batch?id=49&op=do <br /> <b>Fatal error</b>: Call to a member function xpath() on a non-object in <b>security_scanner\tests\security_scanner.test</b> on line <b>32</b><br />

Line:

    $links = $obj->elements->xpath('//a');

Comments

kenorb’s picture

Version: 6.x-1.0-beta1 » 6.x-1.0
levacjeep’s picture

Having the same issue. Let me know if you found a fix.

Thanks,
JPL

fgm’s picture

As a workaround, you can just insert this on top of the function:

if (empty($obj->elements)) {
  return;
}

It does stop the problem. Not sure what it does to the validity of the result set, though.

kenorb’s picture

Issue summary: View changes
Status: Active » Closed (outdated)