$title = $xpath->query("span[@class='item_list']",$item)[0];
I can't figure out why it only works when I omit this line on my web host. localhost seems normal and functional as intended. This is used on a template in Wordpress 4.9.4. I have no idea what the PHP version of the host is. This line is inside a loop of another xpath query which works with the page if that line above is cut out:
foreach( $xpath->query("//div[@class='product_list']") as $item) { }
Could there be a limitation set in php on my web host that prevented me to do more than one query? or nested query perhaps?