So this error is killing me, heres the code:
$html = file_get_html(\'vids.html\'); foreach($html->find(\'a\') as $element) { echo $element->name
I think you should var_dump($element) inside the loop and see if it has the 'name' property set. YOu could modify your condition and add isset() in the loop,
foreach($html->find('a') as $element) { if(isset($element->name)){ echo $element->name; } }