Fatal error: Cannot use object of type stdClass Error help!
You say :


  note: line 99 is $uri = $value['url'];


So:

$value isn't an array and you can't write $value['url'];.

In fact $value is an object and you have to use this syntax $value-&gt;url;