Error

We're sorry, but an unhandled error occurred. Please see the details below.

Invalid argument supplied for foreach()

/home/goradiant/public_html/plugins/radiantweb/problog/views/rss/feed.php line 18

echo '    <lastBuildDate></lastBuildDate>';
 
$page_src = explode('/',$rss_page);
$page_src = 'http://'.$page_src[2];
 
if(count($posts)>0){
    foreach($posts as $post){
        echo '  <item>';
        echo '    <title><![CDATA['.htmlspecialchars($post->title).']]></title>';
        echo '    <link>';
        echo        $page_src.'/'.$post->parent.'/'.$post->slug.'/';
        echo '    </link>';
        echo '    <description><![CDATA['.$post->excerpt.']]></description>';

Stack trace

# Called Code Document Line
17 include() http://goradiantweb.com/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php 37
16 Illuminate\View\Engines\PhpEngine->evaluatePath() http://goradiantweb.com/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php 14
15 Illuminate\View\Engines\PhpEngine->get() http://goradiantweb.com/vendor/laravel/framework/src/Illuminate/View/View.php 134
14 Illuminate\View\View->getContents() http://goradiantweb.com/vendor/laravel/framework/src/Illuminate/View/View.php 102
13 Illuminate\View\View->renderContents() http://goradiantweb.com/vendor/laravel/framework/src/Illuminate/View/View.php 76
12 Illuminate\View\View->render() http://goradiantweb.com/vendor/laravel/framework/src/Illuminate/Http/Response.php 43
11 Illuminate\Http\Response->setContent() http://goradiantweb.com/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Response.php 202
10 Symfony\Component\HttpFoundation\Response->__construct() http://goradiantweb.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php 1496
9 Illuminate\Routing\Router->prepareResponse() http://goradiantweb.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php 1031
8 Illuminate\Routing\Router->dispatchToRoute() http://goradiantweb.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php 996
7 Illuminate\Routing\Router->dispatch() http://goradiantweb.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php 775
6 Illuminate\Foundation\Application->dispatch() http://goradiantweb.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php 745
5 Illuminate\Foundation\Application->handle() http://goradiantweb.com/vendor/laravel/framework/src/Illuminate/Session/Middleware.php 72
4 Illuminate\Session\Middleware->handle() http://goradiantweb.com/vendor/laravel/framework/src/Illuminate/Cookie/Queue.php 47
3 Illuminate\Cookie\Queue->handle() http://goradiantweb.com/vendor/laravel/framework/src/Illuminate/Cookie/Guard.php 51
2 Illuminate\Cookie\Guard->handle() http://goradiantweb.com/vendor/stack/builder/src/Stack/StackedHttpKernel.php 23
1 Stack\StackedHttpKernel->handle() http://goradiantweb.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php 641
0 Illuminate\Foundation\Application->run() http://goradiantweb.com/index.php 40