I am using this library (PHP Simple HTML DOM parser) to parse a link, here\'s the code:
function getSemanticRelevantKeywords($keyword){
$results = array(
I'm having the same error come up in my logs and apart from the solutions mentioned above, it could also be that there is no 'span' in the document. I get the same error when searching for divs with a particular class that doesn't exist on the page, but when searching for something that I know exists on the page, the error doesn't pop up.